From f8b5d69f822bfc809cbfa25ef7ad60b58a4af22e Mon Sep 17 00:00:00 2001 From: AWS Controllers for Kubernetes Bot <82905295+ack-bot@users.noreply.github.com> Date: Wed, 14 Sep 2022 10:31:04 -0700 Subject: [PATCH] Update to ACK runtime `v0.20.1`, code-generator `v0.20.1` (#121) ### Update to ACK runtime `v0.20.1`, code-generator `v0.20.1` ---------- * ACK code-generator `v0.20.1` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.20.1) * ACK runtime `v0.20.1` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.20.1) ---------- NOTE: This PR increments the release version of service controller from `v0.1.0` to `v0.1.1` Once this PR is merged, release `v0.1.1` will be automatically created for `rds-controller` **Please close this PR, if you do not want the new patch release for `rds-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building rds-controller ==== Copying common custom resource definitions into rds Building Kubernetes API objects for rds Generating deepcopy code for rds Generating custom resource definitions for rds Building service controller for rds Generating RBAC manifests for rds Running gofmt against generated code for rds Updating additional GitHub repository maintenance files ==== building rds-controller release artifacts ==== Building release artifacts for rds-v0.1.1 Generating common custom resource definitions Generating custom resource definitions for rds Generating RBAC manifests for rds ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --- apis/v1alpha1/ack-generate-metadata.yaml | 12 +- apis/v1alpha1/db_cluster.go | 80 +- apis/v1alpha1/db_instance.go | 133 +- apis/v1alpha1/db_proxy.go | 5 +- apis/v1alpha1/enums.go | 16 + apis/v1alpha1/global_cluster.go | 2 +- apis/v1alpha1/types.go | 7 +- apis/v1alpha1/zz_generated.deepcopy.go | 24 + config/controller/kustomization.yaml | 2 +- ...ices.k8s.aws_dbclusterparametergroups.yaml | 19 +- .../rds.services.k8s.aws_dbclusters.yaml | 191 +- .../rds.services.k8s.aws_dbinstances.yaml | 536 ++--- ...ds.services.k8s.aws_dbparametergroups.yaml | 26 +- .../bases/rds.services.k8s.aws_dbproxies.yaml | 14 +- .../rds.services.k8s.aws_dbsubnetgroups.yaml | 23 +- .../rds.services.k8s.aws_globalclusters.yaml | 15 +- .../bases/services.k8s.aws_fieldexports.yaml | 4 + config/rbac/cluster-role-controller.yaml | 1 - go.mod | 4 +- go.sum | 8 +- helm/Chart.yaml | 4 +- ...ices.k8s.aws_dbclusterparametergroups.yaml | 19 +- .../crds/rds.services.k8s.aws_dbclusters.yaml | 191 +- .../rds.services.k8s.aws_dbinstances.yaml | 536 ++--- ...ds.services.k8s.aws_dbparametergroups.yaml | 26 +- helm/crds/rds.services.k8s.aws_dbproxies.yaml | 14 +- .../rds.services.k8s.aws_dbsubnetgroups.yaml | 23 +- .../rds.services.k8s.aws_globalclusters.yaml | 15 +- .../services.k8s.aws_adoptedresources.yaml | 10 +- helm/crds/services.k8s.aws_fieldexports.yaml | 13 +- helm/templates/NOTES.txt | 2 +- helm/templates/deployment.yaml | 2 +- helm/values.yaml | 2 +- pkg/resource/db_cluster/delta.go | 7 + pkg/resource/db_cluster/sdk.go | 449 ++-- pkg/resource/db_instance/sdk.go | 1835 +++++++++-------- 36 files changed, 2209 insertions(+), 2061 deletions(-) diff --git a/apis/v1alpha1/ack-generate-metadata.yaml b/apis/v1alpha1/ack-generate-metadata.yaml index dab6018..c9067b9 100755 --- a/apis/v1alpha1/ack-generate-metadata.yaml +++ b/apis/v1alpha1/ack-generate-metadata.yaml @@ -1,11 +1,11 @@ ack_generate_info: - build_date: "2022-09-06T21:49:16Z" - build_hash: 87477ae8ca8ac6ddb8c565bbd910cc7e30f55ed0 - go_version: go1.18.2 - version: v0.19.3 -api_directory_checksum: 49e40e1f4eba86556bce0a1e14d5888fd21fea2f + build_date: "2022-09-12T19:27:20Z" + build_hash: 2944c8772f216656d84ee02d392eaca501274c1e + go_version: go1.17.5 + version: v0.20.1 +api_directory_checksum: c701c444da9d673651a14b0629e923dec45ec4fa api_version: v1alpha1 -aws_sdk_go_version: v1.44.27 +aws_sdk_go_version: v1.44.93 generator_config_info: file_checksum: 0fb61f01b3715995f51dfc33124c45670c87a257 original_file_name: generator.yaml diff --git a/apis/v1alpha1/db_cluster.go b/apis/v1alpha1/db_cluster.go index f9f7d7a..9a9312e 100644 --- a/apis/v1alpha1/db_cluster.go +++ b/apis/v1alpha1/db_cluster.go @@ -235,7 +235,7 @@ type DBClusterSpec struct { // isn't enabled. // // For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) - // in the Amazon Aurora User Guide.. + // in the Amazon Aurora User Guide. // // Valid for: Aurora DB clusters only EnableIAMDatabaseAuthentication *bool `json:"enableIAMDatabaseAuthentication,omitempty"` @@ -276,6 +276,8 @@ type DBClusterSpec struct { // The multimaster engine mode only applies for DB clusters created with Aurora // MySQL version 5.6.10a. // + // The serverless engine mode only applies for Aurora Serverless v1 DB clusters. + // // For Aurora PostgreSQL, the global engine mode isn't required, and both the // parallelquery and the multimaster engine modes currently aren't supported. // @@ -284,6 +286,8 @@ type DBClusterSpec struct { // // * Limitations of Aurora Serverless v1 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations) // + // * Requirements for Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html) + // // * Limitations of Parallel Query (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html#aurora-mysql-parallel-query-limitations) // // * Limitations of Aurora Global Databases (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database.limitations) @@ -429,6 +433,23 @@ type DBClusterSpec struct { // // Valid for: Multi-AZ DB clusters only MonitoringRoleARN *string `json:"monitoringRoleARN,omitempty"` + // The network type of the DB cluster. + // + // Valid values: + // + // * IPV4 + // + // * DUAL + // + // The network type is determined by the DBSubnetGroup specified for the DB + // cluster. A DBSubnetGroup can support only the IPv4 protocol or the IPv4 and + // the IPv6 protocols (DUAL). + // + // For more information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + // in the Amazon Aurora User Guide. + // + // Valid for: Aurora DB clusters only + NetworkType *string `json:"networkType,omitempty"` // A value that indicates that the DB cluster should be associated with the // specified option group. // @@ -447,8 +468,27 @@ type DBClusterSpec struct { // // Valid for: Multi-AZ DB clusters only PerformanceInsightsKMSKeyID *string `json:"performanceInsightsKMSKeyID,omitempty"` - // The amount of time, in days, to retain Performance Insights data. Valid values - // are 7 or 731 (2 years). + // The number of days to retain Performance Insights data. The default is 7 + // days. The following values are valid: + // + // * 7 + // + // * month * 31, where month is a number of months from 1-23 + // + // * 731 + // + // For example, the following values are valid: + // + // * 93 (3 months * 31) + // + // * 341 (11 months * 31) + // + // * 589 (19 months * 31) + // + // * 731 + // + // If you specify a retention period such as 94, which isn't a valid value, + // RDS issues an error. // // Valid for: Multi-AZ DB clusters only PerformanceInsightsRetentionPeriod *int64 `json:"performanceInsightsRetentionPeriod,omitempty"` @@ -468,22 +508,24 @@ type DBClusterSpec struct { // // Valid for: Aurora DB clusters and Multi-AZ DB clusters Port *int64 `json:"port,omitempty"` - // A URL that contains a Signature Version 4 signed request for the CreateDBCluster - // action to be called in the source Amazon Web Services Region where the DB - // cluster is replicated from. Specify PreSignedUrl only when you are performing - // cross-Region replication from an encrypted DB cluster. + // When you are replicating a DB cluster from one Amazon Web Services GovCloud + // (US) Region to another, an URL that contains a Signature Version 4 signed + // request for the CreateDBCluster operation to be called in the source Amazon + // Web Services Region where the DB cluster is replicated from. Specify PreSignedUrl + // only when you are performing cross-Region replication from an encrypted DB + // cluster. // - // The pre-signed URL must be a valid request for the CreateDBCluster API action - // that can be executed in the source Amazon Web Services Region that contains - // the encrypted DB cluster to be copied. + // The presigned URL must be a valid request for the CreateDBCluster API operation + // that can run in the source Amazon Web Services Region that contains the encrypted + // DB cluster to copy. // - // The pre-signed URL request must contain the following parameter values: + // The presigned URL request must contain the following parameter values: // - // * KmsKeyId - The Amazon Web Services KMS key identifier for the KMS key - // to use to encrypt the copy of the DB cluster in the destination Amazon - // Web Services Region. This should refer to the same KMS key for both the - // CreateDBCluster action that is called in the destination Amazon Web Services - // Region, and the action contained in the pre-signed URL. + // * KmsKeyId - The KMS key identifier for the KMS key to use to encrypt + // the copy of the DB cluster in the destination Amazon Web Services Region. + // This should refer to the same KMS key for both the CreateDBCluster operation + // that is called in the destination Amazon Web Services Region, and the + // operation contained in the presigned URL. // // * DestinationRegion - The name of the Amazon Web Services Region that // Aurora read replica will be created in. @@ -502,9 +544,9 @@ type DBClusterSpec struct { // // If you are using an Amazon Web Services SDK tool or the CLI, you can specify // SourceRegion (or --source-region for the CLI) instead of specifying PreSignedUrl - // manually. Specifying SourceRegion autogenerates a pre-signed URL that is - // a valid request for the operation that can be executed in the source Amazon - // Web Services Region. + // manually. Specifying SourceRegion autogenerates a presigned URL that is a + // valid request for the operation that can run in the source Amazon Web Services + // Region. // // Valid for: Aurora DB clusters only PreSignedURL *string `json:"preSignedURL,omitempty"` diff --git a/apis/v1alpha1/db_instance.go b/apis/v1alpha1/db_instance.go index 2ce47b6..714a81f 100644 --- a/apis/v1alpha1/db_instance.go +++ b/apis/v1alpha1/db_instance.go @@ -148,7 +148,7 @@ type DBInstanceSpec struct { // // * Can't be set to 0 if the DB instance is a source to read replicas // - // * Can't be set to 0 or 35 for an RDS Custom for Oracle DB instance + // * Can't be set to 0 for an RDS Custom for Oracle DB instance BackupRetentionPeriod *int64 `json:"backupRetentionPeriod,omitempty"` // Specifies where automated backups and manual snapshots are stored. // @@ -199,11 +199,12 @@ type DBInstanceSpec struct { // // This setting doesn't apply to RDS Custom. DBClusterIdentifier *string `json:"dbClusterIdentifier,omitempty"` - // The compute and memory capacity of the DB instance, for example db.m4.large. + // The compute and memory capacity of the DB instance, for example db.m5.large. // Not all DB instance classes are available in all Amazon Web Services Regions, // or for all database engines. For the full list of DB instance classes, and - // availability for your engine, see DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - // in the Amazon RDS User Guide. + // availability for your engine, see DB instance classes (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + // in the Amazon RDS User Guide or Aurora DB instance classes (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) + // in the Amazon Aurora User Guide. // +kubebuilder:validation:Required DBInstanceClass *string `json:"dbInstanceClass"` // The DB instance identifier. This parameter is stored as a lowercase string. @@ -382,11 +383,19 @@ type DBInstanceSpec struct { // in the Amazon RDS User Guide. // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. The domain is managed by the DB cluster. Domain *string `json:"domain,omitempty"` // Specify the name of the IAM role to be used when making API calls to the // Directory Service. // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. The domain is managed by the DB cluster. DomainIAMRoleName *string `json:"domainIAMRoleName,omitempty"` // The list of log types that need to be enabled for exporting to CloudWatch // Logs. The values in the list depend on the DB engine. For more information, @@ -440,13 +449,16 @@ type DBInstanceSpec struct { // and Access Management (IAM) accounts to database accounts. By default, mapping // isn't enabled. // - // This setting doesn't apply to RDS Custom or Amazon Aurora. In Aurora, mapping - // Amazon Web Services IAM accounts to database accounts is managed by the DB - // cluster. - // // For more information, see IAM Database Authentication for MySQL and PostgreSQL // (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) // in the Amazon RDS User Guide. + // + // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. Mapping Amazon Web Services IAM accounts to database accounts + // is managed by the DB cluster. EnableIAMDatabaseAuthentication *bool `json:"enableIAMDatabaseAuthentication,omitempty"` // The name of the database engine to be used for this instance. // @@ -493,7 +505,7 @@ type DBInstanceSpec struct { Engine *string `json:"engine"` // The version number of the database engine to use. // - // For a list of valid engine versions, use the DescribeDBEngineVersions action. + // For a list of valid engine versions, use the DescribeDBEngineVersions operation. // // The following are the database engines and links to information about the // major and minor versions that are available with Amazon RDS. Not every database @@ -551,6 +563,10 @@ type DBInstanceSpec struct { // be a multiple between .5 and 50 of the storage amount for the DB instance. // For SQL Server DB instances, must be a multiple between 1 and 50 of the storage // amount for the DB instance. + // + // Amazon Aurora + // + // Not applicable. Storage is managed by the DB cluster. IOPS *int64 `json:"iops,omitempty"` // The Amazon Web Services KMS key identifier for an encrypted DB instance. // @@ -581,6 +597,10 @@ type DBInstanceSpec struct { // Valid values: license-included | bring-your-own-license | general-public-license // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. LicenseModel *string `json:"licenseModel,omitempty"` // The password for the master user. The password can include any printable // ASCII character except "/", """, or "@". @@ -636,6 +656,10 @@ type DBInstanceSpec struct { // in the Amazon RDS User Guide. // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. Storage is managed by the DB cluster. MaxAllocatedStorage *int64 `json:"maxAllocatedStorage,omitempty"` // The interval, in seconds, between points when Enhanced Monitoring metrics // are collected for the DB instance. To disable collection of Enhanced Monitoring @@ -664,6 +688,11 @@ type DBInstanceSpec struct { // deployment. // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. DB instance Availability Zones (AZs) are managed by the DB + // cluster. MultiAZ *bool `json:"multiAZ,omitempty"` // The name of the NCHAR character set for the Oracle DB instance. // @@ -692,6 +721,10 @@ type DBInstanceSpec struct { // from a DB instance after it is associated with a DB instance. // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. OptionGroupName *string `json:"optionGroupName,omitempty"` // A value that indicates whether to enable Performance Insights for the DB // instance. For more information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) @@ -712,8 +745,27 @@ type DBInstanceSpec struct { // // This setting doesn't apply to RDS Custom. PerformanceInsightsKMSKeyID *string `json:"performanceInsightsKMSKeyID,omitempty"` - // The amount of time, in days, to retain Performance Insights data. Valid values - // are 7 or 731 (2 years). + // The number of days to retain Performance Insights data. The default is 7 + // days. The following values are valid: + // + // * 7 + // + // * month * 31, where month is a number of months from 1-23 + // + // * 731 + // + // For example, the following values are valid: + // + // * 93 (3 months * 31) + // + // * 341 (11 months * 31) + // + // * 589 (19 months * 31) + // + // * 731 + // + // If you specify a retention period such as 94, which isn't a valid value, + // RDS issues an error. // // This setting doesn't apply to RDS Custom. PerformanceInsightsRetentionPeriod *int64 `json:"performanceInsightsRetentionPeriod,omitempty"` @@ -764,9 +816,15 @@ type DBInstanceSpec struct { // // Type: Integer Port *int64 `json:"port,omitempty"` - // The URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica - // API action in the source Amazon Web Services Region that contains the source - // DB instance. + // When you are creating a read replica from one Amazon Web Services GovCloud + // (US) Region to another or from one China Amazon Web Services Region to another, + // the URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica + // API operation in the source Amazon Web Services Region that contains the + // source DB instance. + // + // This setting applies only to Amazon Web Services GovCloud (US) Regions and + // China Amazon Web Services Regions. It's ignored in other Amazon Web Services + // Regions. // // You must specify this parameter when you create an encrypted read replica // from another Amazon Web Services Region by using the Amazon RDS API. Don't @@ -774,27 +832,27 @@ type DBInstanceSpec struct { // same Amazon Web Services Region. // // The presigned URL must be a valid request for the CreateDBInstanceReadReplica - // API action that can be executed in the source Amazon Web Services Region - // that contains the encrypted source DB instance. The presigned URL request - // must contain the following parameter values: + // API operation that can run in the source Amazon Web Services Region that + // contains the encrypted source DB instance. The presigned URL request must + // contain the following parameter values: // // * DestinationRegion - The Amazon Web Services Region that the encrypted // read replica is created in. This Amazon Web Services Region is the same - // one where the CreateDBInstanceReadReplica action is called that contains + // one where the CreateDBInstanceReadReplica operation is called that contains // this presigned URL. For example, if you create an encrypted DB instance // in the us-west-1 Amazon Web Services Region, from a source DB instance // in the us-east-2 Amazon Web Services Region, then you call the CreateDBInstanceReadReplica - // action in the us-east-1 Amazon Web Services Region and provide a presigned - // URL that contains a call to the CreateDBInstanceReadReplica action in - // the us-west-2 Amazon Web Services Region. For this example, the DestinationRegion + // operation in the us-east-1 Amazon Web Services Region and provide a presigned + // URL that contains a call to the CreateDBInstanceReadReplica operation + // in the us-west-2 Amazon Web Services Region. For this example, the DestinationRegion // in the presigned URL must be set to the us-east-1 Amazon Web Services // Region. // - // * KmsKeyId - The Amazon Web Services KMS key identifier for the key to - // use to encrypt the read replica in the destination Amazon Web Services - // Region. This is the same identifier for both the CreateDBInstanceReadReplica - // action that is called in the destination Amazon Web Services Region, and - // the action contained in the presigned URL. + // * KmsKeyId - The KMS key identifier for the key to use to encrypt the + // read replica in the destination Amazon Web Services Region. This is the + // same identifier for both the CreateDBInstanceReadReplica operation that + // is called in the destination Amazon Web Services Region, and the operation + // contained in the presigned URL. // // * SourceDBInstanceIdentifier - The DB instance identifier for the encrypted // DB instance to be replicated. This identifier must be in the Amazon Resource @@ -811,11 +869,11 @@ type DBInstanceSpec struct { // If you are using an Amazon Web Services SDK tool or the CLI, you can specify // SourceRegion (or --source-region for the CLI) instead of specifying PreSignedUrl // manually. Specifying SourceRegion autogenerates a presigned URL that is a - // valid request for the operation that can be executed in the source Amazon - // Web Services Region. + // valid request for the operation that can run in the source Amazon Web Services + // Region. // - // SourceRegion isn't supported for SQL Server, because SQL Server on Amazon - // RDS doesn't support cross-Region read replicas. + // SourceRegion isn't supported for SQL Server, because Amazon RDS for SQL Server + // doesn't support cross-Region read replicas. // // This setting doesn't apply to RDS Custom. PreSignedURL *string `json:"preSignedURL,omitempty"` @@ -859,6 +917,10 @@ type DBInstanceSpec struct { // class of the DB instance. // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. ProcessorFeatures []*ProcessorFeature `json:"processorFeatures,omitempty"` // A value that specifies the order in which an Aurora Replica is promoted to // the primary instance after a failure of the existing primary instance. For @@ -978,12 +1040,20 @@ type DBInstanceSpec struct { // If you specify io1, you must also include a value for the Iops parameter. // // Default: io1 if the Iops parameter is specified, otherwise gp2 + // + // Amazon Aurora + // + // Not applicable. Storage is managed by the DB cluster. StorageType *string `json:"storageType,omitempty"` // Tags to assign to the DB instance. Tags []*Tag `json:"tags,omitempty"` // The ARN from the key store with which to associate the instance for TDE encryption. // // This setting doesn't apply to RDS Custom. + // + // Amazon Aurora + // + // Not applicable. TDECredentialARN *string `json:"tdeCredentialARN,omitempty"` // The password for the given ARN from the key store in order to access the // device. @@ -1041,6 +1111,9 @@ type DBInstanceStatus struct { // these events asynchronously. // +kubebuilder:validation:Optional ActivityStreamMode *string `json:"activityStreamMode,omitempty"` + // The status of the policy state of the activity stream. + // +kubebuilder:validation:Optional + ActivityStreamPolicyStatus *string `json:"activityStreamPolicyStatus,omitempty"` // The status of the database activity stream. // +kubebuilder:validation:Optional ActivityStreamStatus *string `json:"activityStreamStatus,omitempty"` diff --git a/apis/v1alpha1/db_proxy.go b/apis/v1alpha1/db_proxy.go index 7567894..d547011 100644 --- a/apis/v1alpha1/db_proxy.go +++ b/apis/v1alpha1/db_proxy.go @@ -39,8 +39,9 @@ type DBProxySpec struct { DebugLogging *bool `json:"debugLogging,omitempty"` // The kinds of databases that the proxy can connect to. This value determines // which database network protocol the proxy recognizes when it interprets network - // traffic to and from the database. The engine family applies to MySQL and - // PostgreSQL for both RDS and Aurora. + // traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and + // RDS for MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for + // PostgreSQL databases, specify POSTGRESQL. // +kubebuilder:validation:Required EngineFamily *string `json:"engineFamily"` // The number of seconds that a connection to the proxy can be inactive before diff --git a/apis/v1alpha1/enums.go b/apis/v1alpha1/enums.go index 94f6a6d..292d800 100644 --- a/apis/v1alpha1/enums.go +++ b/apis/v1alpha1/enums.go @@ -22,6 +22,15 @@ const ( ActivityStreamMode_async ActivityStreamMode = "async" ) +type ActivityStreamPolicyStatus string + +const ( + ActivityStreamPolicyStatus_locked ActivityStreamPolicyStatus = "locked" + ActivityStreamPolicyStatus_unlocked ActivityStreamPolicyStatus = "unlocked" + ActivityStreamPolicyStatus_locking_policy ActivityStreamPolicyStatus = "locking-policy" + ActivityStreamPolicyStatus_unlocking_policy ActivityStreamPolicyStatus = "unlocking-policy" +) + type ActivityStreamStatus string const ( @@ -38,6 +47,13 @@ const ( ApplyMethod_pending_reboot ApplyMethod = "pending-reboot" ) +type AuditPolicyState string + +const ( + AuditPolicyState_locked AuditPolicyState = "locked" + AuditPolicyState_unlocked AuditPolicyState = "unlocked" +) + type AuthScheme string const ( diff --git a/apis/v1alpha1/global_cluster.go b/apis/v1alpha1/global_cluster.go index 7b14b21..e5da949 100644 --- a/apis/v1alpha1/global_cluster.go +++ b/apis/v1alpha1/global_cluster.go @@ -24,7 +24,7 @@ import ( // // A data type representing an Aurora global database. type GlobalClusterSpec struct { - // The name for your database of up to 64 alpha-numeric characters. If you do + // The name for your database of up to 64 alphanumeric characters. If you do // not provide a name, Amazon Aurora will not create a database in the global // database cluster you are creating. DatabaseName *string `json:"databaseName,omitempty"` diff --git a/apis/v1alpha1/types.go b/apis/v1alpha1/types.go index e6e14b7..370ae35 100644 --- a/apis/v1alpha1/types.go +++ b/apis/v1alpha1/types.go @@ -382,6 +382,7 @@ type DBCluster_SDK struct { MonitoringInterval *int64 `json:"monitoringInterval,omitempty"` MonitoringRoleARN *string `json:"monitoringRoleARN,omitempty"` MultiAZ *bool `json:"multiAZ,omitempty"` + NetworkType *string `json:"networkType,omitempty"` // This data type is used as a response element in the ModifyDBCluster operation // and contains changes that will be applied during the next maintenance window. PendingModifiedValues *ClusterPendingModifiedValues `json:"pendingModifiedValues,omitempty"` @@ -508,6 +509,7 @@ type DBInstance_SDK struct { ActivityStreamKinesisStreamName *string `json:"activityStreamKinesisStreamName,omitempty"` ActivityStreamKMSKeyID *string `json:"activityStreamKMSKeyID,omitempty"` ActivityStreamMode *string `json:"activityStreamMode,omitempty"` + ActivityStreamPolicyStatus *string `json:"activityStreamPolicyStatus,omitempty"` ActivityStreamStatus *string `json:"activityStreamStatus,omitempty"` AllocatedStorage *int64 `json:"allocatedStorage,omitempty"` AssociatedRoles []*DBInstanceRole `json:"associatedRoles,omitempty"` @@ -762,6 +764,7 @@ type DBSnapshot struct { Port *int64 `json:"port,omitempty"` ProcessorFeatures []*ProcessorFeature `json:"processorFeatures,omitempty"` SnapshotCreateTime *metav1.Time `json:"snapshotCreateTime,omitempty"` + SnapshotDatabaseTime *metav1.Time `json:"snapshotDatabaseTime,omitempty"` SnapshotTarget *string `json:"snapshotTarget,omitempty"` SnapshotType *string `json:"snapshotType,omitempty"` SourceDBSnapshotIdentifier *string `json:"sourceDBSnapshotIdentifier,omitempty"` @@ -863,7 +866,8 @@ type EngineDefaults struct { Parameters []*Parameter `json:"parameters,omitempty"` } -// This data type is used as a response element in the DescribeEvents action. +// This data type is used as a response element in the DescribeEvents (https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeEvents.html) +// action. type Event struct { Date *metav1.Time `json:"date,omitempty"` Message *string `json:"message,omitempty"` @@ -872,6 +876,7 @@ type Event struct { } // Contains the results of a successful invocation of the DescribeEventCategories +// (https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeEventCategories.html) // operation. type EventCategoriesMap struct { SourceType *string `json:"sourceType,omitempty"` diff --git a/apis/v1alpha1/zz_generated.deepcopy.go b/apis/v1alpha1/zz_generated.deepcopy.go index 19c508b..201e81d 100644 --- a/apis/v1alpha1/zz_generated.deepcopy.go +++ b/apis/v1alpha1/zz_generated.deepcopy.go @@ -1104,6 +1104,11 @@ func (in *DBClusterSpec) DeepCopyInto(out *DBClusterSpec) { *out = new(string) **out = **in } + if in.NetworkType != nil { + in, out := &in.NetworkType, &out.NetworkType + *out = new(string) + **out = **in + } if in.OptionGroupName != nil { in, out := &in.OptionGroupName, &out.OptionGroupName *out = new(string) @@ -1774,6 +1779,11 @@ func (in *DBCluster_SDK) DeepCopyInto(out *DBCluster_SDK) { *out = new(bool) **out = **in } + if in.NetworkType != nil { + in, out := &in.NetworkType, &out.NetworkType + *out = new(string) + **out = **in + } if in.PendingModifiedValues != nil { in, out := &in.PendingModifiedValues, &out.PendingModifiedValues *out = new(ClusterPendingModifiedValues) @@ -2679,6 +2689,11 @@ func (in *DBInstanceStatus) DeepCopyInto(out *DBInstanceStatus) { *out = new(string) **out = **in } + if in.ActivityStreamPolicyStatus != nil { + in, out := &in.ActivityStreamPolicyStatus, &out.ActivityStreamPolicyStatus + *out = new(string) + **out = **in + } if in.ActivityStreamStatus != nil { in, out := &in.ActivityStreamStatus, &out.ActivityStreamStatus *out = new(string) @@ -2955,6 +2970,11 @@ func (in *DBInstance_SDK) DeepCopyInto(out *DBInstance_SDK) { *out = new(string) **out = **in } + if in.ActivityStreamPolicyStatus != nil { + in, out := &in.ActivityStreamPolicyStatus, &out.ActivityStreamPolicyStatus + *out = new(string) + **out = **in + } if in.ActivityStreamStatus != nil { in, out := &in.ActivityStreamStatus, &out.ActivityStreamStatus *out = new(string) @@ -4234,6 +4254,10 @@ func (in *DBSnapshot) DeepCopyInto(out *DBSnapshot) { in, out := &in.SnapshotCreateTime, &out.SnapshotCreateTime *out = (*in).DeepCopy() } + if in.SnapshotDatabaseTime != nil { + in, out := &in.SnapshotDatabaseTime, &out.SnapshotDatabaseTime + *out = (*in).DeepCopy() + } if in.SnapshotTarget != nil { in, out := &in.SnapshotTarget, &out.SnapshotTarget *out = new(string) diff --git a/config/controller/kustomization.yaml b/config/controller/kustomization.yaml index 78364f7..c77cb13 100644 --- a/config/controller/kustomization.yaml +++ b/config/controller/kustomization.yaml @@ -6,4 +6,4 @@ kind: Kustomization images: - name: controller newName: public.ecr.aws/aws-controllers-k8s/rds-controller - newTag: v0.1.0 + newTag: v0.1.1 diff --git a/config/crd/bases/rds.services.k8s.aws_dbclusterparametergroups.yaml b/config/crd/bases/rds.services.k8s.aws_dbclusterparametergroups.yaml index 649dec6..d04ac11 100644 --- a/config/crd/bases/rds.services.k8s.aws_dbclusterparametergroups.yaml +++ b/config/crd/bases/rds.services.k8s.aws_dbclusterparametergroups.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbclusterparametergroups.rds.services.k8s.aws spec: @@ -58,14 +57,14 @@ spec: group families for the Aurora PostgreSQL DB engine, use the following command: \n aws rds describe-db-engine-versions --query \"DBEngineVersions[].DBParameterGroupFamily\" --engine aurora-postgresql \n The output contains duplicates. \n - The following are the valid DB engine values: \n * aurora (for - MySQL 5.6-compatible Aurora) \n * aurora-mysql (for MySQL 5.7-compatible - and MySQL 8.0-compatible Aurora) \n * aurora-postgresql \n * - mysql \n * postgres" + The following are the valid DB engine values: \n * aurora (for MySQL + 5.6-compatible Aurora) \n * aurora-mysql (for MySQL 5.7-compatible + and MySQL 8.0-compatible Aurora) \n * aurora-postgresql \n * mysql + \n * postgres" type: string name: description: "The name of the DB cluster parameter group. \n Constraints: - \n * Must not match the name of an existing DB cluster parameter + \n * Must not match the name of an existing DB cluster parameter group. \n This value is stored as a lowercase string." type: string parameters: @@ -199,9 +198,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/config/crd/bases/rds.services.k8s.aws_dbclusters.yaml b/config/crd/bases/rds.services.k8s.aws_dbclusters.yaml index c3df4d9..eb61c26 100644 --- a/config/crd/bases/rds.services.k8s.aws_dbclusters.yaml +++ b/config/crd/bases/rds.services.k8s.aws_dbclusters.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbclusters.rds.services.k8s.aws spec: @@ -77,15 +76,14 @@ spec: backtrackWindow: description: "The target backtrack window, in seconds. To disable backtracking, set this value to 0. \n Default: 0 \n Constraints: - \n * If specified, this value must be set to a number from 0 - to 259,200 (72 hours). \n Valid for: Aurora MySQL DB clusters - only" + \n * If specified, this value must be set to a number from 0 to + 259,200 (72 hours). \n Valid for: Aurora MySQL DB clusters only" format: int64 type: integer backupRetentionPeriod: description: "The number of days for which automated backups are retained. - \n Default: 1 \n Constraints: \n * Must be a value from 1 to - 35 \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" + \n Default: 1 \n Constraints: \n * Must be a value from 1 to 35 + \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" format: int64 type: integer characterSetName: @@ -106,9 +104,9 @@ spec: type: string dbClusterIdentifier: description: "The DB cluster identifier. This parameter is stored - as a lowercase string. \n Constraints: \n * Must contain from - 1 to 63 letters, numbers, or hyphens. \n * First character must - be a letter. \n * Can't end with a hyphen or contain two consecutive + as a lowercase string. \n Constraints: \n * Must contain from 1 + to 63 letters, numbers, or hyphens. \n * First character must be + a letter. \n * Can't end with a hyphen or contain two consecutive hyphens. \n Example: my-cluster1 \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" type: string @@ -126,15 +124,14 @@ spec: description: "The name of the DB cluster parameter group to associate with this DB cluster. If you do not specify a value, then the default DB cluster parameter group for the specified DB engine and version - is used. \n Constraints: \n * If supplied, must match the name - of an existing DB cluster parameter group. \n Valid for: Aurora - DB clusters and Multi-AZ DB clusters" + is used. \n Constraints: \n * If supplied, must match the name of + an existing DB cluster parameter group. \n Valid for: Aurora DB + clusters and Multi-AZ DB clusters" type: string dbClusterParameterGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -154,8 +151,7 @@ spec: dbSubnetGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -236,7 +232,7 @@ spec: Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled. \n For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) - in the Amazon Aurora User Guide.. \n Valid for: Aurora DB clusters + in the Amazon Aurora User Guide. \n Valid for: Aurora DB clusters only" type: boolean enablePerformanceInsights: @@ -248,11 +244,10 @@ spec: type: boolean engine: description: "The name of the database engine to be used for this - DB cluster. \n Valid Values: \n * aurora (for MySQL 5.6-compatible - Aurora) \n * aurora-mysql (for MySQL 5.7-compatible and MySQL - 8.0-compatible Aurora) \n * aurora-postgresql \n * mysql \n - \ * postgres \n Valid for: Aurora DB clusters and Multi-AZ DB - clusters" + DB cluster. \n Valid Values: \n * aurora (for MySQL 5.6-compatible + Aurora) \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible + Aurora) \n * aurora-postgresql \n * mysql \n * postgres \n Valid + for: Aurora DB clusters and Multi-AZ DB clusters" type: string engineMode: description: "The DB engine mode of the DB cluster, either provisioned, @@ -262,15 +257,17 @@ spec: engine mode isn't required for Aurora MySQL version 1.22 and higher 1.x versions, and global engine mode isn't required for any 2.x versions. \n The multimaster engine mode only applies for DB clusters - created with Aurora MySQL version 5.6.10a. \n For Aurora PostgreSQL, - the global engine mode isn't required, and both the parallelquery - and the multimaster engine modes currently aren't supported. \n - Limitations and requirements apply to some DB engine modes. For - more information, see the following sections in the Amazon Aurora - User Guide: \n * Limitations of Aurora Serverless v1 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations) - \n * Limitations of Parallel Query (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html#aurora-mysql-parallel-query-limitations) - \n * Limitations of Aurora Global Databases (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database.limitations) - \n * Limitations of Multi-Master Clusters (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-multi-master.html#aurora-multi-master-limitations) + created with Aurora MySQL version 5.6.10a. \n The serverless engine + mode only applies for Aurora Serverless v1 DB clusters. \n For Aurora + PostgreSQL, the global engine mode isn't required, and both the + parallelquery and the multimaster engine modes currently aren't + supported. \n Limitations and requirements apply to some DB engine + modes. For more information, see the following sections in the Amazon + Aurora User Guide: \n * Limitations of Aurora Serverless v1 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations) + \n * Requirements for Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html) + \n * Limitations of Parallel Query (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html#aurora-mysql-parallel-query-limitations) + \n * Limitations of Aurora Global Databases (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database.limitations) + \n * Limitations of Multi-Master Clusters (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-multi-master.html#aurora-multi-master-limitations) \n Valid for: Aurora DB clusters only" type: string engineVersion: @@ -323,11 +320,11 @@ spec: 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. \n When a KMS key isn't specified in KmsKeyId: - \n * If ReplicationSourceIdentifier identifies an encrypted source, - then Amazon RDS will use the KMS key used to encrypt the source. - Otherwise, Amazon RDS will use your default KMS key. \n * - If the StorageEncrypted parameter is enabled and ReplicationSourceIdentifier - \ isn't specified, then Amazon RDS will use your default KMS key. + \n * If ReplicationSourceIdentifier identifies an encrypted source, + then Amazon RDS will use the KMS key used to encrypt the source. + Otherwise, Amazon RDS will use your default KMS key. \n * If the + StorageEncrypted parameter is enabled and ReplicationSourceIdentifier + isn't specified, then Amazon RDS will use your default KMS key. \n There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region. \n If you create a read replica @@ -340,8 +337,7 @@ spec: kmsKeyRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -371,12 +367,12 @@ spec: required: - key type: object + x-kubernetes-map-type: atomic masterUsername: description: "The name of the master user for the DB cluster. \n Constraints: - \n * Must be 1 to 16 letters or numbers. \n * First character - must be a letter. \n * Can't be a reserved word for the chosen - database engine. \n Valid for: Aurora DB clusters and Multi-AZ DB - clusters" + \n * Must be 1 to 16 letters or numbers. \n * First character must + be a letter. \n * Can't be a reserved word for the chosen database + engine. \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" type: string monitoringInterval: description: "The interval, in seconds, between points when Enhanced @@ -397,6 +393,15 @@ spec: a value other than 0, supply a MonitoringRoleArn value. \n Valid for: Multi-AZ DB clusters only" type: string + networkType: + description: "The network type of the DB cluster. \n Valid values: + \n * IPV4 \n * DUAL \n The network type is determined by the DBSubnetGroup + specified for the DB cluster. A DBSubnetGroup can support only the + IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). \n For + more information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the Amazon Aurora User Guide. \n Valid for: Aurora DB clusters + only" + type: string optionGroupName: description: "A value that indicates that the DB cluster should be associated with the specified option group. \n DB clusters are associated @@ -413,9 +418,13 @@ spec: Region. \n Valid for: Multi-AZ DB clusters only" type: string performanceInsightsRetentionPeriod: - description: "The amount of time, in days, to retain Performance Insights - data. Valid values are 7 or 731 (2 years). \n Valid for: Multi-AZ - DB clusters only" + description: "The number of days to retain Performance Insights data. + The default is 7 days. The following values are valid: \n * 7 \n + * month * 31, where month is a number of months from 1-23 \n * 731 + \n For example, the following values are valid: \n * 93 (3 months + * 31) \n * 341 (11 months * 31) \n * 589 (19 months * 31) \n * 731 + \n If you specify a retention period such as 94, which isn't a valid + value, RDS issues an error. \n Valid for: Multi-AZ DB clusters only" format: int64 type: integer port: @@ -427,28 +436,28 @@ spec: format: int64 type: integer preSignedURL: - description: "A URL that contains a Signature Version 4 signed request - for the CreateDBCluster action to be called in the source Amazon - Web Services Region where the DB cluster is replicated from. Specify - PreSignedUrl only when you are performing cross-Region replication - from an encrypted DB cluster. \n The pre-signed URL must be a valid - request for the CreateDBCluster API action that can be executed - in the source Amazon Web Services Region that contains the encrypted - DB cluster to be copied. \n The pre-signed URL request must contain - the following parameter values: \n * KmsKeyId - The Amazon Web - Services KMS key identifier for the KMS key to use to encrypt - the copy of the DB cluster in the destination Amazon Web Services - Region. This should refer to the same KMS key for both the CreateDBCluster - action that is called in the destination Amazon Web Services Region, - and the action contained in the pre-signed URL. \n * DestinationRegion - - The name of the Amazon Web Services Region that Aurora read - replica will be created in. \n * ReplicationSourceIdentifier - - The DB cluster identifier for the encrypted DB cluster to be - copied. This identifier must be in the Amazon Resource Name (ARN) - format for the source Amazon Web Services Region. For example, if - you are copying an encrypted DB cluster from the us-west-2 Amazon - Web Services Region, then your ReplicationSourceIdentifier would - look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1. + description: "When you are replicating a DB cluster from one Amazon + Web Services GovCloud (US) Region to another, an URL that contains + a Signature Version 4 signed request for the CreateDBCluster operation + to be called in the source Amazon Web Services Region where the + DB cluster is replicated from. Specify PreSignedUrl only when you + are performing cross-Region replication from an encrypted DB cluster. + \n The presigned URL must be a valid request for the CreateDBCluster + API operation that can run in the source Amazon Web Services Region + that contains the encrypted DB cluster to copy. \n The presigned + URL request must contain the following parameter values: \n * KmsKeyId + - The KMS key identifier for the KMS key to use to encrypt the copy + of the DB cluster in the destination Amazon Web Services Region. + This should refer to the same KMS key for both the CreateDBCluster + operation that is called in the destination Amazon Web Services + Region, and the operation contained in the presigned URL. \n * DestinationRegion + - The name of the Amazon Web Services Region that Aurora read replica + will be created in. \n * ReplicationSourceIdentifier - The DB cluster + identifier for the encrypted DB cluster to be copied. This identifier + must be in the Amazon Resource Name (ARN) format for the source + Amazon Web Services Region. For example, if you are copying an encrypted + DB cluster from the us-west-2 Amazon Web Services Region, then your + ReplicationSourceIdentifier would look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1. \n To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) @@ -456,9 +465,9 @@ spec: \n If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion (or --source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates - a pre-signed URL that is a valid request for the operation that - can be executed in the source Amazon Web Services Region. \n Valid - for: Aurora DB clusters only" + a presigned URL that is a valid request for the operation that can + run in the source Amazon Web Services Region. \n Valid for: Aurora + DB clusters only" type: string preferredBackupWindow: description: "The daily time range during which automated backups @@ -466,11 +475,11 @@ spec: parameter. \n The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see Backup window (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) - in the Amazon Aurora User Guide. \n Constraints: \n * Must be - in the format hh24:mi-hh24:mi. \n * Must be in Universal Coordinated - Time (UTC). \n * Must not conflict with the preferred maintenance - window. \n * Must be at least 30 minutes. \n Valid for: Aurora - DB clusters and Multi-AZ DB clusters" + in the Amazon Aurora User Guide. \n Constraints: \n * Must be in + the format hh24:mi-hh24:mi. \n * Must be in Universal Coordinated + Time (UTC). \n * Must not conflict with the preferred maintenance + window. \n * Must be at least 30 minutes. \n Valid for: Aurora DB + clusters and Multi-AZ DB clusters" type: string preferredMaintenanceWindow: description: "The weekly time range during which system maintenance @@ -496,16 +505,16 @@ spec: name that resolves to a private IP address. \n Default: The default behavior varies depending on whether DBSubnetGroupName is specified. \n If DBSubnetGroupName isn't specified, and PubliclyAccessible - isn't specified, the following applies: \n * If the default VPC - in the target Region doesn’t have an internet gateway attached - to it, the DB cluster is private. \n * If the default VPC in - the target Region has an internet gateway attached to it, the - DB cluster is public. \n If DBSubnetGroupName is specified, and - PubliclyAccessible isn't specified, the following applies: \n * - If the subnets are part of a VPC that doesn’t have an internet gateway - \ attached to it, the DB cluster is private. \n * If the subnets - are part of a VPC that has an internet gateway attached to it, - the DB cluster is public. \n Valid for: Multi-AZ DB clusters only" + isn't specified, the following applies: \n * If the default VPC + in the target Region doesn’t have an internet gateway attached to + it, the DB cluster is private. \n * If the default VPC in the target + Region has an internet gateway attached to it, the DB cluster is + public. \n If DBSubnetGroupName is specified, and PubliclyAccessible + isn't specified, the following applies: \n * If the subnets are + part of a VPC that doesn’t have an internet gateway attached to + it, the DB cluster is private. \n * If the subnets are part of a + VPC that has an internet gateway attached to it, the DB cluster + is public. \n Valid for: Multi-AZ DB clusters only" type: boolean replicationSourceIdentifier: description: "The Amazon Resource Name (ARN) of the source DB instance @@ -548,7 +557,7 @@ spec: description: "The identifier for the DB snapshot or DB cluster snapshot to restore from. \n You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use - only the ARN to specify a DB snapshot. \n Constraints: \n * Must + only the ARN to specify a DB snapshot. \n Constraints: \n * Must match the identifier of an existing Snapshot. \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" type: string @@ -592,7 +601,7 @@ spec: items: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: @@ -954,9 +963,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/config/crd/bases/rds.services.k8s.aws_dbinstances.yaml b/config/crd/bases/rds.services.k8s.aws_dbinstances.yaml index 1af5a54..224167a 100644 --- a/config/crd/bases/rds.services.k8s.aws_dbinstances.yaml +++ b/config/crd/bases/rds.services.k8s.aws_dbinstances.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbinstances.rds.services.k8s.aws spec: @@ -52,40 +51,39 @@ spec: in your database increases, though you are only charged for the space that you use in an Aurora cluster volume. \n Amazon RDS Custom \n Constraints to the amount of storage for each storage type are - the following: \n * General Purpose (SSD) storage (gp2): Must - be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 - for RDS Custom for SQL Server. \n * Provisioned IOPS storage - (io1): Must be an integer from 40 to 65536 for RDS Custom for - Oracle, 16384 for RDS Custom for SQL Server. \n MySQL \n Constraints - to the amount of storage for each storage type are the following: - \n * General Purpose (SSD) storage (gp2): Must be an integer - from 20 to 65536. \n * Provisioned IOPS storage (io1): Must be - an integer from 100 to 65536. \n * Magnetic storage (standard): - Must be an integer from 5 to 3072. \n MariaDB \n Constraints to - the amount of storage for each storage type are the following: \n - \ * General Purpose (SSD) storage (gp2): Must be an integer from - 20 to 65536. \n * Provisioned IOPS storage (io1): Must be an - integer from 100 to 65536. \n * Magnetic storage (standard): - Must be an integer from 5 to 3072. \n PostgreSQL \n Constraints - to the amount of storage for each storage type are the following: - \n * General Purpose (SSD) storage (gp2): Must be an integer - from 20 to 65536. \n * Provisioned IOPS storage (io1): Must be - an integer from 100 to 65536. \n * Magnetic storage (standard): + the following: \n * General Purpose (SSD) storage (gp2): Must be + an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for + RDS Custom for SQL Server. \n * Provisioned IOPS storage (io1): + Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 + for RDS Custom for SQL Server. \n MySQL \n Constraints to the amount + of storage for each storage type are the following: \n * General + Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. + \n * Provisioned IOPS storage (io1): Must be an integer from 100 + to 65536. \n * Magnetic storage (standard): Must be an integer from + 5 to 3072. \n MariaDB \n Constraints to the amount of storage for + each storage type are the following: \n * General Purpose (SSD) + storage (gp2): Must be an integer from 20 to 65536. \n * Provisioned + IOPS storage (io1): Must be an integer from 100 to 65536. \n * Magnetic + storage (standard): Must be an integer from 5 to 3072. \n PostgreSQL + \n Constraints to the amount of storage for each storage type are + the following: \n * General Purpose (SSD) storage (gp2): Must be + an integer from 20 to 65536. \n * Provisioned IOPS storage (io1): + Must be an integer from 100 to 65536. \n * Magnetic storage (standard): Must be an integer from 5 to 3072. \n Oracle \n Constraints to the - amount of storage for each storage type are the following: \n * + amount of storage for each storage type are the following: \n * General Purpose (SSD) storage (gp2): Must be an integer from 20 - to 65536. \n * Provisioned IOPS storage (io1): Must be an integer - from 100 to 65536. \n * Magnetic storage (standard): Must be - an integer from 10 to 3072. \n SQL Server \n Constraints to the - amount of storage for each storage type are the following: \n * - General Purpose (SSD) storage (gp2): Enterprise and Standard editions: - \ Must be an integer from 20 to 16384. Web and Express editions: - Must be an integer from 20 to 16384. \n * Provisioned IOPS - storage (io1): Enterprise and Standard editions: Must be an integer - from 100 to 16384. Web and Express editions: Must be an integer - from 100 to 16384. \n * Magnetic storage (standard): Enterprise - and Standard editions: Must be an integer from 20 to 1024. Web - and Express editions: Must be an integer from 20 to 1024." + to 65536. \n * Provisioned IOPS storage (io1): Must be an integer + from 100 to 65536. \n * Magnetic storage (standard): Must be an + integer from 10 to 3072. \n SQL Server \n Constraints to the amount + of storage for each storage type are the following: \n * General + Purpose (SSD) storage (gp2): Enterprise and Standard editions: Must + be an integer from 20 to 16384. Web and Express editions: Must be + an integer from 20 to 16384. \n * Provisioned IOPS storage (io1): + Enterprise and Standard editions: Must be an integer from 100 to + 16384. Web and Express editions: Must be an integer from 100 to + 16384. \n * Magnetic storage (standard): Enterprise and Standard + editions: Must be an integer from 20 to 1024. Web and Express editions: + Must be an integer from 20 to 1024." format: int64 type: integer autoMinorVersionUpgrade: @@ -114,10 +112,10 @@ spec: Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. \n Amazon Aurora \n Not applicable. The retention period for automated backups is - managed by the DB cluster. \n Default: 1 \n Constraints: \n * - Must be a value from 0 to 35 \n * Can't be set to 0 if the DB - instance is a source to read replicas \n * Can't be set to 0 - or 35 for an RDS Custom for Oracle DB instance" + managed by the DB cluster. \n Default: 1 \n Constraints: \n * Must + be a value from 0 to 35 \n * Can't be set to 0 if the DB instance + is a source to read replicas \n * Can't be set to 0 for an RDS Custom + for Oracle DB instance" format: int64 type: integer backupTarget: @@ -146,12 +144,12 @@ spec: customIAMInstanceProfile: description: "The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile - must meet the following requirements: \n * The profile must exist - in your account. \n * The profile must have an IAM role that - Amazon EC2 has permissions to assume. \n * The instance profile - name and the associated IAM role name must start with the prefix - AWSRDSCustom. \n For the list of permissions required for the IAM - role, see Configure IAM and your VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) + must meet the following requirements: \n * The profile must exist + in your account. \n * The profile must have an IAM role that Amazon + EC2 has permissions to assume. \n * The instance profile name and + the associated IAM role name must start with the prefix AWSRDSCustom. + \n For the list of permissions required for the IAM role, see Configure + IAM and your VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) in the Amazon RDS User Guide. \n This setting is required for RDS Custom." type: string @@ -161,17 +159,18 @@ spec: type: string dbInstanceClass: description: The compute and memory capacity of the DB instance, for - example db.m4.large. Not all DB instance classes are available in + example db.m5.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your - engine, see DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - in the Amazon RDS User Guide. + engine, see DB instance classes (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the Amazon RDS User Guide or Aurora DB instance classes (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) + in the Amazon Aurora User Guide. type: string dbInstanceIdentifier: description: "The DB instance identifier. This parameter is stored - as a lowercase string. \n Constraints: \n * Must contain from - 1 to 63 letters, numbers, or hyphens. \n * First character must - be a letter. \n * Can't end with a hyphen or contain two consecutive + as a lowercase string. \n Constraints: \n * Must contain from 1 + to 63 letters, numbers, or hyphens. \n * First character must be + a letter. \n * Can't end with a hyphen or contain two consecutive hyphens. \n Example: mydbinstance" type: string dbName: @@ -179,61 +178,60 @@ spec: database engine you use. \n MySQL \n The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. \n Constraints: - \n * Must contain 1 to 64 letters or numbers. \n * Must begin - with a letter. Subsequent characters can be letters, underscores, - \ or digits (0-9). \n * Can't be a word reserved by the specified - database engine \n MariaDB \n The name of the database to create - when the DB instance is created. If this parameter isn't specified, - no database is created in the DB instance. \n Constraints: \n * - Must contain 1 to 64 letters or numbers. \n * Must begin with - a letter. Subsequent characters can be letters, underscores, or - digits (0-9). \n * Can't be a word reserved by the specified - database engine \n PostgreSQL \n The name of the database to create - when the DB instance is created. If this parameter isn't specified, - a database named postgres is created in the DB instance. \n Constraints: - \n * Must contain 1 to 63 letters, numbers, or underscores. \n - \ * Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0-9). \n * Can't be a word reserved - by the specified database engine \n Oracle \n The Oracle System - ID (SID) of the created DB instance. If you specify null, the default - value ORCL is used. You can't specify the string NULL, or any other - reserved word, for DBName. \n Default: ORCL \n Constraints: \n * - Can't be longer than 8 characters \n Amazon RDS Custom for Oracle - \n The Oracle System ID (SID) of the created RDS Custom DB instance. - If you don't specify a value, the default value is ORCL. \n Default: - ORCL \n Constraints: \n * It must contain 1 to 8 alphanumeric - characters. \n * It must contain a letter. \n * It can't be - a word reserved by the database engine. \n Amazon RDS Custom for - SQL Server \n Not applicable. Must be null. \n SQL Server \n Not - applicable. Must be null. \n Amazon Aurora MySQL \n The name of - the database to create when the primary DB instance of the Aurora - MySQL DB cluster is created. If this parameter isn't specified for - an Aurora MySQL DB cluster, no database is created in the DB cluster. - \n Constraints: \n * It must contain 1 to 64 alphanumeric characters. - \n * It can't be a word reserved by the database engine. \n Amazon - Aurora PostgreSQL \n The name of the database to create when the - primary DB instance of the Aurora PostgreSQL DB cluster is created. - If this parameter isn't specified for an Aurora PostgreSQL DB cluster, - a database named postgres is created in the DB cluster. \n Constraints: - \n * It must contain 1 to 63 alphanumeric characters. \n * - It must begin with a letter or an underscore. Subsequent characters - \ can be letters, underscores, or digits (0 to 9). \n * It - can't be a word reserved by the database engine." + \n * Must contain 1 to 64 letters or numbers. \n * Must begin with + a letter. Subsequent characters can be letters, underscores, or + digits (0-9). \n * Can't be a word reserved by the specified database + engine \n MariaDB \n The name of the database to create when the + DB instance is created. If this parameter isn't specified, no database + is created in the DB instance. \n Constraints: \n * Must contain + 1 to 64 letters or numbers. \n * Must begin with a letter. Subsequent + characters can be letters, underscores, or digits (0-9). \n * Can't + be a word reserved by the specified database engine \n PostgreSQL + \n The name of the database to create when the DB instance is created. + If this parameter isn't specified, a database named postgres is + created in the DB instance. \n Constraints: \n * Must contain 1 + to 63 letters, numbers, or underscores. \n * Must begin with a letter. + Subsequent characters can be letters, underscores, or digits (0-9). + \n * Can't be a word reserved by the specified database engine \n + Oracle \n The Oracle System ID (SID) of the created DB instance. + If you specify null, the default value ORCL is used. You can't specify + the string NULL, or any other reserved word, for DBName. \n Default: + ORCL \n Constraints: \n * Can't be longer than 8 characters \n Amazon + RDS Custom for Oracle \n The Oracle System ID (SID) of the created + RDS Custom DB instance. If you don't specify a value, the default + value is ORCL. \n Default: ORCL \n Constraints: \n * It must contain + 1 to 8 alphanumeric characters. \n * It must contain a letter. \n + * It can't be a word reserved by the database engine. \n Amazon + RDS Custom for SQL Server \n Not applicable. Must be null. \n SQL + Server \n Not applicable. Must be null. \n Amazon Aurora MySQL \n + The name of the database to create when the primary DB instance + of the Aurora MySQL DB cluster is created. If this parameter isn't + specified for an Aurora MySQL DB cluster, no database is created + in the DB cluster. \n Constraints: \n * It must contain 1 to 64 + alphanumeric characters. \n * It can't be a word reserved by the + database engine. \n Amazon Aurora PostgreSQL \n The name of the + database to create when the primary DB instance of the Aurora PostgreSQL + DB cluster is created. If this parameter isn't specified for an + Aurora PostgreSQL DB cluster, a database named postgres is created + in the DB cluster. \n Constraints: \n * It must contain 1 to 63 + alphanumeric characters. \n * It must begin with a letter or an + underscore. Subsequent characters can be letters, underscores, or + digits (0 to 9). \n * It can't be a word reserved by the database + engine." type: string dbParameterGroupName: description: "The name of the DB parameter group to associate with this DB instance. If you do not specify a value, then the default DB parameter group for the specified DB engine and version is used. \n This setting doesn't apply to RDS Custom. \n Constraints: \n - \ * Must be 1 to 255 letters, numbers, or hyphens. \n * First - character must be a letter \n * Can't end with a hyphen or contain - two consecutive hyphens" + * Must be 1 to 255 letters, numbers, or hyphens. \n * First character + must be a letter \n * Can't end with a hyphen or contain two consecutive + hyphens" type: string dbParameterGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -245,10 +243,9 @@ spec: type: object dbSnapshotIdentifier: description: "The identifier for the DB snapshot to restore from. - \n Constraints: \n * Must match the identifier of an existing - DBSnapshot. \n * If you are restoring from a shared manual DB - snapshot, the DBSnapshotIdentifier must be the ARN of the shared - DB snapshot." + \n Constraints: \n * Must match the identifier of an existing DBSnapshot. + \n * If you are restoring from a shared manual DB snapshot, the + DBSnapshotIdentifier must be the ARN of the shared DB snapshot." type: string dbSubnetGroupName: description: "A DB subnet group to associate with this DB instance. @@ -258,8 +255,7 @@ spec: dbSubnetGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -289,12 +285,14 @@ spec: DB instances can be created in an Active Directory Domain. \n For more information, see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) in the Amazon RDS User Guide. \n This setting doesn't apply to RDS - Custom." + Custom. \n Amazon Aurora \n Not applicable. The domain is managed + by the DB cluster." type: string domainIAMRoleName: description: "Specify the name of the IAM role to be used when making API calls to the Directory Service. \n This setting doesn't apply - to RDS Custom." + to RDS Custom. \n Amazon Aurora \n Not applicable. The domain is + managed by the DB cluster." type: string enableCloudwatchLogsExports: description: "The list of log types that need to be enabled for exporting @@ -328,41 +326,40 @@ spec: enableIAMDatabaseAuthentication: description: "A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts - to database accounts. By default, mapping isn't enabled. \n This - setting doesn't apply to RDS Custom or Amazon Aurora. In Aurora, - mapping Amazon Web Services IAM accounts to database accounts is - managed by the DB cluster. \n For more information, see IAM Database - Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) - in the Amazon RDS User Guide." + to database accounts. By default, mapping isn't enabled. \n For + more information, see IAM Database Authentication for MySQL and + PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the Amazon RDS User Guide. \n This setting doesn't apply to RDS + Custom. \n Amazon Aurora \n Not applicable. Mapping Amazon Web Services + IAM accounts to database accounts is managed by the DB cluster." type: boolean engine: description: "The name of the database engine to be used for this instance. \n Not every database engine is available for every Amazon - Web Services Region. \n Valid Values: \n * aurora (for MySQL - 5.6-compatible Aurora) \n * aurora-mysql (for MySQL 5.7-compatible - and MySQL 8.0-compatible Aurora) \n * aurora-postgresql \n * - custom-oracle-ee (for RDS Custom for Oracle instances) \n * custom-sqlserver-ee - (for RDS Custom for SQL Server instances) \n * custom-sqlserver-se - (for RDS Custom for SQL Server instances) \n * custom-sqlserver-web - (for RDS Custom for SQL Server instances) \n * mariadb \n * - mysql \n * oracle-ee \n * oracle-ee-cdb \n * oracle-se2 - \n * oracle-se2-cdb \n * postgres \n * sqlserver-ee \n - \ * sqlserver-se \n * sqlserver-ex \n * sqlserver-web" + Web Services Region. \n Valid Values: \n * aurora (for MySQL 5.6-compatible + Aurora) \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible + Aurora) \n * aurora-postgresql \n * custom-oracle-ee (for RDS Custom + for Oracle instances) \n * custom-sqlserver-ee (for RDS Custom for + SQL Server instances) \n * custom-sqlserver-se (for RDS Custom for + SQL Server instances) \n * custom-sqlserver-web (for RDS Custom + for SQL Server instances) \n * mariadb \n * mysql \n * oracle-ee + \n * oracle-ee-cdb \n * oracle-se2 \n * oracle-se2-cdb \n * postgres + \n * sqlserver-ee \n * sqlserver-se \n * sqlserver-ex \n * sqlserver-web" type: string engineVersion: description: "The version number of the database engine to use. \n For a list of valid engine versions, use the DescribeDBEngineVersions - action. \n The following are the database engines and links to information - about the major and minor versions that are available with Amazon - RDS. Not every database engine is available for every Amazon Web - Services Region. \n Amazon Aurora \n Not applicable. The version - number of the database engine to be used by the DB instance is managed - by the DB cluster. \n Amazon RDS Custom for Oracle \n A custom engine - version (CEV) that you have previously created. This setting is - required for RDS Custom for Oracle. The CEV name has the following - format: 19.customized_string . An example identifier is 19.my_cev1. - For more information, see Creating an RDS Custom for Oracle DB instance - (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create) + operation. \n The following are the database engines and links to + information about the major and minor versions that are available + with Amazon RDS. Not every database engine is available for every + Amazon Web Services Region. \n Amazon Aurora \n Not applicable. + The version number of the database engine to be used by the DB instance + is managed by the DB cluster. \n Amazon RDS Custom for Oracle \n + A custom engine version (CEV) that you have previously created. + This setting is required for RDS Custom for Oracle. The CEV name + has the following format: 19.customized_string . An example identifier + is 19.my_cev1. For more information, see Creating an RDS Custom + for Oracle DB instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create) in the Amazon RDS User Guide. \n Amazon RDS Custom for SQL Server \n See RDS Custom for SQL Server general requirements (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html) in the Amazon RDS User Guide. \n MariaDB \n For information, see @@ -386,7 +383,8 @@ spec: Oracle, and PostgreSQL DB instances, must be a multiple between .5 and 50 of the storage amount for the DB instance. For SQL Server DB instances, must be a multiple between 1 and 50 of the storage - amount for the DB instance." + amount for the DB instance. \n Amazon Aurora \n Not applicable. + Storage is managed by the DB cluster." format: int64 type: integer kmsKeyID: @@ -410,8 +408,7 @@ spec: kmsKeyRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -424,7 +421,8 @@ spec: licenseModel: description: "License model information for this DB instance. \n Valid values: license-included | bring-your-own-license | general-public-license - \n This setting doesn't apply to RDS Custom." + \n This setting doesn't apply to RDS Custom. \n Amazon Aurora \n + Not applicable." type: string masterUserPassword: description: "The password for the master user. The password can include @@ -451,13 +449,13 @@ spec: required: - key type: object + x-kubernetes-map-type: atomic masterUsername: description: "The name for the master user. \n Amazon Aurora \n Not applicable. The name for the master user is managed by the DB cluster. - \n Amazon RDS \n Constraints: \n * Required. \n * Must be - 1 to 16 letters, numbers, or underscores. \n * First character - must be a letter. \n * Can't be a reserved word for the chosen - database engine." + \n Amazon RDS \n Constraints: \n * Required. \n * Must be 1 to 16 + letters, numbers, or underscores. \n * First character must be a + letter. \n * Can't be a reserved word for the chosen database engine." type: string maxAllocatedStorage: description: "The upper limit in gibibytes (GiB) to which Amazon RDS @@ -466,7 +464,8 @@ spec: to it, see Managing capacity automatically with Amazon RDS storage autoscaling (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) in the Amazon RDS User Guide. \n This setting doesn't apply to RDS - Custom." + Custom. \n Amazon Aurora \n Not applicable. Storage is managed by + the DB cluster." format: int64 type: integer monitoringInterval: @@ -491,7 +490,8 @@ spec: description: "A value that indicates whether the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment. \n This setting doesn't - apply to RDS Custom." + apply to RDS Custom. \n Amazon Aurora \n Not applicable. DB instance + Availability Zones (AZs) are managed by the DB cluster." type: boolean ncharCharacterSetName: description: "The name of the NCHAR character set for the Oracle DB @@ -499,11 +499,10 @@ spec: type: string networkType: description: "The network type of the DB instance. \n Valid values: - \n * IPV4 \n * DUAL \n The network type is determined by the - DBSubnetGroup specified for the DB instance. A DBSubnetGroup can - support only the IPv4 protocol or the IPv4 and the IPv6 protocols - (DUAL). \n For more information, see Working with a DB instance - in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + \n * IPV4 \n * DUAL \n The network type is determined by the DBSubnetGroup + specified for the DB instance. A DBSubnetGroup can support only + the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). \n + For more information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the Amazon RDS User Guide." type: string optionGroupName: @@ -512,7 +511,8 @@ spec: such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance. \n - This setting doesn't apply to RDS Custom." + This setting doesn't apply to RDS Custom. \n Amazon Aurora \n Not + applicable." type: string performanceInsightsEnabled: description: "A value that indicates whether to enable Performance @@ -532,9 +532,14 @@ spec: Region. \n This setting doesn't apply to RDS Custom." type: string performanceInsightsRetentionPeriod: - description: "The amount of time, in days, to retain Performance Insights - data. Valid values are 7 or 731 (2 years). \n This setting doesn't - apply to RDS Custom." + description: "The number of days to retain Performance Insights data. + The default is 7 days. The following values are valid: \n * 7 \n + * month * 31, where month is a number of months from 1-23 \n * 731 + \n For example, the following values are valid: \n * 93 (3 months + * 31) \n * 341 (11 months * 31) \n * 589 (19 months * 31) \n * 731 + \n If you specify a retention period such as 94, which isn't a valid + value, RDS issues an error. \n This setting doesn't apply to RDS + Custom." format: int64 type: integer port: @@ -549,41 +554,44 @@ spec: format: int64 type: integer preSignedURL: - description: "The URL that contains a Signature Version 4 signed request - for the CreateDBInstanceReadReplica API action in the source Amazon - Web Services Region that contains the source DB instance. \n You - must specify this parameter when you create an encrypted read replica - from another Amazon Web Services Region by using the Amazon RDS - API. Don't specify PreSignedUrl when you are creating an encrypted - read replica in the same Amazon Web Services Region. \n The presigned - URL must be a valid request for the CreateDBInstanceReadReplica - API action that can be executed in the source Amazon Web Services - Region that contains the encrypted source DB instance. The presigned - URL request must contain the following parameter values: \n * - DestinationRegion - The Amazon Web Services Region that the encrypted - \ read replica is created in. This Amazon Web Services Region - is the same one where the CreateDBInstanceReadReplica action - is called that contains this presigned URL. For example, if you - create an encrypted DB instance in the us-west-1 Amazon Web Services - Region, from a source DB instance in the us-east-2 Amazon Web - Services Region, then you call the CreateDBInstanceReadReplica action - in the us-east-1 Amazon Web Services Region and provide a presigned - \ URL that contains a call to the CreateDBInstanceReadReplica - action in the us-west-2 Amazon Web Services Region. For this - example, the DestinationRegion in the presigned URL must be set - to the us-east-1 Amazon Web Services Region. \n * KmsKeyId - - The Amazon Web Services KMS key identifier for the key to use - to encrypt the read replica in the destination Amazon Web Services - \ Region. This is the same identifier for both the CreateDBInstanceReadReplica - \ action that is called in the destination Amazon Web Services - Region, and the action contained in the presigned URL. \n * - SourceDBInstanceIdentifier - The DB instance identifier for the - encrypted DB instance to be replicated. This identifier must - be in the Amazon Resource Name (ARN) format for the source Amazon - Web Services Region. For example, if you are creating an encrypted - read replica from a DB instance in the us-west-2 Amazon Web Services - Region, then your SourceDBInstanceIdentifier looks like the following - example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115. + description: "When you are creating a read replica from one Amazon + Web Services GovCloud (US) Region to another or from one China Amazon + Web Services Region to another, the URL that contains a Signature + Version 4 signed request for the CreateDBInstanceReadReplica API + operation in the source Amazon Web Services Region that contains + the source DB instance. \n This setting applies only to Amazon Web + Services GovCloud (US) Regions and China Amazon Web Services Regions. + It's ignored in other Amazon Web Services Regions. \n You must specify + this parameter when you create an encrypted read replica from another + Amazon Web Services Region by using the Amazon RDS API. Don't specify + PreSignedUrl when you are creating an encrypted read replica in + the same Amazon Web Services Region. \n The presigned URL must be + a valid request for the CreateDBInstanceReadReplica API operation + that can run in the source Amazon Web Services Region that contains + the encrypted source DB instance. The presigned URL request must + contain the following parameter values: \n * DestinationRegion - + The Amazon Web Services Region that the encrypted read replica is + created in. This Amazon Web Services Region is the same one where + the CreateDBInstanceReadReplica operation is called that contains + this presigned URL. For example, if you create an encrypted DB instance + in the us-west-1 Amazon Web Services Region, from a source DB instance + in the us-east-2 Amazon Web Services Region, then you call the CreateDBInstanceReadReplica + operation in the us-east-1 Amazon Web Services Region and provide + a presigned URL that contains a call to the CreateDBInstanceReadReplica + operation in the us-west-2 Amazon Web Services Region. For this + example, the DestinationRegion in the presigned URL must be set + to the us-east-1 Amazon Web Services Region. \n * KmsKeyId - The + KMS key identifier for the key to use to encrypt the read replica + in the destination Amazon Web Services Region. This is the same + identifier for both the CreateDBInstanceReadReplica operation that + is called in the destination Amazon Web Services Region, and the + operation contained in the presigned URL. \n * SourceDBInstanceIdentifier + - The DB instance identifier for the encrypted DB instance to be + replicated. This identifier must be in the Amazon Resource Name + (ARN) format for the source Amazon Web Services Region. For example, + if you are creating an encrypted read replica from a DB instance + in the us-west-2 Amazon Web Services Region, then your SourceDBInstanceIdentifier + looks like the following example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115. \n To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) @@ -592,10 +600,10 @@ spec: you can specify SourceRegion (or --source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates a presigned URL that is a valid request for the operation that can - be executed in the source Amazon Web Services Region. \n SourceRegion - isn't supported for SQL Server, because SQL Server on Amazon RDS - doesn't support cross-Region read replicas. \n This setting doesn't - apply to RDS Custom." + run in the source Amazon Web Services Region. \n SourceRegion isn't + supported for SQL Server, because Amazon RDS for SQL Server doesn't + support cross-Region read replicas. \n This setting doesn't apply + to RDS Custom." type: string preferredBackupWindow: description: "The daily time range during which automated backups @@ -605,10 +613,10 @@ spec: For more information, see Backup window (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) in the Amazon RDS User Guide. \n Amazon Aurora \n Not applicable. The daily time range for creating automated backups is managed by - the DB cluster. \n Constraints: \n * Must be in the format hh24:mi-hh24:mi. - \n * Must be in Universal Coordinated Time (UTC). \n * Must - not conflict with the preferred maintenance window. \n * Must - be at least 30 minutes." + the DB cluster. \n Constraints: \n * Must be in the format hh24:mi-hh24:mi. + \n * Must be in Universal Coordinated Time (UTC). \n * Must not + conflict with the preferred maintenance window. \n * Must be at + least 30 minutes." type: string preferredMaintenanceWindow: description: "The time range each week during which system maintenance @@ -623,7 +631,7 @@ spec: processorFeatures: description: "The number of CPU cores and the number of threads per core for the DB instance class of the DB instance. \n This setting - doesn't apply to RDS Custom." + doesn't apply to RDS Custom. \n Amazon Aurora \n Not applicable." items: description: "Contains the processor features of a DB instance class. \n To specify the number of CPU cores, use the coreCount feature @@ -631,21 +639,20 @@ spec: per core, use the threadsPerCore feature name for the Name parameter. \n You can set the processor features of the DB instance class for a DB instance when you call one of the following actions: - \n * CreateDBInstance \n * ModifyDBInstance \n * RestoreDBInstanceFromDBSnapshot - \n * RestoreDBInstanceFromS3 \n * RestoreDBInstanceToPointInTime + \n * CreateDBInstance \n * ModifyDBInstance \n * RestoreDBInstanceFromDBSnapshot + \n * RestoreDBInstanceFromS3 \n * RestoreDBInstanceToPointInTime \n You can view the valid processor values for a particular instance class by calling the DescribeOrderableDBInstanceOptions action and specifying the instance class for the DBInstanceClass parameter. \n In addition, you can use the following actions for DB instance - class processor information: \n * DescribeDBInstances \n * - DescribeDBSnapshots \n * DescribeValidDBInstanceModifications - \n If you call DescribeDBInstances, ProcessorFeature returns non-null - values only if the following conditions are met: \n * You are - accessing an Oracle DB instance. \n * Your Oracle DB instance - class supports configuring the number of CPU cores and threads - per core. \n * The current number CPU cores and threads is - set to a non-default value. \n For more information, see Configuring - the Processor of the DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) + class processor information: \n * DescribeDBInstances \n * DescribeDBSnapshots + \n * DescribeValidDBInstanceModifications \n If you call DescribeDBInstances, + ProcessorFeature returns non-null values only if the following + conditions are met: \n * You are accessing an Oracle DB instance. + \n * Your Oracle DB instance class supports configuring the number + of CPU cores and threads per core. \n * The current number CPU + cores and threads is set to a non-default value. \n For more information, + see Configuring the Processor of the DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) in the Amazon RDS User Guide." properties: name: @@ -676,16 +683,16 @@ spec: with a DNS name that resolves to a private IP address. \n Default: The default behavior varies depending on whether DBSubnetGroupName is specified. \n If DBSubnetGroupName isn't specified, and PubliclyAccessible - isn't specified, the following applies: \n * If the default VPC - in the target Region doesn’t have an internet gateway attached - to it, the DB instance is private. \n * If the default VPC in - the target Region has an internet gateway attached to it, the - DB instance is public. \n If DBSubnetGroupName is specified, and - PubliclyAccessible isn't specified, the following applies: \n * - If the subnets are part of a VPC that doesn’t have an internet gateway - \ attached to it, the DB instance is private. \n * If the subnets - are part of a VPC that has an internet gateway attached to it, - the DB instance is public." + isn't specified, the following applies: \n * If the default VPC + in the target Region doesn’t have an internet gateway attached to + it, the DB instance is private. \n * If the default VPC in the target + Region has an internet gateway attached to it, the DB instance is + public. \n If DBSubnetGroupName is specified, and PubliclyAccessible + isn't specified, the following applies: \n * If the subnets are + part of a VPC that doesn’t have an internet gateway attached to + it, the DB instance is private. \n * If the subnets are part of + a VPC that has an internet gateway attached to it, the DB instance + is public." type: boolean replicaMode: description: "The open mode of the replica database: mounted or read-only. @@ -705,28 +712,27 @@ spec: sourceDBInstanceIdentifier: description: "The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to five - read replicas. \n Constraints: \n * Must be the identifier of - an existing MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server - DB instance. \n * Can specify a DB instance that is a MySQL read - replica only if the source is running MySQL 5.6 or later. \n - \ * For the limitations of Oracle read replicas, see Read Replica - Limitations with Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) - \ in the Amazon RDS User Guide. \n * For the limitations of - SQL Server read replicas, see Read Replica Limitations with Microsoft - SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.Limitations.html) - \ in the Amazon RDS User Guide. \n * Can specify a PostgreSQL - DB instance only if the source is running PostgreSQL 9.3.5 or - later (9.4.7 and higher for cross-Region replication). \n * The - specified DB instance must have automatic backups enabled, that - \ is, its backup retention period must be greater than 0. \n * - If the source DB instance is in the same Amazon Web Services Region - \ as the read replica, specify a valid DB instance identifier. - \n * If the source DB instance is in a different Amazon Web Services - Region from the read replica, specify a valid DB instance ARN. - For more information, see Constructing an ARN for Amazon RDS - (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) - \ in the Amazon RDS User Guide. This doesn't apply to SQL Server - or RDS Custom, which don't support cross-Region replicas." + read replicas. \n Constraints: \n * Must be the identifier of an + existing MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server DB instance. + \n * Can specify a DB instance that is a MySQL read replica only + if the source is running MySQL 5.6 or later. \n * For the limitations + of Oracle read replicas, see Read Replica Limitations with Oracle + (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) + in the Amazon RDS User Guide. \n * For the limitations of SQL Server + read replicas, see Read Replica Limitations with Microsoft SQL Server + (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.Limitations.html) + in the Amazon RDS User Guide. \n * Can specify a PostgreSQL DB instance + only if the source is running PostgreSQL 9.3.5 or later (9.4.7 and + higher for cross-Region replication). \n * The specified DB instance + must have automatic backups enabled, that is, its backup retention + period must be greater than 0. \n * If the source DB instance is + in the same Amazon Web Services Region as the read replica, specify + a valid DB instance identifier. \n * If the source DB instance is + in a different Amazon Web Services Region from the read replica, + specify a valid DB instance ARN. For more information, see Constructing + an ARN for Amazon RDS (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the Amazon RDS User Guide. This doesn't apply to SQL Server or + RDS Custom, which don't support cross-Region replicas." type: string sourceRegion: description: SourceRegion is the source region where the resource @@ -744,7 +750,8 @@ spec: description: "Specifies the storage type to be associated with the DB instance. \n Valid values: standard | gp2 | io1 \n If you specify io1, you must also include a value for the Iops parameter. \n Default: - io1 if the Iops parameter is specified, otherwise gp2" + io1 if the Iops parameter is specified, otherwise gp2 \n Amazon + Aurora \n Not applicable. Storage is managed by the DB cluster." type: string tags: description: Tags to assign to the DB instance. @@ -761,7 +768,7 @@ spec: tdeCredentialARN: description: "The ARN from the key store with which to associate the instance for TDE encryption. \n This setting doesn't apply to RDS - Custom." + Custom. \n Amazon Aurora \n Not applicable." type: string tdeCredentialPassword: description: "The password for the given ARN from the key store in @@ -790,7 +797,7 @@ spec: items: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: @@ -857,6 +864,9 @@ spec: such as a change or access generate an activity stream event. RDS for Oracle always handles these events asynchronously. type: string + activityStreamPolicyStatus: + description: The status of the policy state of the activity stream. + type: string activityStreamStatus: description: The status of the database activity stream. type: string @@ -968,9 +978,8 @@ spec: items: description: "The status of the DB parameter group. \n This data type is used as a response element in the following actions: \n - \ * CreateDBInstance \n * CreateDBInstanceReadReplica \n - \ * DeleteDBInstance \n * ModifyDBInstance \n * RebootDBInstance - \n * RestoreDBInstanceFromDBSnapshot" + * CreateDBInstance \n * CreateDBInstanceReadReplica \n * DeleteDBInstance + \n * ModifyDBInstance \n * RebootDBInstance \n * RestoreDBInstanceFromDBSnapshot" properties: dbParameterGroupName: type: string @@ -1079,10 +1088,10 @@ spec: description: "True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false. \n IAM database authentication can be enabled - for the following database engines \n * For MySQL 5.6, minor - version 5.6.34 or higher \n * For MySQL 5.7, minor version 5.7.16 - or higher \n * Aurora 5.6 or higher. To enable IAM database authentication - for Aurora, see DBCluster Type." + for the following database engines \n * For MySQL 5.6, minor version + 5.6.34 or higher \n * For MySQL 5.7, minor version 5.7.16 or higher + \n * Aurora 5.6 or higher. To enable IAM database authentication + for Aurora, see DBCluster Type." type: boolean instanceCreateTime: description: Provides the date and time the DB instance was created. @@ -1177,23 +1186,22 @@ spec: of threads per core, use the threadsPerCore feature name for the Name parameter. \n You can set the processor features of the DB instance class for a DB instance when you call one - of the following actions: \n * CreateDBInstance \n * - ModifyDBInstance \n * RestoreDBInstanceFromDBSnapshot \n - \ * RestoreDBInstanceFromS3 \n * RestoreDBInstanceToPointInTime - \n You can view the valid processor values for a particular - instance class by calling the DescribeOrderableDBInstanceOptions - action and specifying the instance class for the DBInstanceClass - parameter. \n In addition, you can use the following actions - for DB instance class processor information: \n * DescribeDBInstances - \n * DescribeDBSnapshots \n * DescribeValidDBInstanceModifications + of the following actions: \n * CreateDBInstance \n * ModifyDBInstance + \n * RestoreDBInstanceFromDBSnapshot \n * RestoreDBInstanceFromS3 + \n * RestoreDBInstanceToPointInTime \n You can view the valid + processor values for a particular instance class by calling + the DescribeOrderableDBInstanceOptions action and specifying + the instance class for the DBInstanceClass parameter. \n In + addition, you can use the following actions for DB instance + class processor information: \n * DescribeDBInstances \n * + DescribeDBSnapshots \n * DescribeValidDBInstanceModifications \n If you call DescribeDBInstances, ProcessorFeature returns non-null values only if the following conditions are met: - \n * You are accessing an Oracle DB instance. \n * Your - Oracle DB instance class supports configuring the number of - CPU cores and threads per core. \n * The current number - CPU cores and threads is set to a non-default value. \n For - more information, see Configuring the Processor of the DB - Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) + \n * You are accessing an Oracle DB instance. \n * Your Oracle + DB instance class supports configuring the number of CPU cores + and threads per core. \n * The current number CPU cores and + threads is set to a non-default value. \n For more information, + see Configuring the Processor of the DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) in the Amazon RDS User Guide." properties: name: @@ -1274,9 +1282,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/config/crd/bases/rds.services.k8s.aws_dbparametergroups.yaml b/config/crd/bases/rds.services.k8s.aws_dbparametergroups.yaml index 752bebc..cf813ac 100644 --- a/config/crd/bases/rds.services.k8s.aws_dbparametergroups.yaml +++ b/config/crd/bases/rds.services.k8s.aws_dbparametergroups.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbparametergroups.rds.services.k8s.aws spec: @@ -54,18 +53,17 @@ spec: for the MySQL DB engine, use the following command: \n aws rds describe-db-engine-versions --query \"DBEngineVersions[].DBParameterGroupFamily\" --engine mysql \n The output contains duplicates. \n The following are the valid - DB engine values: \n * aurora (for MySQL 5.6-compatible Aurora) - \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible - Aurora) \n * aurora-postgresql \n * mariadb \n * mysql - \n * oracle-ee \n * oracle-ee-cdb \n * oracle-se2 \n * - oracle-se2-cdb \n * postgres \n * sqlserver-ee \n * sqlserver-se - \n * sqlserver-ex \n * sqlserver-web" + DB engine values: \n * aurora (for MySQL 5.6-compatible Aurora) + \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible + Aurora) \n * aurora-postgresql \n * mariadb \n * mysql \n * oracle-ee + \n * oracle-ee-cdb \n * oracle-se2 \n * oracle-se2-cdb \n * postgres + \n * sqlserver-ee \n * sqlserver-se \n * sqlserver-ex \n * sqlserver-web" type: string name: description: "The name of the DB parameter group. \n Constraints: - \n * Must be 1 to 255 letters, numbers, or hyphens. \n * First - character must be a letter \n * Can't end with a hyphen or contain - two consecutive hyphens \n This value is stored as a lowercase string." + \n * Must be 1 to 255 letters, numbers, or hyphens. \n * First character + must be a letter \n * Can't end with a hyphen or contain two consecutive + hyphens \n This value is stored as a lowercase string." type: string parameterOverrides: additionalProperties: @@ -192,9 +190,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/config/crd/bases/rds.services.k8s.aws_dbproxies.yaml b/config/crd/bases/rds.services.k8s.aws_dbproxies.yaml index b6285fb..1210845 100644 --- a/config/crd/bases/rds.services.k8s.aws_dbproxies.yaml +++ b/config/crd/bases/rds.services.k8s.aws_dbproxies.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbproxies.rds.services.k8s.aws spec: @@ -70,8 +69,9 @@ spec: description: The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. - The engine family applies to MySQL and PostgreSQL for both RDS and - Aurora. + For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, + specify MYSQL. For Aurora PostgreSQL and RDS for PostgreSQL databases, + specify POSTGRESQL. type: string idleClientTimeout: description: The number of seconds that a connection to the proxy @@ -221,9 +221,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/config/crd/bases/rds.services.k8s.aws_dbsubnetgroups.yaml b/config/crd/bases/rds.services.k8s.aws_dbsubnetgroups.yaml index c586724..2ec1a79 100644 --- a/config/crd/bases/rds.services.k8s.aws_dbsubnetgroups.yaml +++ b/config/crd/bases/rds.services.k8s.aws_dbsubnetgroups.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbsubnetgroups.rds.services.k8s.aws spec: @@ -43,9 +42,9 @@ spec: type: string name: description: "The name for the DB subnet group. This value is stored - as a lowercase string. \n Constraints: \n * Must contain no more - than 255 letters, numbers, periods, underscores, spaces, or hyphens. - \n * Must not be default. \n * First character must be a letter. + as a lowercase string. \n Constraints: \n * Must contain no more + than 255 letters, numbers, periods, underscores, spaces, or hyphens. + \n * Must not be default. \n * First character must be a letter. \n Example: mydbsubnetgroup" type: string subnetIDs: @@ -57,7 +56,7 @@ spec: items: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: @@ -183,9 +182,9 @@ spec: type: array supportedNetworkTypes: description: "The network type of the DB subnet group. \n Valid values: - \n * IPV4 \n * DUAL \n A DBSubnetGroup can support only the - IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). \n For - more information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + \n * IPV4 \n * DUAL \n A DBSubnetGroup can support only the IPv4 + protocol or the IPv4 and the IPv6 protocols (DUAL). \n For more + information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the Amazon RDS User Guide." items: type: string @@ -199,9 +198,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/config/crd/bases/rds.services.k8s.aws_globalclusters.yaml b/config/crd/bases/rds.services.k8s.aws_globalclusters.yaml index 4fe81d4..299b864 100644 --- a/config/crd/bases/rds.services.k8s.aws_globalclusters.yaml +++ b/config/crd/bases/rds.services.k8s.aws_globalclusters.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: globalclusters.rds.services.k8s.aws spec: @@ -38,9 +37,9 @@ spec: \n A data type representing an Aurora global database." properties: databaseName: - description: The name for your database of up to 64 alpha-numeric - characters. If you do not provide a name, Amazon Aurora will not - create a database in the global database cluster you are creating. + description: The name for your database of up to 64 alphanumeric characters. + If you do not provide a name, Amazon Aurora will not create a database + in the global database cluster you are creating. type: string deletionProtection: description: The deletion protection setting for the new global database. @@ -177,9 +176,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/config/crd/common/bases/services.k8s.aws_fieldexports.yaml b/config/crd/common/bases/services.k8s.aws_fieldexports.yaml index 361e01f..a435de8 100644 --- a/config/crd/common/bases/services.k8s.aws_fieldexports.yaml +++ b/config/crd/common/bases/services.k8s.aws_fieldexports.yaml @@ -66,6 +66,10 @@ spec: description: FieldExportTarget provides the values necessary to identify the output path for a field export. properties: + key: + description: Key overrides the default value (`.`) + for the FieldExport target + type: string kind: description: FieldExportOutputType represents all types that can be produced by a field export operation diff --git a/config/rbac/cluster-role-controller.yaml b/config/rbac/cluster-role-controller.yaml index aa22da1..c5b17c8 100644 --- a/config/rbac/cluster-role-controller.yaml +++ b/config/rbac/cluster-role-controller.yaml @@ -1,4 +1,3 @@ - --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/go.mod b/go.mod index 3a8290a..03df00b 100644 --- a/go.mod +++ b/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( github.com/aws-controllers-k8s/ec2-controller v0.0.16 github.com/aws-controllers-k8s/kms-controller v0.0.15 - github.com/aws-controllers-k8s/runtime v0.19.3 - github.com/aws/aws-sdk-go v1.44.27 + github.com/aws-controllers-k8s/runtime v0.20.1 + github.com/aws/aws-sdk-go v1.44.93 github.com/go-logr/logr v1.2.0 github.com/spf13/pflag v1.0.5 k8s.io/api v0.23.0 diff --git a/go.sum b/go.sum index b5b1f7a..1c5e8de 100644 --- a/go.sum +++ b/go.sum @@ -70,11 +70,11 @@ github.com/aws-controllers-k8s/kms-controller v0.0.15 h1:v9LLAE2Q517CvlP80EgXNq2 github.com/aws-controllers-k8s/kms-controller v0.0.15/go.mod h1:EbxvdZDS2n3JCMmhfjhavSutzt/9J0jXSvGj2bufS68= github.com/aws-controllers-k8s/runtime v0.18.4/go.mod h1:oA8ML1/LL3chPn26P6SzBNu1CUI2nekB+PTqykNs0qU= github.com/aws-controllers-k8s/runtime v0.19.2/go.mod h1:oA8ML1/LL3chPn26P6SzBNu1CUI2nekB+PTqykNs0qU= -github.com/aws-controllers-k8s/runtime v0.19.3 h1:difFG8eFrQuIZb+FGEKMLrGlhY/QwKq++W33oMg+c3Q= -github.com/aws-controllers-k8s/runtime v0.19.3/go.mod h1:oA8ML1/LL3chPn26P6SzBNu1CUI2nekB+PTqykNs0qU= +github.com/aws-controllers-k8s/runtime v0.20.1 h1:L/Huf1shRahx5BqJBCSS5u+vYg3f0Rotsq1jutORpdI= +github.com/aws-controllers-k8s/runtime v0.20.1/go.mod h1:k7z4qlf6aK1Kzd4ff49wzcyhDKHjWaUpqxrwgl4uS1o= github.com/aws/aws-sdk-go v1.42.0/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= -github.com/aws/aws-sdk-go v1.44.27 h1:8CMspeZSrewnbvAwgl8qo5R7orDLwQnTGBf/OKPiHxI= -github.com/aws/aws-sdk-go v1.44.27/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/aws-sdk-go v1.44.93 h1:hAgd9fuaptBatSft27/5eBMdcA8+cIMqo96/tZ6rKl8= +github.com/aws/aws-sdk-go v1.44.93/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 39b43a9..c767485 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 name: rds-chart description: A Helm chart for the ACK service controller for Amazon Relational Database Service (RDS) -version: v0.1.0 -appVersion: v0.1.0 +version: v0.1.1 +appVersion: v0.1.1 home: https://github.com/aws-controllers-k8s/rds-controller icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png sources: diff --git a/helm/crds/rds.services.k8s.aws_dbclusterparametergroups.yaml b/helm/crds/rds.services.k8s.aws_dbclusterparametergroups.yaml index 649dec6..d04ac11 100644 --- a/helm/crds/rds.services.k8s.aws_dbclusterparametergroups.yaml +++ b/helm/crds/rds.services.k8s.aws_dbclusterparametergroups.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbclusterparametergroups.rds.services.k8s.aws spec: @@ -58,14 +57,14 @@ spec: group families for the Aurora PostgreSQL DB engine, use the following command: \n aws rds describe-db-engine-versions --query \"DBEngineVersions[].DBParameterGroupFamily\" --engine aurora-postgresql \n The output contains duplicates. \n - The following are the valid DB engine values: \n * aurora (for - MySQL 5.6-compatible Aurora) \n * aurora-mysql (for MySQL 5.7-compatible - and MySQL 8.0-compatible Aurora) \n * aurora-postgresql \n * - mysql \n * postgres" + The following are the valid DB engine values: \n * aurora (for MySQL + 5.6-compatible Aurora) \n * aurora-mysql (for MySQL 5.7-compatible + and MySQL 8.0-compatible Aurora) \n * aurora-postgresql \n * mysql + \n * postgres" type: string name: description: "The name of the DB cluster parameter group. \n Constraints: - \n * Must not match the name of an existing DB cluster parameter + \n * Must not match the name of an existing DB cluster parameter group. \n This value is stored as a lowercase string." type: string parameters: @@ -199,9 +198,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/rds.services.k8s.aws_dbclusters.yaml b/helm/crds/rds.services.k8s.aws_dbclusters.yaml index c3df4d9..eb61c26 100644 --- a/helm/crds/rds.services.k8s.aws_dbclusters.yaml +++ b/helm/crds/rds.services.k8s.aws_dbclusters.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbclusters.rds.services.k8s.aws spec: @@ -77,15 +76,14 @@ spec: backtrackWindow: description: "The target backtrack window, in seconds. To disable backtracking, set this value to 0. \n Default: 0 \n Constraints: - \n * If specified, this value must be set to a number from 0 - to 259,200 (72 hours). \n Valid for: Aurora MySQL DB clusters - only" + \n * If specified, this value must be set to a number from 0 to + 259,200 (72 hours). \n Valid for: Aurora MySQL DB clusters only" format: int64 type: integer backupRetentionPeriod: description: "The number of days for which automated backups are retained. - \n Default: 1 \n Constraints: \n * Must be a value from 1 to - 35 \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" + \n Default: 1 \n Constraints: \n * Must be a value from 1 to 35 + \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" format: int64 type: integer characterSetName: @@ -106,9 +104,9 @@ spec: type: string dbClusterIdentifier: description: "The DB cluster identifier. This parameter is stored - as a lowercase string. \n Constraints: \n * Must contain from - 1 to 63 letters, numbers, or hyphens. \n * First character must - be a letter. \n * Can't end with a hyphen or contain two consecutive + as a lowercase string. \n Constraints: \n * Must contain from 1 + to 63 letters, numbers, or hyphens. \n * First character must be + a letter. \n * Can't end with a hyphen or contain two consecutive hyphens. \n Example: my-cluster1 \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" type: string @@ -126,15 +124,14 @@ spec: description: "The name of the DB cluster parameter group to associate with this DB cluster. If you do not specify a value, then the default DB cluster parameter group for the specified DB engine and version - is used. \n Constraints: \n * If supplied, must match the name - of an existing DB cluster parameter group. \n Valid for: Aurora - DB clusters and Multi-AZ DB clusters" + is used. \n Constraints: \n * If supplied, must match the name of + an existing DB cluster parameter group. \n Valid for: Aurora DB + clusters and Multi-AZ DB clusters" type: string dbClusterParameterGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -154,8 +151,7 @@ spec: dbSubnetGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -236,7 +232,7 @@ spec: Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled. \n For more information, see IAM Database Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) - in the Amazon Aurora User Guide.. \n Valid for: Aurora DB clusters + in the Amazon Aurora User Guide. \n Valid for: Aurora DB clusters only" type: boolean enablePerformanceInsights: @@ -248,11 +244,10 @@ spec: type: boolean engine: description: "The name of the database engine to be used for this - DB cluster. \n Valid Values: \n * aurora (for MySQL 5.6-compatible - Aurora) \n * aurora-mysql (for MySQL 5.7-compatible and MySQL - 8.0-compatible Aurora) \n * aurora-postgresql \n * mysql \n - \ * postgres \n Valid for: Aurora DB clusters and Multi-AZ DB - clusters" + DB cluster. \n Valid Values: \n * aurora (for MySQL 5.6-compatible + Aurora) \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible + Aurora) \n * aurora-postgresql \n * mysql \n * postgres \n Valid + for: Aurora DB clusters and Multi-AZ DB clusters" type: string engineMode: description: "The DB engine mode of the DB cluster, either provisioned, @@ -262,15 +257,17 @@ spec: engine mode isn't required for Aurora MySQL version 1.22 and higher 1.x versions, and global engine mode isn't required for any 2.x versions. \n The multimaster engine mode only applies for DB clusters - created with Aurora MySQL version 5.6.10a. \n For Aurora PostgreSQL, - the global engine mode isn't required, and both the parallelquery - and the multimaster engine modes currently aren't supported. \n - Limitations and requirements apply to some DB engine modes. For - more information, see the following sections in the Amazon Aurora - User Guide: \n * Limitations of Aurora Serverless v1 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations) - \n * Limitations of Parallel Query (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html#aurora-mysql-parallel-query-limitations) - \n * Limitations of Aurora Global Databases (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database.limitations) - \n * Limitations of Multi-Master Clusters (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-multi-master.html#aurora-multi-master-limitations) + created with Aurora MySQL version 5.6.10a. \n The serverless engine + mode only applies for Aurora Serverless v1 DB clusters. \n For Aurora + PostgreSQL, the global engine mode isn't required, and both the + parallelquery and the multimaster engine modes currently aren't + supported. \n Limitations and requirements apply to some DB engine + modes. For more information, see the following sections in the Amazon + Aurora User Guide: \n * Limitations of Aurora Serverless v1 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations) + \n * Requirements for Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html) + \n * Limitations of Parallel Query (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html#aurora-mysql-parallel-query-limitations) + \n * Limitations of Aurora Global Databases (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database.limitations) + \n * Limitations of Multi-Master Clusters (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-multi-master.html#aurora-multi-master-limitations) \n Valid for: Aurora DB clusters only" type: string engineVersion: @@ -323,11 +320,11 @@ spec: 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. \n When a KMS key isn't specified in KmsKeyId: - \n * If ReplicationSourceIdentifier identifies an encrypted source, - then Amazon RDS will use the KMS key used to encrypt the source. - Otherwise, Amazon RDS will use your default KMS key. \n * - If the StorageEncrypted parameter is enabled and ReplicationSourceIdentifier - \ isn't specified, then Amazon RDS will use your default KMS key. + \n * If ReplicationSourceIdentifier identifies an encrypted source, + then Amazon RDS will use the KMS key used to encrypt the source. + Otherwise, Amazon RDS will use your default KMS key. \n * If the + StorageEncrypted parameter is enabled and ReplicationSourceIdentifier + isn't specified, then Amazon RDS will use your default KMS key. \n There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region. \n If you create a read replica @@ -340,8 +337,7 @@ spec: kmsKeyRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -371,12 +367,12 @@ spec: required: - key type: object + x-kubernetes-map-type: atomic masterUsername: description: "The name of the master user for the DB cluster. \n Constraints: - \n * Must be 1 to 16 letters or numbers. \n * First character - must be a letter. \n * Can't be a reserved word for the chosen - database engine. \n Valid for: Aurora DB clusters and Multi-AZ DB - clusters" + \n * Must be 1 to 16 letters or numbers. \n * First character must + be a letter. \n * Can't be a reserved word for the chosen database + engine. \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" type: string monitoringInterval: description: "The interval, in seconds, between points when Enhanced @@ -397,6 +393,15 @@ spec: a value other than 0, supply a MonitoringRoleArn value. \n Valid for: Multi-AZ DB clusters only" type: string + networkType: + description: "The network type of the DB cluster. \n Valid values: + \n * IPV4 \n * DUAL \n The network type is determined by the DBSubnetGroup + specified for the DB cluster. A DBSubnetGroup can support only the + IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). \n For + more information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the Amazon Aurora User Guide. \n Valid for: Aurora DB clusters + only" + type: string optionGroupName: description: "A value that indicates that the DB cluster should be associated with the specified option group. \n DB clusters are associated @@ -413,9 +418,13 @@ spec: Region. \n Valid for: Multi-AZ DB clusters only" type: string performanceInsightsRetentionPeriod: - description: "The amount of time, in days, to retain Performance Insights - data. Valid values are 7 or 731 (2 years). \n Valid for: Multi-AZ - DB clusters only" + description: "The number of days to retain Performance Insights data. + The default is 7 days. The following values are valid: \n * 7 \n + * month * 31, where month is a number of months from 1-23 \n * 731 + \n For example, the following values are valid: \n * 93 (3 months + * 31) \n * 341 (11 months * 31) \n * 589 (19 months * 31) \n * 731 + \n If you specify a retention period such as 94, which isn't a valid + value, RDS issues an error. \n Valid for: Multi-AZ DB clusters only" format: int64 type: integer port: @@ -427,28 +436,28 @@ spec: format: int64 type: integer preSignedURL: - description: "A URL that contains a Signature Version 4 signed request - for the CreateDBCluster action to be called in the source Amazon - Web Services Region where the DB cluster is replicated from. Specify - PreSignedUrl only when you are performing cross-Region replication - from an encrypted DB cluster. \n The pre-signed URL must be a valid - request for the CreateDBCluster API action that can be executed - in the source Amazon Web Services Region that contains the encrypted - DB cluster to be copied. \n The pre-signed URL request must contain - the following parameter values: \n * KmsKeyId - The Amazon Web - Services KMS key identifier for the KMS key to use to encrypt - the copy of the DB cluster in the destination Amazon Web Services - Region. This should refer to the same KMS key for both the CreateDBCluster - action that is called in the destination Amazon Web Services Region, - and the action contained in the pre-signed URL. \n * DestinationRegion - - The name of the Amazon Web Services Region that Aurora read - replica will be created in. \n * ReplicationSourceIdentifier - - The DB cluster identifier for the encrypted DB cluster to be - copied. This identifier must be in the Amazon Resource Name (ARN) - format for the source Amazon Web Services Region. For example, if - you are copying an encrypted DB cluster from the us-west-2 Amazon - Web Services Region, then your ReplicationSourceIdentifier would - look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1. + description: "When you are replicating a DB cluster from one Amazon + Web Services GovCloud (US) Region to another, an URL that contains + a Signature Version 4 signed request for the CreateDBCluster operation + to be called in the source Amazon Web Services Region where the + DB cluster is replicated from. Specify PreSignedUrl only when you + are performing cross-Region replication from an encrypted DB cluster. + \n The presigned URL must be a valid request for the CreateDBCluster + API operation that can run in the source Amazon Web Services Region + that contains the encrypted DB cluster to copy. \n The presigned + URL request must contain the following parameter values: \n * KmsKeyId + - The KMS key identifier for the KMS key to use to encrypt the copy + of the DB cluster in the destination Amazon Web Services Region. + This should refer to the same KMS key for both the CreateDBCluster + operation that is called in the destination Amazon Web Services + Region, and the operation contained in the presigned URL. \n * DestinationRegion + - The name of the Amazon Web Services Region that Aurora read replica + will be created in. \n * ReplicationSourceIdentifier - The DB cluster + identifier for the encrypted DB cluster to be copied. This identifier + must be in the Amazon Resource Name (ARN) format for the source + Amazon Web Services Region. For example, if you are copying an encrypted + DB cluster from the us-west-2 Amazon Web Services Region, then your + ReplicationSourceIdentifier would look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1. \n To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) @@ -456,9 +465,9 @@ spec: \n If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion (or --source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates - a pre-signed URL that is a valid request for the operation that - can be executed in the source Amazon Web Services Region. \n Valid - for: Aurora DB clusters only" + a presigned URL that is a valid request for the operation that can + run in the source Amazon Web Services Region. \n Valid for: Aurora + DB clusters only" type: string preferredBackupWindow: description: "The daily time range during which automated backups @@ -466,11 +475,11 @@ spec: parameter. \n The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see Backup window (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) - in the Amazon Aurora User Guide. \n Constraints: \n * Must be - in the format hh24:mi-hh24:mi. \n * Must be in Universal Coordinated - Time (UTC). \n * Must not conflict with the preferred maintenance - window. \n * Must be at least 30 minutes. \n Valid for: Aurora - DB clusters and Multi-AZ DB clusters" + in the Amazon Aurora User Guide. \n Constraints: \n * Must be in + the format hh24:mi-hh24:mi. \n * Must be in Universal Coordinated + Time (UTC). \n * Must not conflict with the preferred maintenance + window. \n * Must be at least 30 minutes. \n Valid for: Aurora DB + clusters and Multi-AZ DB clusters" type: string preferredMaintenanceWindow: description: "The weekly time range during which system maintenance @@ -496,16 +505,16 @@ spec: name that resolves to a private IP address. \n Default: The default behavior varies depending on whether DBSubnetGroupName is specified. \n If DBSubnetGroupName isn't specified, and PubliclyAccessible - isn't specified, the following applies: \n * If the default VPC - in the target Region doesn’t have an internet gateway attached - to it, the DB cluster is private. \n * If the default VPC in - the target Region has an internet gateway attached to it, the - DB cluster is public. \n If DBSubnetGroupName is specified, and - PubliclyAccessible isn't specified, the following applies: \n * - If the subnets are part of a VPC that doesn’t have an internet gateway - \ attached to it, the DB cluster is private. \n * If the subnets - are part of a VPC that has an internet gateway attached to it, - the DB cluster is public. \n Valid for: Multi-AZ DB clusters only" + isn't specified, the following applies: \n * If the default VPC + in the target Region doesn’t have an internet gateway attached to + it, the DB cluster is private. \n * If the default VPC in the target + Region has an internet gateway attached to it, the DB cluster is + public. \n If DBSubnetGroupName is specified, and PubliclyAccessible + isn't specified, the following applies: \n * If the subnets are + part of a VPC that doesn’t have an internet gateway attached to + it, the DB cluster is private. \n * If the subnets are part of a + VPC that has an internet gateway attached to it, the DB cluster + is public. \n Valid for: Multi-AZ DB clusters only" type: boolean replicationSourceIdentifier: description: "The Amazon Resource Name (ARN) of the source DB instance @@ -548,7 +557,7 @@ spec: description: "The identifier for the DB snapshot or DB cluster snapshot to restore from. \n You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use - only the ARN to specify a DB snapshot. \n Constraints: \n * Must + only the ARN to specify a DB snapshot. \n Constraints: \n * Must match the identifier of an existing Snapshot. \n Valid for: Aurora DB clusters and Multi-AZ DB clusters" type: string @@ -592,7 +601,7 @@ spec: items: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: @@ -954,9 +963,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/rds.services.k8s.aws_dbinstances.yaml b/helm/crds/rds.services.k8s.aws_dbinstances.yaml index 1af5a54..224167a 100644 --- a/helm/crds/rds.services.k8s.aws_dbinstances.yaml +++ b/helm/crds/rds.services.k8s.aws_dbinstances.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbinstances.rds.services.k8s.aws spec: @@ -52,40 +51,39 @@ spec: in your database increases, though you are only charged for the space that you use in an Aurora cluster volume. \n Amazon RDS Custom \n Constraints to the amount of storage for each storage type are - the following: \n * General Purpose (SSD) storage (gp2): Must - be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 - for RDS Custom for SQL Server. \n * Provisioned IOPS storage - (io1): Must be an integer from 40 to 65536 for RDS Custom for - Oracle, 16384 for RDS Custom for SQL Server. \n MySQL \n Constraints - to the amount of storage for each storage type are the following: - \n * General Purpose (SSD) storage (gp2): Must be an integer - from 20 to 65536. \n * Provisioned IOPS storage (io1): Must be - an integer from 100 to 65536. \n * Magnetic storage (standard): - Must be an integer from 5 to 3072. \n MariaDB \n Constraints to - the amount of storage for each storage type are the following: \n - \ * General Purpose (SSD) storage (gp2): Must be an integer from - 20 to 65536. \n * Provisioned IOPS storage (io1): Must be an - integer from 100 to 65536. \n * Magnetic storage (standard): - Must be an integer from 5 to 3072. \n PostgreSQL \n Constraints - to the amount of storage for each storage type are the following: - \n * General Purpose (SSD) storage (gp2): Must be an integer - from 20 to 65536. \n * Provisioned IOPS storage (io1): Must be - an integer from 100 to 65536. \n * Magnetic storage (standard): + the following: \n * General Purpose (SSD) storage (gp2): Must be + an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for + RDS Custom for SQL Server. \n * Provisioned IOPS storage (io1): + Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 + for RDS Custom for SQL Server. \n MySQL \n Constraints to the amount + of storage for each storage type are the following: \n * General + Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. + \n * Provisioned IOPS storage (io1): Must be an integer from 100 + to 65536. \n * Magnetic storage (standard): Must be an integer from + 5 to 3072. \n MariaDB \n Constraints to the amount of storage for + each storage type are the following: \n * General Purpose (SSD) + storage (gp2): Must be an integer from 20 to 65536. \n * Provisioned + IOPS storage (io1): Must be an integer from 100 to 65536. \n * Magnetic + storage (standard): Must be an integer from 5 to 3072. \n PostgreSQL + \n Constraints to the amount of storage for each storage type are + the following: \n * General Purpose (SSD) storage (gp2): Must be + an integer from 20 to 65536. \n * Provisioned IOPS storage (io1): + Must be an integer from 100 to 65536. \n * Magnetic storage (standard): Must be an integer from 5 to 3072. \n Oracle \n Constraints to the - amount of storage for each storage type are the following: \n * + amount of storage for each storage type are the following: \n * General Purpose (SSD) storage (gp2): Must be an integer from 20 - to 65536. \n * Provisioned IOPS storage (io1): Must be an integer - from 100 to 65536. \n * Magnetic storage (standard): Must be - an integer from 10 to 3072. \n SQL Server \n Constraints to the - amount of storage for each storage type are the following: \n * - General Purpose (SSD) storage (gp2): Enterprise and Standard editions: - \ Must be an integer from 20 to 16384. Web and Express editions: - Must be an integer from 20 to 16384. \n * Provisioned IOPS - storage (io1): Enterprise and Standard editions: Must be an integer - from 100 to 16384. Web and Express editions: Must be an integer - from 100 to 16384. \n * Magnetic storage (standard): Enterprise - and Standard editions: Must be an integer from 20 to 1024. Web - and Express editions: Must be an integer from 20 to 1024." + to 65536. \n * Provisioned IOPS storage (io1): Must be an integer + from 100 to 65536. \n * Magnetic storage (standard): Must be an + integer from 10 to 3072. \n SQL Server \n Constraints to the amount + of storage for each storage type are the following: \n * General + Purpose (SSD) storage (gp2): Enterprise and Standard editions: Must + be an integer from 20 to 16384. Web and Express editions: Must be + an integer from 20 to 16384. \n * Provisioned IOPS storage (io1): + Enterprise and Standard editions: Must be an integer from 100 to + 16384. Web and Express editions: Must be an integer from 100 to + 16384. \n * Magnetic storage (standard): Enterprise and Standard + editions: Must be an integer from 20 to 1024. Web and Express editions: + Must be an integer from 20 to 1024." format: int64 type: integer autoMinorVersionUpgrade: @@ -114,10 +112,10 @@ spec: Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. \n Amazon Aurora \n Not applicable. The retention period for automated backups is - managed by the DB cluster. \n Default: 1 \n Constraints: \n * - Must be a value from 0 to 35 \n * Can't be set to 0 if the DB - instance is a source to read replicas \n * Can't be set to 0 - or 35 for an RDS Custom for Oracle DB instance" + managed by the DB cluster. \n Default: 1 \n Constraints: \n * Must + be a value from 0 to 35 \n * Can't be set to 0 if the DB instance + is a source to read replicas \n * Can't be set to 0 for an RDS Custom + for Oracle DB instance" format: int64 type: integer backupTarget: @@ -146,12 +144,12 @@ spec: customIAMInstanceProfile: description: "The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile - must meet the following requirements: \n * The profile must exist - in your account. \n * The profile must have an IAM role that - Amazon EC2 has permissions to assume. \n * The instance profile - name and the associated IAM role name must start with the prefix - AWSRDSCustom. \n For the list of permissions required for the IAM - role, see Configure IAM and your VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) + must meet the following requirements: \n * The profile must exist + in your account. \n * The profile must have an IAM role that Amazon + EC2 has permissions to assume. \n * The instance profile name and + the associated IAM role name must start with the prefix AWSRDSCustom. + \n For the list of permissions required for the IAM role, see Configure + IAM and your VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) in the Amazon RDS User Guide. \n This setting is required for RDS Custom." type: string @@ -161,17 +159,18 @@ spec: type: string dbInstanceClass: description: The compute and memory capacity of the DB instance, for - example db.m4.large. Not all DB instance classes are available in + example db.m5.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your - engine, see DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - in the Amazon RDS User Guide. + engine, see DB instance classes (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the Amazon RDS User Guide or Aurora DB instance classes (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) + in the Amazon Aurora User Guide. type: string dbInstanceIdentifier: description: "The DB instance identifier. This parameter is stored - as a lowercase string. \n Constraints: \n * Must contain from - 1 to 63 letters, numbers, or hyphens. \n * First character must - be a letter. \n * Can't end with a hyphen or contain two consecutive + as a lowercase string. \n Constraints: \n * Must contain from 1 + to 63 letters, numbers, or hyphens. \n * First character must be + a letter. \n * Can't end with a hyphen or contain two consecutive hyphens. \n Example: mydbinstance" type: string dbName: @@ -179,61 +178,60 @@ spec: database engine you use. \n MySQL \n The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. \n Constraints: - \n * Must contain 1 to 64 letters or numbers. \n * Must begin - with a letter. Subsequent characters can be letters, underscores, - \ or digits (0-9). \n * Can't be a word reserved by the specified - database engine \n MariaDB \n The name of the database to create - when the DB instance is created. If this parameter isn't specified, - no database is created in the DB instance. \n Constraints: \n * - Must contain 1 to 64 letters or numbers. \n * Must begin with - a letter. Subsequent characters can be letters, underscores, or - digits (0-9). \n * Can't be a word reserved by the specified - database engine \n PostgreSQL \n The name of the database to create - when the DB instance is created. If this parameter isn't specified, - a database named postgres is created in the DB instance. \n Constraints: - \n * Must contain 1 to 63 letters, numbers, or underscores. \n - \ * Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0-9). \n * Can't be a word reserved - by the specified database engine \n Oracle \n The Oracle System - ID (SID) of the created DB instance. If you specify null, the default - value ORCL is used. You can't specify the string NULL, or any other - reserved word, for DBName. \n Default: ORCL \n Constraints: \n * - Can't be longer than 8 characters \n Amazon RDS Custom for Oracle - \n The Oracle System ID (SID) of the created RDS Custom DB instance. - If you don't specify a value, the default value is ORCL. \n Default: - ORCL \n Constraints: \n * It must contain 1 to 8 alphanumeric - characters. \n * It must contain a letter. \n * It can't be - a word reserved by the database engine. \n Amazon RDS Custom for - SQL Server \n Not applicable. Must be null. \n SQL Server \n Not - applicable. Must be null. \n Amazon Aurora MySQL \n The name of - the database to create when the primary DB instance of the Aurora - MySQL DB cluster is created. If this parameter isn't specified for - an Aurora MySQL DB cluster, no database is created in the DB cluster. - \n Constraints: \n * It must contain 1 to 64 alphanumeric characters. - \n * It can't be a word reserved by the database engine. \n Amazon - Aurora PostgreSQL \n The name of the database to create when the - primary DB instance of the Aurora PostgreSQL DB cluster is created. - If this parameter isn't specified for an Aurora PostgreSQL DB cluster, - a database named postgres is created in the DB cluster. \n Constraints: - \n * It must contain 1 to 63 alphanumeric characters. \n * - It must begin with a letter or an underscore. Subsequent characters - \ can be letters, underscores, or digits (0 to 9). \n * It - can't be a word reserved by the database engine." + \n * Must contain 1 to 64 letters or numbers. \n * Must begin with + a letter. Subsequent characters can be letters, underscores, or + digits (0-9). \n * Can't be a word reserved by the specified database + engine \n MariaDB \n The name of the database to create when the + DB instance is created. If this parameter isn't specified, no database + is created in the DB instance. \n Constraints: \n * Must contain + 1 to 64 letters or numbers. \n * Must begin with a letter. Subsequent + characters can be letters, underscores, or digits (0-9). \n * Can't + be a word reserved by the specified database engine \n PostgreSQL + \n The name of the database to create when the DB instance is created. + If this parameter isn't specified, a database named postgres is + created in the DB instance. \n Constraints: \n * Must contain 1 + to 63 letters, numbers, or underscores. \n * Must begin with a letter. + Subsequent characters can be letters, underscores, or digits (0-9). + \n * Can't be a word reserved by the specified database engine \n + Oracle \n The Oracle System ID (SID) of the created DB instance. + If you specify null, the default value ORCL is used. You can't specify + the string NULL, or any other reserved word, for DBName. \n Default: + ORCL \n Constraints: \n * Can't be longer than 8 characters \n Amazon + RDS Custom for Oracle \n The Oracle System ID (SID) of the created + RDS Custom DB instance. If you don't specify a value, the default + value is ORCL. \n Default: ORCL \n Constraints: \n * It must contain + 1 to 8 alphanumeric characters. \n * It must contain a letter. \n + * It can't be a word reserved by the database engine. \n Amazon + RDS Custom for SQL Server \n Not applicable. Must be null. \n SQL + Server \n Not applicable. Must be null. \n Amazon Aurora MySQL \n + The name of the database to create when the primary DB instance + of the Aurora MySQL DB cluster is created. If this parameter isn't + specified for an Aurora MySQL DB cluster, no database is created + in the DB cluster. \n Constraints: \n * It must contain 1 to 64 + alphanumeric characters. \n * It can't be a word reserved by the + database engine. \n Amazon Aurora PostgreSQL \n The name of the + database to create when the primary DB instance of the Aurora PostgreSQL + DB cluster is created. If this parameter isn't specified for an + Aurora PostgreSQL DB cluster, a database named postgres is created + in the DB cluster. \n Constraints: \n * It must contain 1 to 63 + alphanumeric characters. \n * It must begin with a letter or an + underscore. Subsequent characters can be letters, underscores, or + digits (0 to 9). \n * It can't be a word reserved by the database + engine." type: string dbParameterGroupName: description: "The name of the DB parameter group to associate with this DB instance. If you do not specify a value, then the default DB parameter group for the specified DB engine and version is used. \n This setting doesn't apply to RDS Custom. \n Constraints: \n - \ * Must be 1 to 255 letters, numbers, or hyphens. \n * First - character must be a letter \n * Can't end with a hyphen or contain - two consecutive hyphens" + * Must be 1 to 255 letters, numbers, or hyphens. \n * First character + must be a letter \n * Can't end with a hyphen or contain two consecutive + hyphens" type: string dbParameterGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -245,10 +243,9 @@ spec: type: object dbSnapshotIdentifier: description: "The identifier for the DB snapshot to restore from. - \n Constraints: \n * Must match the identifier of an existing - DBSnapshot. \n * If you are restoring from a shared manual DB - snapshot, the DBSnapshotIdentifier must be the ARN of the shared - DB snapshot." + \n Constraints: \n * Must match the identifier of an existing DBSnapshot. + \n * If you are restoring from a shared manual DB snapshot, the + DBSnapshotIdentifier must be the ARN of the shared DB snapshot." type: string dbSubnetGroupName: description: "A DB subnet group to associate with this DB instance. @@ -258,8 +255,7 @@ spec: dbSubnetGroupRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -289,12 +285,14 @@ spec: DB instances can be created in an Active Directory Domain. \n For more information, see Kerberos Authentication (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) in the Amazon RDS User Guide. \n This setting doesn't apply to RDS - Custom." + Custom. \n Amazon Aurora \n Not applicable. The domain is managed + by the DB cluster." type: string domainIAMRoleName: description: "Specify the name of the IAM role to be used when making API calls to the Directory Service. \n This setting doesn't apply - to RDS Custom." + to RDS Custom. \n Amazon Aurora \n Not applicable. The domain is + managed by the DB cluster." type: string enableCloudwatchLogsExports: description: "The list of log types that need to be enabled for exporting @@ -328,41 +326,40 @@ spec: enableIAMDatabaseAuthentication: description: "A value that indicates whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts - to database accounts. By default, mapping isn't enabled. \n This - setting doesn't apply to RDS Custom or Amazon Aurora. In Aurora, - mapping Amazon Web Services IAM accounts to database accounts is - managed by the DB cluster. \n For more information, see IAM Database - Authentication for MySQL and PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) - in the Amazon RDS User Guide." + to database accounts. By default, mapping isn't enabled. \n For + more information, see IAM Database Authentication for MySQL and + PostgreSQL (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the Amazon RDS User Guide. \n This setting doesn't apply to RDS + Custom. \n Amazon Aurora \n Not applicable. Mapping Amazon Web Services + IAM accounts to database accounts is managed by the DB cluster." type: boolean engine: description: "The name of the database engine to be used for this instance. \n Not every database engine is available for every Amazon - Web Services Region. \n Valid Values: \n * aurora (for MySQL - 5.6-compatible Aurora) \n * aurora-mysql (for MySQL 5.7-compatible - and MySQL 8.0-compatible Aurora) \n * aurora-postgresql \n * - custom-oracle-ee (for RDS Custom for Oracle instances) \n * custom-sqlserver-ee - (for RDS Custom for SQL Server instances) \n * custom-sqlserver-se - (for RDS Custom for SQL Server instances) \n * custom-sqlserver-web - (for RDS Custom for SQL Server instances) \n * mariadb \n * - mysql \n * oracle-ee \n * oracle-ee-cdb \n * oracle-se2 - \n * oracle-se2-cdb \n * postgres \n * sqlserver-ee \n - \ * sqlserver-se \n * sqlserver-ex \n * sqlserver-web" + Web Services Region. \n Valid Values: \n * aurora (for MySQL 5.6-compatible + Aurora) \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible + Aurora) \n * aurora-postgresql \n * custom-oracle-ee (for RDS Custom + for Oracle instances) \n * custom-sqlserver-ee (for RDS Custom for + SQL Server instances) \n * custom-sqlserver-se (for RDS Custom for + SQL Server instances) \n * custom-sqlserver-web (for RDS Custom + for SQL Server instances) \n * mariadb \n * mysql \n * oracle-ee + \n * oracle-ee-cdb \n * oracle-se2 \n * oracle-se2-cdb \n * postgres + \n * sqlserver-ee \n * sqlserver-se \n * sqlserver-ex \n * sqlserver-web" type: string engineVersion: description: "The version number of the database engine to use. \n For a list of valid engine versions, use the DescribeDBEngineVersions - action. \n The following are the database engines and links to information - about the major and minor versions that are available with Amazon - RDS. Not every database engine is available for every Amazon Web - Services Region. \n Amazon Aurora \n Not applicable. The version - number of the database engine to be used by the DB instance is managed - by the DB cluster. \n Amazon RDS Custom for Oracle \n A custom engine - version (CEV) that you have previously created. This setting is - required for RDS Custom for Oracle. The CEV name has the following - format: 19.customized_string . An example identifier is 19.my_cev1. - For more information, see Creating an RDS Custom for Oracle DB instance - (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create) + operation. \n The following are the database engines and links to + information about the major and minor versions that are available + with Amazon RDS. Not every database engine is available for every + Amazon Web Services Region. \n Amazon Aurora \n Not applicable. + The version number of the database engine to be used by the DB instance + is managed by the DB cluster. \n Amazon RDS Custom for Oracle \n + A custom engine version (CEV) that you have previously created. + This setting is required for RDS Custom for Oracle. The CEV name + has the following format: 19.customized_string . An example identifier + is 19.my_cev1. For more information, see Creating an RDS Custom + for Oracle DB instance (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create) in the Amazon RDS User Guide. \n Amazon RDS Custom for SQL Server \n See RDS Custom for SQL Server general requirements (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html) in the Amazon RDS User Guide. \n MariaDB \n For information, see @@ -386,7 +383,8 @@ spec: Oracle, and PostgreSQL DB instances, must be a multiple between .5 and 50 of the storage amount for the DB instance. For SQL Server DB instances, must be a multiple between 1 and 50 of the storage - amount for the DB instance." + amount for the DB instance. \n Amazon Aurora \n Not applicable. + Storage is managed by the DB cluster." format: int64 type: integer kmsKeyID: @@ -410,8 +408,7 @@ spec: kmsKeyRef: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: - my-api' + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: description: AWSResourceReference provides all the values necessary @@ -424,7 +421,8 @@ spec: licenseModel: description: "License model information for this DB instance. \n Valid values: license-included | bring-your-own-license | general-public-license - \n This setting doesn't apply to RDS Custom." + \n This setting doesn't apply to RDS Custom. \n Amazon Aurora \n + Not applicable." type: string masterUserPassword: description: "The password for the master user. The password can include @@ -451,13 +449,13 @@ spec: required: - key type: object + x-kubernetes-map-type: atomic masterUsername: description: "The name for the master user. \n Amazon Aurora \n Not applicable. The name for the master user is managed by the DB cluster. - \n Amazon RDS \n Constraints: \n * Required. \n * Must be - 1 to 16 letters, numbers, or underscores. \n * First character - must be a letter. \n * Can't be a reserved word for the chosen - database engine." + \n Amazon RDS \n Constraints: \n * Required. \n * Must be 1 to 16 + letters, numbers, or underscores. \n * First character must be a + letter. \n * Can't be a reserved word for the chosen database engine." type: string maxAllocatedStorage: description: "The upper limit in gibibytes (GiB) to which Amazon RDS @@ -466,7 +464,8 @@ spec: to it, see Managing capacity automatically with Amazon RDS storage autoscaling (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) in the Amazon RDS User Guide. \n This setting doesn't apply to RDS - Custom." + Custom. \n Amazon Aurora \n Not applicable. Storage is managed by + the DB cluster." format: int64 type: integer monitoringInterval: @@ -491,7 +490,8 @@ spec: description: "A value that indicates whether the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment. \n This setting doesn't - apply to RDS Custom." + apply to RDS Custom. \n Amazon Aurora \n Not applicable. DB instance + Availability Zones (AZs) are managed by the DB cluster." type: boolean ncharCharacterSetName: description: "The name of the NCHAR character set for the Oracle DB @@ -499,11 +499,10 @@ spec: type: string networkType: description: "The network type of the DB instance. \n Valid values: - \n * IPV4 \n * DUAL \n The network type is determined by the - DBSubnetGroup specified for the DB instance. A DBSubnetGroup can - support only the IPv4 protocol or the IPv4 and the IPv6 protocols - (DUAL). \n For more information, see Working with a DB instance - in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + \n * IPV4 \n * DUAL \n The network type is determined by the DBSubnetGroup + specified for the DB instance. A DBSubnetGroup can support only + the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). \n + For more information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the Amazon RDS User Guide." type: string optionGroupName: @@ -512,7 +511,8 @@ spec: such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance. \n - This setting doesn't apply to RDS Custom." + This setting doesn't apply to RDS Custom. \n Amazon Aurora \n Not + applicable." type: string performanceInsightsEnabled: description: "A value that indicates whether to enable Performance @@ -532,9 +532,14 @@ spec: Region. \n This setting doesn't apply to RDS Custom." type: string performanceInsightsRetentionPeriod: - description: "The amount of time, in days, to retain Performance Insights - data. Valid values are 7 or 731 (2 years). \n This setting doesn't - apply to RDS Custom." + description: "The number of days to retain Performance Insights data. + The default is 7 days. The following values are valid: \n * 7 \n + * month * 31, where month is a number of months from 1-23 \n * 731 + \n For example, the following values are valid: \n * 93 (3 months + * 31) \n * 341 (11 months * 31) \n * 589 (19 months * 31) \n * 731 + \n If you specify a retention period such as 94, which isn't a valid + value, RDS issues an error. \n This setting doesn't apply to RDS + Custom." format: int64 type: integer port: @@ -549,41 +554,44 @@ spec: format: int64 type: integer preSignedURL: - description: "The URL that contains a Signature Version 4 signed request - for the CreateDBInstanceReadReplica API action in the source Amazon - Web Services Region that contains the source DB instance. \n You - must specify this parameter when you create an encrypted read replica - from another Amazon Web Services Region by using the Amazon RDS - API. Don't specify PreSignedUrl when you are creating an encrypted - read replica in the same Amazon Web Services Region. \n The presigned - URL must be a valid request for the CreateDBInstanceReadReplica - API action that can be executed in the source Amazon Web Services - Region that contains the encrypted source DB instance. The presigned - URL request must contain the following parameter values: \n * - DestinationRegion - The Amazon Web Services Region that the encrypted - \ read replica is created in. This Amazon Web Services Region - is the same one where the CreateDBInstanceReadReplica action - is called that contains this presigned URL. For example, if you - create an encrypted DB instance in the us-west-1 Amazon Web Services - Region, from a source DB instance in the us-east-2 Amazon Web - Services Region, then you call the CreateDBInstanceReadReplica action - in the us-east-1 Amazon Web Services Region and provide a presigned - \ URL that contains a call to the CreateDBInstanceReadReplica - action in the us-west-2 Amazon Web Services Region. For this - example, the DestinationRegion in the presigned URL must be set - to the us-east-1 Amazon Web Services Region. \n * KmsKeyId - - The Amazon Web Services KMS key identifier for the key to use - to encrypt the read replica in the destination Amazon Web Services - \ Region. This is the same identifier for both the CreateDBInstanceReadReplica - \ action that is called in the destination Amazon Web Services - Region, and the action contained in the presigned URL. \n * - SourceDBInstanceIdentifier - The DB instance identifier for the - encrypted DB instance to be replicated. This identifier must - be in the Amazon Resource Name (ARN) format for the source Amazon - Web Services Region. For example, if you are creating an encrypted - read replica from a DB instance in the us-west-2 Amazon Web Services - Region, then your SourceDBInstanceIdentifier looks like the following - example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115. + description: "When you are creating a read replica from one Amazon + Web Services GovCloud (US) Region to another or from one China Amazon + Web Services Region to another, the URL that contains a Signature + Version 4 signed request for the CreateDBInstanceReadReplica API + operation in the source Amazon Web Services Region that contains + the source DB instance. \n This setting applies only to Amazon Web + Services GovCloud (US) Regions and China Amazon Web Services Regions. + It's ignored in other Amazon Web Services Regions. \n You must specify + this parameter when you create an encrypted read replica from another + Amazon Web Services Region by using the Amazon RDS API. Don't specify + PreSignedUrl when you are creating an encrypted read replica in + the same Amazon Web Services Region. \n The presigned URL must be + a valid request for the CreateDBInstanceReadReplica API operation + that can run in the source Amazon Web Services Region that contains + the encrypted source DB instance. The presigned URL request must + contain the following parameter values: \n * DestinationRegion - + The Amazon Web Services Region that the encrypted read replica is + created in. This Amazon Web Services Region is the same one where + the CreateDBInstanceReadReplica operation is called that contains + this presigned URL. For example, if you create an encrypted DB instance + in the us-west-1 Amazon Web Services Region, from a source DB instance + in the us-east-2 Amazon Web Services Region, then you call the CreateDBInstanceReadReplica + operation in the us-east-1 Amazon Web Services Region and provide + a presigned URL that contains a call to the CreateDBInstanceReadReplica + operation in the us-west-2 Amazon Web Services Region. For this + example, the DestinationRegion in the presigned URL must be set + to the us-east-1 Amazon Web Services Region. \n * KmsKeyId - The + KMS key identifier for the key to use to encrypt the read replica + in the destination Amazon Web Services Region. This is the same + identifier for both the CreateDBInstanceReadReplica operation that + is called in the destination Amazon Web Services Region, and the + operation contained in the presigned URL. \n * SourceDBInstanceIdentifier + - The DB instance identifier for the encrypted DB instance to be + replicated. This identifier must be in the Amazon Resource Name + (ARN) format for the source Amazon Web Services Region. For example, + if you are creating an encrypted read replica from a DB instance + in the us-west-2 Amazon Web Services Region, then your SourceDBInstanceIdentifier + looks like the following example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115. \n To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) @@ -592,10 +600,10 @@ spec: you can specify SourceRegion (or --source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates a presigned URL that is a valid request for the operation that can - be executed in the source Amazon Web Services Region. \n SourceRegion - isn't supported for SQL Server, because SQL Server on Amazon RDS - doesn't support cross-Region read replicas. \n This setting doesn't - apply to RDS Custom." + run in the source Amazon Web Services Region. \n SourceRegion isn't + supported for SQL Server, because Amazon RDS for SQL Server doesn't + support cross-Region read replicas. \n This setting doesn't apply + to RDS Custom." type: string preferredBackupWindow: description: "The daily time range during which automated backups @@ -605,10 +613,10 @@ spec: For more information, see Backup window (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) in the Amazon RDS User Guide. \n Amazon Aurora \n Not applicable. The daily time range for creating automated backups is managed by - the DB cluster. \n Constraints: \n * Must be in the format hh24:mi-hh24:mi. - \n * Must be in Universal Coordinated Time (UTC). \n * Must - not conflict with the preferred maintenance window. \n * Must - be at least 30 minutes." + the DB cluster. \n Constraints: \n * Must be in the format hh24:mi-hh24:mi. + \n * Must be in Universal Coordinated Time (UTC). \n * Must not + conflict with the preferred maintenance window. \n * Must be at + least 30 minutes." type: string preferredMaintenanceWindow: description: "The time range each week during which system maintenance @@ -623,7 +631,7 @@ spec: processorFeatures: description: "The number of CPU cores and the number of threads per core for the DB instance class of the DB instance. \n This setting - doesn't apply to RDS Custom." + doesn't apply to RDS Custom. \n Amazon Aurora \n Not applicable." items: description: "Contains the processor features of a DB instance class. \n To specify the number of CPU cores, use the coreCount feature @@ -631,21 +639,20 @@ spec: per core, use the threadsPerCore feature name for the Name parameter. \n You can set the processor features of the DB instance class for a DB instance when you call one of the following actions: - \n * CreateDBInstance \n * ModifyDBInstance \n * RestoreDBInstanceFromDBSnapshot - \n * RestoreDBInstanceFromS3 \n * RestoreDBInstanceToPointInTime + \n * CreateDBInstance \n * ModifyDBInstance \n * RestoreDBInstanceFromDBSnapshot + \n * RestoreDBInstanceFromS3 \n * RestoreDBInstanceToPointInTime \n You can view the valid processor values for a particular instance class by calling the DescribeOrderableDBInstanceOptions action and specifying the instance class for the DBInstanceClass parameter. \n In addition, you can use the following actions for DB instance - class processor information: \n * DescribeDBInstances \n * - DescribeDBSnapshots \n * DescribeValidDBInstanceModifications - \n If you call DescribeDBInstances, ProcessorFeature returns non-null - values only if the following conditions are met: \n * You are - accessing an Oracle DB instance. \n * Your Oracle DB instance - class supports configuring the number of CPU cores and threads - per core. \n * The current number CPU cores and threads is - set to a non-default value. \n For more information, see Configuring - the Processor of the DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) + class processor information: \n * DescribeDBInstances \n * DescribeDBSnapshots + \n * DescribeValidDBInstanceModifications \n If you call DescribeDBInstances, + ProcessorFeature returns non-null values only if the following + conditions are met: \n * You are accessing an Oracle DB instance. + \n * Your Oracle DB instance class supports configuring the number + of CPU cores and threads per core. \n * The current number CPU + cores and threads is set to a non-default value. \n For more information, + see Configuring the Processor of the DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) in the Amazon RDS User Guide." properties: name: @@ -676,16 +683,16 @@ spec: with a DNS name that resolves to a private IP address. \n Default: The default behavior varies depending on whether DBSubnetGroupName is specified. \n If DBSubnetGroupName isn't specified, and PubliclyAccessible - isn't specified, the following applies: \n * If the default VPC - in the target Region doesn’t have an internet gateway attached - to it, the DB instance is private. \n * If the default VPC in - the target Region has an internet gateway attached to it, the - DB instance is public. \n If DBSubnetGroupName is specified, and - PubliclyAccessible isn't specified, the following applies: \n * - If the subnets are part of a VPC that doesn’t have an internet gateway - \ attached to it, the DB instance is private. \n * If the subnets - are part of a VPC that has an internet gateway attached to it, - the DB instance is public." + isn't specified, the following applies: \n * If the default VPC + in the target Region doesn’t have an internet gateway attached to + it, the DB instance is private. \n * If the default VPC in the target + Region has an internet gateway attached to it, the DB instance is + public. \n If DBSubnetGroupName is specified, and PubliclyAccessible + isn't specified, the following applies: \n * If the subnets are + part of a VPC that doesn’t have an internet gateway attached to + it, the DB instance is private. \n * If the subnets are part of + a VPC that has an internet gateway attached to it, the DB instance + is public." type: boolean replicaMode: description: "The open mode of the replica database: mounted or read-only. @@ -705,28 +712,27 @@ spec: sourceDBInstanceIdentifier: description: "The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to five - read replicas. \n Constraints: \n * Must be the identifier of - an existing MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server - DB instance. \n * Can specify a DB instance that is a MySQL read - replica only if the source is running MySQL 5.6 or later. \n - \ * For the limitations of Oracle read replicas, see Read Replica - Limitations with Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) - \ in the Amazon RDS User Guide. \n * For the limitations of - SQL Server read replicas, see Read Replica Limitations with Microsoft - SQL Server (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.Limitations.html) - \ in the Amazon RDS User Guide. \n * Can specify a PostgreSQL - DB instance only if the source is running PostgreSQL 9.3.5 or - later (9.4.7 and higher for cross-Region replication). \n * The - specified DB instance must have automatic backups enabled, that - \ is, its backup retention period must be greater than 0. \n * - If the source DB instance is in the same Amazon Web Services Region - \ as the read replica, specify a valid DB instance identifier. - \n * If the source DB instance is in a different Amazon Web Services - Region from the read replica, specify a valid DB instance ARN. - For more information, see Constructing an ARN for Amazon RDS - (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) - \ in the Amazon RDS User Guide. This doesn't apply to SQL Server - or RDS Custom, which don't support cross-Region replicas." + read replicas. \n Constraints: \n * Must be the identifier of an + existing MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server DB instance. + \n * Can specify a DB instance that is a MySQL read replica only + if the source is running MySQL 5.6 or later. \n * For the limitations + of Oracle read replicas, see Read Replica Limitations with Oracle + (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) + in the Amazon RDS User Guide. \n * For the limitations of SQL Server + read replicas, see Read Replica Limitations with Microsoft SQL Server + (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.Limitations.html) + in the Amazon RDS User Guide. \n * Can specify a PostgreSQL DB instance + only if the source is running PostgreSQL 9.3.5 or later (9.4.7 and + higher for cross-Region replication). \n * The specified DB instance + must have automatic backups enabled, that is, its backup retention + period must be greater than 0. \n * If the source DB instance is + in the same Amazon Web Services Region as the read replica, specify + a valid DB instance identifier. \n * If the source DB instance is + in a different Amazon Web Services Region from the read replica, + specify a valid DB instance ARN. For more information, see Constructing + an ARN for Amazon RDS (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the Amazon RDS User Guide. This doesn't apply to SQL Server or + RDS Custom, which don't support cross-Region replicas." type: string sourceRegion: description: SourceRegion is the source region where the resource @@ -744,7 +750,8 @@ spec: description: "Specifies the storage type to be associated with the DB instance. \n Valid values: standard | gp2 | io1 \n If you specify io1, you must also include a value for the Iops parameter. \n Default: - io1 if the Iops parameter is specified, otherwise gp2" + io1 if the Iops parameter is specified, otherwise gp2 \n Amazon + Aurora \n Not applicable. Storage is managed by the DB cluster." type: string tags: description: Tags to assign to the DB instance. @@ -761,7 +768,7 @@ spec: tdeCredentialARN: description: "The ARN from the key store with which to associate the instance for TDE encryption. \n This setting doesn't apply to RDS - Custom." + Custom. \n Amazon Aurora \n Not applicable." type: string tdeCredentialPassword: description: "The password for the given ARN from the key store in @@ -790,7 +797,7 @@ spec: items: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: @@ -857,6 +864,9 @@ spec: such as a change or access generate an activity stream event. RDS for Oracle always handles these events asynchronously. type: string + activityStreamPolicyStatus: + description: The status of the policy state of the activity stream. + type: string activityStreamStatus: description: The status of the database activity stream. type: string @@ -968,9 +978,8 @@ spec: items: description: "The status of the DB parameter group. \n This data type is used as a response element in the following actions: \n - \ * CreateDBInstance \n * CreateDBInstanceReadReplica \n - \ * DeleteDBInstance \n * ModifyDBInstance \n * RebootDBInstance - \n * RestoreDBInstanceFromDBSnapshot" + * CreateDBInstance \n * CreateDBInstanceReadReplica \n * DeleteDBInstance + \n * ModifyDBInstance \n * RebootDBInstance \n * RestoreDBInstanceFromDBSnapshot" properties: dbParameterGroupName: type: string @@ -1079,10 +1088,10 @@ spec: description: "True if mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false. \n IAM database authentication can be enabled - for the following database engines \n * For MySQL 5.6, minor - version 5.6.34 or higher \n * For MySQL 5.7, minor version 5.7.16 - or higher \n * Aurora 5.6 or higher. To enable IAM database authentication - for Aurora, see DBCluster Type." + for the following database engines \n * For MySQL 5.6, minor version + 5.6.34 or higher \n * For MySQL 5.7, minor version 5.7.16 or higher + \n * Aurora 5.6 or higher. To enable IAM database authentication + for Aurora, see DBCluster Type." type: boolean instanceCreateTime: description: Provides the date and time the DB instance was created. @@ -1177,23 +1186,22 @@ spec: of threads per core, use the threadsPerCore feature name for the Name parameter. \n You can set the processor features of the DB instance class for a DB instance when you call one - of the following actions: \n * CreateDBInstance \n * - ModifyDBInstance \n * RestoreDBInstanceFromDBSnapshot \n - \ * RestoreDBInstanceFromS3 \n * RestoreDBInstanceToPointInTime - \n You can view the valid processor values for a particular - instance class by calling the DescribeOrderableDBInstanceOptions - action and specifying the instance class for the DBInstanceClass - parameter. \n In addition, you can use the following actions - for DB instance class processor information: \n * DescribeDBInstances - \n * DescribeDBSnapshots \n * DescribeValidDBInstanceModifications + of the following actions: \n * CreateDBInstance \n * ModifyDBInstance + \n * RestoreDBInstanceFromDBSnapshot \n * RestoreDBInstanceFromS3 + \n * RestoreDBInstanceToPointInTime \n You can view the valid + processor values for a particular instance class by calling + the DescribeOrderableDBInstanceOptions action and specifying + the instance class for the DBInstanceClass parameter. \n In + addition, you can use the following actions for DB instance + class processor information: \n * DescribeDBInstances \n * + DescribeDBSnapshots \n * DescribeValidDBInstanceModifications \n If you call DescribeDBInstances, ProcessorFeature returns non-null values only if the following conditions are met: - \n * You are accessing an Oracle DB instance. \n * Your - Oracle DB instance class supports configuring the number of - CPU cores and threads per core. \n * The current number - CPU cores and threads is set to a non-default value. \n For - more information, see Configuring the Processor of the DB - Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) + \n * You are accessing an Oracle DB instance. \n * Your Oracle + DB instance class supports configuring the number of CPU cores + and threads per core. \n * The current number CPU cores and + threads is set to a non-default value. \n For more information, + see Configuring the Processor of the DB Instance Class (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor) in the Amazon RDS User Guide." properties: name: @@ -1274,9 +1282,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/rds.services.k8s.aws_dbparametergroups.yaml b/helm/crds/rds.services.k8s.aws_dbparametergroups.yaml index 752bebc..cf813ac 100644 --- a/helm/crds/rds.services.k8s.aws_dbparametergroups.yaml +++ b/helm/crds/rds.services.k8s.aws_dbparametergroups.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbparametergroups.rds.services.k8s.aws spec: @@ -54,18 +53,17 @@ spec: for the MySQL DB engine, use the following command: \n aws rds describe-db-engine-versions --query \"DBEngineVersions[].DBParameterGroupFamily\" --engine mysql \n The output contains duplicates. \n The following are the valid - DB engine values: \n * aurora (for MySQL 5.6-compatible Aurora) - \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible - Aurora) \n * aurora-postgresql \n * mariadb \n * mysql - \n * oracle-ee \n * oracle-ee-cdb \n * oracle-se2 \n * - oracle-se2-cdb \n * postgres \n * sqlserver-ee \n * sqlserver-se - \n * sqlserver-ex \n * sqlserver-web" + DB engine values: \n * aurora (for MySQL 5.6-compatible Aurora) + \n * aurora-mysql (for MySQL 5.7-compatible and MySQL 8.0-compatible + Aurora) \n * aurora-postgresql \n * mariadb \n * mysql \n * oracle-ee + \n * oracle-ee-cdb \n * oracle-se2 \n * oracle-se2-cdb \n * postgres + \n * sqlserver-ee \n * sqlserver-se \n * sqlserver-ex \n * sqlserver-web" type: string name: description: "The name of the DB parameter group. \n Constraints: - \n * Must be 1 to 255 letters, numbers, or hyphens. \n * First - character must be a letter \n * Can't end with a hyphen or contain - two consecutive hyphens \n This value is stored as a lowercase string." + \n * Must be 1 to 255 letters, numbers, or hyphens. \n * First character + must be a letter \n * Can't end with a hyphen or contain two consecutive + hyphens \n This value is stored as a lowercase string." type: string parameterOverrides: additionalProperties: @@ -192,9 +190,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/rds.services.k8s.aws_dbproxies.yaml b/helm/crds/rds.services.k8s.aws_dbproxies.yaml index b6285fb..1210845 100644 --- a/helm/crds/rds.services.k8s.aws_dbproxies.yaml +++ b/helm/crds/rds.services.k8s.aws_dbproxies.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbproxies.rds.services.k8s.aws spec: @@ -70,8 +69,9 @@ spec: description: The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. - The engine family applies to MySQL and PostgreSQL for both RDS and - Aurora. + For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, + specify MYSQL. For Aurora PostgreSQL and RDS for PostgreSQL databases, + specify POSTGRESQL. type: string idleClientTimeout: description: The number of seconds that a connection to the proxy @@ -221,9 +221,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/rds.services.k8s.aws_dbsubnetgroups.yaml b/helm/crds/rds.services.k8s.aws_dbsubnetgroups.yaml index c586724..2ec1a79 100644 --- a/helm/crds/rds.services.k8s.aws_dbsubnetgroups.yaml +++ b/helm/crds/rds.services.k8s.aws_dbsubnetgroups.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: dbsubnetgroups.rds.services.k8s.aws spec: @@ -43,9 +42,9 @@ spec: type: string name: description: "The name for the DB subnet group. This value is stored - as a lowercase string. \n Constraints: \n * Must contain no more - than 255 letters, numbers, periods, underscores, spaces, or hyphens. - \n * Must not be default. \n * First character must be a letter. + as a lowercase string. \n Constraints: \n * Must contain no more + than 255 letters, numbers, periods, underscores, spaces, or hyphens. + \n * Must not be default. \n * First character must be a letter. \n Example: mydbsubnetgroup" type: string subnetIDs: @@ -57,7 +56,7 @@ spec: items: description: 'AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference type to provide more user friendly syntax - for references using ''from'' field Ex: APIIDRef: from: name: + for references using ''from'' field Ex: APIIDRef: from: name: my-api' properties: from: @@ -183,9 +182,9 @@ spec: type: array supportedNetworkTypes: description: "The network type of the DB subnet group. \n Valid values: - \n * IPV4 \n * DUAL \n A DBSubnetGroup can support only the - IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). \n For - more information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + \n * IPV4 \n * DUAL \n A DBSubnetGroup can support only the IPv4 + protocol or the IPv4 and the IPv6 protocols (DUAL). \n For more + information, see Working with a DB instance in a VPC (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the Amazon RDS User Guide." items: type: string @@ -199,9 +198,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/rds.services.k8s.aws_globalclusters.yaml b/helm/crds/rds.services.k8s.aws_globalclusters.yaml index 4fe81d4..299b864 100644 --- a/helm/crds/rds.services.k8s.aws_globalclusters.yaml +++ b/helm/crds/rds.services.k8s.aws_globalclusters.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: globalclusters.rds.services.k8s.aws spec: @@ -38,9 +37,9 @@ spec: \n A data type representing an Aurora global database." properties: databaseName: - description: The name for your database of up to 64 alpha-numeric - characters. If you do not provide a name, Amazon Aurora will not - create a database in the global database cluster you are creating. + description: The name for your database of up to 64 alphanumeric characters. + If you do not provide a name, Amazon Aurora will not create a database + in the global database cluster you are creating. type: string deletionProtection: description: The deletion protection setting for the new global database. @@ -177,9 +176,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/services.k8s.aws_adoptedresources.yaml b/helm/crds/services.k8s.aws_adoptedresources.yaml index f764dbb..7dca541 100644 --- a/helm/crds/services.k8s.aws_adoptedresources.yaml +++ b/helm/crds/services.k8s.aws_adoptedresources.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: adoptedresources.services.k8s.aws spec: @@ -170,6 +169,7 @@ spec: - name - uid type: object + x-kubernetes-map-type: atomic type: array type: object required: @@ -224,9 +224,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/crds/services.k8s.aws_fieldexports.yaml b/helm/crds/services.k8s.aws_fieldexports.yaml index 361e01f..4a7ab61 100644 --- a/helm/crds/services.k8s.aws_fieldexports.yaml +++ b/helm/crds/services.k8s.aws_fieldexports.yaml @@ -1,10 +1,9 @@ - --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: fieldexports.services.k8s.aws spec: @@ -66,6 +65,10 @@ spec: description: FieldExportTarget provides the values necessary to identify the output path for a field export. properties: + key: + description: Key overrides the default value (`.`) + for the FieldExport target + type: string kind: description: FieldExportOutputType represents all types that can be produced by a field export operation @@ -129,9 +132,3 @@ spec: storage: true subresources: status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/helm/templates/NOTES.txt b/helm/templates/NOTES.txt index f806116..849e935 100644 --- a/helm/templates/NOTES.txt +++ b/helm/templates/NOTES.txt @@ -1,5 +1,5 @@ {{ .Chart.Name }} has been installed. -This chart deploys "public.ecr.aws/aws-controllers-k8s/rds-controller:v0.1.0". +This chart deploys "public.ecr.aws/aws-controllers-k8s/rds-controller:v0.1.1". Check its status by running: kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}" diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 9fd82f7..8cc8f68 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -106,7 +106,7 @@ spec: affinity: {{ toYaml .Values.deployment.affinity | nindent 8 }} {{ end -}} {{ if .Values.deployment.priorityClassName -}} - priorityClassName: {{ .Values.deployment.priorityClassName -}} + priorityClassName: {{ .Values.deployment.priorityClassName }} {{ end -}} hostIPC: false hostNetwork: false diff --git a/helm/values.yaml b/helm/values.yaml index 42ce8de..1a6fcca 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,7 +4,7 @@ image: repository: public.ecr.aws/aws-controllers-k8s/rds-controller - tag: v0.1.0 + tag: v0.1.1 pullPolicy: IfNotPresent pullSecrets: [] diff --git a/pkg/resource/db_cluster/delta.go b/pkg/resource/db_cluster/delta.go index 126d9c3..ca2ca82 100644 --- a/pkg/resource/db_cluster/delta.go +++ b/pkg/resource/db_cluster/delta.go @@ -260,6 +260,13 @@ func newResourceDelta( delta.Add("Spec.MonitoringRoleARN", a.ko.Spec.MonitoringRoleARN, b.ko.Spec.MonitoringRoleARN) } } + if ackcompare.HasNilDifference(a.ko.Spec.NetworkType, b.ko.Spec.NetworkType) { + delta.Add("Spec.NetworkType", a.ko.Spec.NetworkType, b.ko.Spec.NetworkType) + } else if a.ko.Spec.NetworkType != nil && b.ko.Spec.NetworkType != nil { + if *a.ko.Spec.NetworkType != *b.ko.Spec.NetworkType { + delta.Add("Spec.NetworkType", a.ko.Spec.NetworkType, b.ko.Spec.NetworkType) + } + } if ackcompare.HasNilDifference(a.ko.Spec.OptionGroupName, b.ko.Spec.OptionGroupName) { delta.Add("Spec.OptionGroupName", a.ko.Spec.OptionGroupName, b.ko.Spec.OptionGroupName) } else if a.ko.Spec.OptionGroupName != nil && b.ko.Spec.OptionGroupName != nil { diff --git a/pkg/resource/db_cluster/sdk.go b/pkg/resource/db_cluster/sdk.go index 97acae1..f6978e9 100644 --- a/pkg/resource/db_cluster/sdk.go +++ b/pkg/resource/db_cluster/sdk.go @@ -412,43 +412,48 @@ func (rm *resourceManager) sdkFind( } else { ko.Status.MultiAZ = nil } + if elem.NetworkType != nil { + ko.Spec.NetworkType = elem.NetworkType + } else { + ko.Spec.NetworkType = nil + } if elem.PendingModifiedValues != nil { - f49 := &svcapitypes.ClusterPendingModifiedValues{} + f50 := &svcapitypes.ClusterPendingModifiedValues{} if elem.PendingModifiedValues.DBClusterIdentifier != nil { - f49.DBClusterIdentifier = elem.PendingModifiedValues.DBClusterIdentifier + f50.DBClusterIdentifier = elem.PendingModifiedValues.DBClusterIdentifier } if elem.PendingModifiedValues.EngineVersion != nil { - f49.EngineVersion = elem.PendingModifiedValues.EngineVersion + f50.EngineVersion = elem.PendingModifiedValues.EngineVersion } if elem.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f49.IAMDatabaseAuthenticationEnabled = elem.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f50.IAMDatabaseAuthenticationEnabled = elem.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if elem.PendingModifiedValues.MasterUserPassword != nil { - f49.MasterUserPassword = elem.PendingModifiedValues.MasterUserPassword + f50.MasterUserPassword = elem.PendingModifiedValues.MasterUserPassword } if elem.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f49f4 := &svcapitypes.PendingCloudwatchLogsExports{} + f50f4 := &svcapitypes.PendingCloudwatchLogsExports{} if elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f49f4f0 := []*string{} - for _, f49f4f0iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f49f4f0elem string - f49f4f0elem = *f49f4f0iter - f49f4f0 = append(f49f4f0, &f49f4f0elem) + f50f4f0 := []*string{} + for _, f50f4f0iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f50f4f0elem string + f50f4f0elem = *f50f4f0iter + f50f4f0 = append(f50f4f0, &f50f4f0elem) } - f49f4.LogTypesToDisable = f49f4f0 + f50f4.LogTypesToDisable = f50f4f0 } if elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f49f4f1 := []*string{} - for _, f49f4f1iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f49f4f1elem string - f49f4f1elem = *f49f4f1iter - f49f4f1 = append(f49f4f1, &f49f4f1elem) + f50f4f1 := []*string{} + for _, f50f4f1iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f50f4f1elem string + f50f4f1elem = *f50f4f1iter + f50f4f1 = append(f50f4f1, &f50f4f1elem) } - f49f4.LogTypesToEnable = f49f4f1 + f50f4.LogTypesToEnable = f50f4f1 } - f49.PendingCloudwatchLogsExports = f49f4 + f50.PendingCloudwatchLogsExports = f50f4 } - ko.Status.PendingModifiedValues = f49 + ko.Status.PendingModifiedValues = f50 } else { ko.Status.PendingModifiedValues = nil } @@ -493,13 +498,13 @@ func (rm *resourceManager) sdkFind( ko.Spec.PubliclyAccessible = nil } if elem.ReadReplicaIdentifiers != nil { - f58 := []*string{} - for _, f58iter := range elem.ReadReplicaIdentifiers { - var f58elem string - f58elem = *f58iter - f58 = append(f58, &f58elem) + f59 := []*string{} + for _, f59iter := range elem.ReadReplicaIdentifiers { + var f59elem string + f59elem = *f59iter + f59 = append(f59, &f59elem) } - ko.Status.ReadReplicaIdentifiers = f58 + ko.Status.ReadReplicaIdentifiers = f59 } else { ko.Status.ReadReplicaIdentifiers = nil } @@ -514,14 +519,14 @@ func (rm *resourceManager) sdkFind( ko.Spec.ReplicationSourceIdentifier = nil } if elem.ServerlessV2ScalingConfiguration != nil { - f62 := &svcapitypes.ServerlessV2ScalingConfiguration{} + f63 := &svcapitypes.ServerlessV2ScalingConfiguration{} if elem.ServerlessV2ScalingConfiguration.MaxCapacity != nil { - f62.MaxCapacity = elem.ServerlessV2ScalingConfiguration.MaxCapacity + f63.MaxCapacity = elem.ServerlessV2ScalingConfiguration.MaxCapacity } if elem.ServerlessV2ScalingConfiguration.MinCapacity != nil { - f62.MinCapacity = elem.ServerlessV2ScalingConfiguration.MinCapacity + f63.MinCapacity = elem.ServerlessV2ScalingConfiguration.MinCapacity } - ko.Spec.ServerlessV2ScalingConfiguration = f62 + ko.Spec.ServerlessV2ScalingConfiguration = f63 } else { ko.Spec.ServerlessV2ScalingConfiguration = nil } @@ -541,34 +546,34 @@ func (rm *resourceManager) sdkFind( ko.Spec.StorageType = nil } if elem.TagList != nil { - f66 := []*svcapitypes.Tag{} - for _, f66iter := range elem.TagList { - f66elem := &svcapitypes.Tag{} - if f66iter.Key != nil { - f66elem.Key = f66iter.Key + f67 := []*svcapitypes.Tag{} + for _, f67iter := range elem.TagList { + f67elem := &svcapitypes.Tag{} + if f67iter.Key != nil { + f67elem.Key = f67iter.Key } - if f66iter.Value != nil { - f66elem.Value = f66iter.Value + if f67iter.Value != nil { + f67elem.Value = f67iter.Value } - f66 = append(f66, f66elem) + f67 = append(f67, f67elem) } - ko.Status.TagList = f66 + ko.Status.TagList = f67 } else { ko.Status.TagList = nil } if elem.VpcSecurityGroups != nil { - f67 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f67iter := range elem.VpcSecurityGroups { - f67elem := &svcapitypes.VPCSecurityGroupMembership{} - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + f68 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f68iter := range elem.VpcSecurityGroups { + f68elem := &svcapitypes.VPCSecurityGroupMembership{} + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.VpcSecurityGroupId != nil { - f67elem.VPCSecurityGroupID = f67iter.VpcSecurityGroupId + if f68iter.VpcSecurityGroupId != nil { + f68elem.VPCSecurityGroupID = f68iter.VpcSecurityGroupId } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - ko.Status.VPCSecurityGroups = f67 + ko.Status.VPCSecurityGroups = f68 } else { ko.Status.VPCSecurityGroups = nil } @@ -980,43 +985,48 @@ func (rm *resourceManager) sdkCreate( } else { ko.Status.MultiAZ = nil } + if resp.DBCluster.NetworkType != nil { + ko.Spec.NetworkType = resp.DBCluster.NetworkType + } else { + ko.Spec.NetworkType = nil + } if resp.DBCluster.PendingModifiedValues != nil { - f49 := &svcapitypes.ClusterPendingModifiedValues{} + f50 := &svcapitypes.ClusterPendingModifiedValues{} if resp.DBCluster.PendingModifiedValues.DBClusterIdentifier != nil { - f49.DBClusterIdentifier = resp.DBCluster.PendingModifiedValues.DBClusterIdentifier + f50.DBClusterIdentifier = resp.DBCluster.PendingModifiedValues.DBClusterIdentifier } if resp.DBCluster.PendingModifiedValues.EngineVersion != nil { - f49.EngineVersion = resp.DBCluster.PendingModifiedValues.EngineVersion + f50.EngineVersion = resp.DBCluster.PendingModifiedValues.EngineVersion } if resp.DBCluster.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f49.IAMDatabaseAuthenticationEnabled = resp.DBCluster.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f50.IAMDatabaseAuthenticationEnabled = resp.DBCluster.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if resp.DBCluster.PendingModifiedValues.MasterUserPassword != nil { - f49.MasterUserPassword = resp.DBCluster.PendingModifiedValues.MasterUserPassword + f50.MasterUserPassword = resp.DBCluster.PendingModifiedValues.MasterUserPassword } if resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f49f4 := &svcapitypes.PendingCloudwatchLogsExports{} + f50f4 := &svcapitypes.PendingCloudwatchLogsExports{} if resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f49f4f0 := []*string{} - for _, f49f4f0iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f49f4f0elem string - f49f4f0elem = *f49f4f0iter - f49f4f0 = append(f49f4f0, &f49f4f0elem) + f50f4f0 := []*string{} + for _, f50f4f0iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f50f4f0elem string + f50f4f0elem = *f50f4f0iter + f50f4f0 = append(f50f4f0, &f50f4f0elem) } - f49f4.LogTypesToDisable = f49f4f0 + f50f4.LogTypesToDisable = f50f4f0 } if resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f49f4f1 := []*string{} - for _, f49f4f1iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f49f4f1elem string - f49f4f1elem = *f49f4f1iter - f49f4f1 = append(f49f4f1, &f49f4f1elem) + f50f4f1 := []*string{} + for _, f50f4f1iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f50f4f1elem string + f50f4f1elem = *f50f4f1iter + f50f4f1 = append(f50f4f1, &f50f4f1elem) } - f49f4.LogTypesToEnable = f49f4f1 + f50f4.LogTypesToEnable = f50f4f1 } - f49.PendingCloudwatchLogsExports = f49f4 + f50.PendingCloudwatchLogsExports = f50f4 } - ko.Status.PendingModifiedValues = f49 + ko.Status.PendingModifiedValues = f50 } else { ko.Status.PendingModifiedValues = nil } @@ -1061,13 +1071,13 @@ func (rm *resourceManager) sdkCreate( ko.Spec.PubliclyAccessible = nil } if resp.DBCluster.ReadReplicaIdentifiers != nil { - f58 := []*string{} - for _, f58iter := range resp.DBCluster.ReadReplicaIdentifiers { - var f58elem string - f58elem = *f58iter - f58 = append(f58, &f58elem) + f59 := []*string{} + for _, f59iter := range resp.DBCluster.ReadReplicaIdentifiers { + var f59elem string + f59elem = *f59iter + f59 = append(f59, &f59elem) } - ko.Status.ReadReplicaIdentifiers = f58 + ko.Status.ReadReplicaIdentifiers = f59 } else { ko.Status.ReadReplicaIdentifiers = nil } @@ -1082,38 +1092,38 @@ func (rm *resourceManager) sdkCreate( ko.Spec.ReplicationSourceIdentifier = nil } if resp.DBCluster.ScalingConfigurationInfo != nil { - f61 := &svcapitypes.ScalingConfiguration{} + f62 := &svcapitypes.ScalingConfiguration{} if resp.DBCluster.ScalingConfigurationInfo.AutoPause != nil { - f61.AutoPause = resp.DBCluster.ScalingConfigurationInfo.AutoPause + f62.AutoPause = resp.DBCluster.ScalingConfigurationInfo.AutoPause } if resp.DBCluster.ScalingConfigurationInfo.MaxCapacity != nil { - f61.MaxCapacity = resp.DBCluster.ScalingConfigurationInfo.MaxCapacity + f62.MaxCapacity = resp.DBCluster.ScalingConfigurationInfo.MaxCapacity } if resp.DBCluster.ScalingConfigurationInfo.MinCapacity != nil { - f61.MinCapacity = resp.DBCluster.ScalingConfigurationInfo.MinCapacity + f62.MinCapacity = resp.DBCluster.ScalingConfigurationInfo.MinCapacity } if resp.DBCluster.ScalingConfigurationInfo.SecondsBeforeTimeout != nil { - f61.SecondsBeforeTimeout = resp.DBCluster.ScalingConfigurationInfo.SecondsBeforeTimeout + f62.SecondsBeforeTimeout = resp.DBCluster.ScalingConfigurationInfo.SecondsBeforeTimeout } if resp.DBCluster.ScalingConfigurationInfo.SecondsUntilAutoPause != nil { - f61.SecondsUntilAutoPause = resp.DBCluster.ScalingConfigurationInfo.SecondsUntilAutoPause + f62.SecondsUntilAutoPause = resp.DBCluster.ScalingConfigurationInfo.SecondsUntilAutoPause } if resp.DBCluster.ScalingConfigurationInfo.TimeoutAction != nil { - f61.TimeoutAction = resp.DBCluster.ScalingConfigurationInfo.TimeoutAction + f62.TimeoutAction = resp.DBCluster.ScalingConfigurationInfo.TimeoutAction } - ko.Spec.ScalingConfiguration = f61 + ko.Spec.ScalingConfiguration = f62 } else { ko.Spec.ScalingConfiguration = nil } if resp.DBCluster.ServerlessV2ScalingConfiguration != nil { - f62 := &svcapitypes.ServerlessV2ScalingConfiguration{} + f63 := &svcapitypes.ServerlessV2ScalingConfiguration{} if resp.DBCluster.ServerlessV2ScalingConfiguration.MaxCapacity != nil { - f62.MaxCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MaxCapacity + f63.MaxCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MaxCapacity } if resp.DBCluster.ServerlessV2ScalingConfiguration.MinCapacity != nil { - f62.MinCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MinCapacity + f63.MinCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MinCapacity } - ko.Spec.ServerlessV2ScalingConfiguration = f62 + ko.Spec.ServerlessV2ScalingConfiguration = f63 } else { ko.Spec.ServerlessV2ScalingConfiguration = nil } @@ -1133,34 +1143,34 @@ func (rm *resourceManager) sdkCreate( ko.Spec.StorageType = nil } if resp.DBCluster.TagList != nil { - f66 := []*svcapitypes.Tag{} - for _, f66iter := range resp.DBCluster.TagList { - f66elem := &svcapitypes.Tag{} - if f66iter.Key != nil { - f66elem.Key = f66iter.Key + f67 := []*svcapitypes.Tag{} + for _, f67iter := range resp.DBCluster.TagList { + f67elem := &svcapitypes.Tag{} + if f67iter.Key != nil { + f67elem.Key = f67iter.Key } - if f66iter.Value != nil { - f66elem.Value = f66iter.Value + if f67iter.Value != nil { + f67elem.Value = f67iter.Value } - f66 = append(f66, f66elem) + f67 = append(f67, f67elem) } - ko.Status.TagList = f66 + ko.Status.TagList = f67 } else { ko.Status.TagList = nil } if resp.DBCluster.VpcSecurityGroups != nil { - f67 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f67iter := range resp.DBCluster.VpcSecurityGroups { - f67elem := &svcapitypes.VPCSecurityGroupMembership{} - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + f68 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f68iter := range resp.DBCluster.VpcSecurityGroups { + f68elem := &svcapitypes.VPCSecurityGroupMembership{} + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.VpcSecurityGroupId != nil { - f67elem.VPCSecurityGroupID = f67iter.VpcSecurityGroupId + if f68iter.VpcSecurityGroupId != nil { + f68elem.VPCSecurityGroupID = f68iter.VpcSecurityGroupId } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - ko.Status.VPCSecurityGroups = f67 + ko.Status.VPCSecurityGroups = f68 } else { ko.Status.VPCSecurityGroups = nil } @@ -1298,6 +1308,9 @@ func (rm *resourceManager) newCreateRequestPayload( if r.ko.Spec.MonitoringRoleARN != nil { res.SetMonitoringRoleArn(*r.ko.Spec.MonitoringRoleARN) } + if r.ko.Spec.NetworkType != nil { + res.SetNetworkType(*r.ko.Spec.NetworkType) + } if r.ko.Spec.OptionGroupName != nil { res.SetOptionGroupName(*r.ko.Spec.OptionGroupName) } @@ -1326,36 +1339,36 @@ func (rm *resourceManager) newCreateRequestPayload( res.SetReplicationSourceIdentifier(*r.ko.Spec.ReplicationSourceIdentifier) } if r.ko.Spec.ScalingConfiguration != nil { - f40 := &svcsdk.ScalingConfiguration{} + f41 := &svcsdk.ScalingConfiguration{} if r.ko.Spec.ScalingConfiguration.AutoPause != nil { - f40.SetAutoPause(*r.ko.Spec.ScalingConfiguration.AutoPause) + f41.SetAutoPause(*r.ko.Spec.ScalingConfiguration.AutoPause) } if r.ko.Spec.ScalingConfiguration.MaxCapacity != nil { - f40.SetMaxCapacity(*r.ko.Spec.ScalingConfiguration.MaxCapacity) + f41.SetMaxCapacity(*r.ko.Spec.ScalingConfiguration.MaxCapacity) } if r.ko.Spec.ScalingConfiguration.MinCapacity != nil { - f40.SetMinCapacity(*r.ko.Spec.ScalingConfiguration.MinCapacity) + f41.SetMinCapacity(*r.ko.Spec.ScalingConfiguration.MinCapacity) } if r.ko.Spec.ScalingConfiguration.SecondsBeforeTimeout != nil { - f40.SetSecondsBeforeTimeout(*r.ko.Spec.ScalingConfiguration.SecondsBeforeTimeout) + f41.SetSecondsBeforeTimeout(*r.ko.Spec.ScalingConfiguration.SecondsBeforeTimeout) } if r.ko.Spec.ScalingConfiguration.SecondsUntilAutoPause != nil { - f40.SetSecondsUntilAutoPause(*r.ko.Spec.ScalingConfiguration.SecondsUntilAutoPause) + f41.SetSecondsUntilAutoPause(*r.ko.Spec.ScalingConfiguration.SecondsUntilAutoPause) } if r.ko.Spec.ScalingConfiguration.TimeoutAction != nil { - f40.SetTimeoutAction(*r.ko.Spec.ScalingConfiguration.TimeoutAction) + f41.SetTimeoutAction(*r.ko.Spec.ScalingConfiguration.TimeoutAction) } - res.SetScalingConfiguration(f40) + res.SetScalingConfiguration(f41) } if r.ko.Spec.ServerlessV2ScalingConfiguration != nil { - f41 := &svcsdk.ServerlessV2ScalingConfiguration{} + f42 := &svcsdk.ServerlessV2ScalingConfiguration{} if r.ko.Spec.ServerlessV2ScalingConfiguration.MaxCapacity != nil { - f41.SetMaxCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MaxCapacity) + f42.SetMaxCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MaxCapacity) } if r.ko.Spec.ServerlessV2ScalingConfiguration.MinCapacity != nil { - f41.SetMinCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MinCapacity) + f42.SetMinCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MinCapacity) } - res.SetServerlessV2ScalingConfiguration(f41) + res.SetServerlessV2ScalingConfiguration(f42) } if r.ko.Spec.SourceRegion != nil { res.SetSourceRegion(*r.ko.Spec.SourceRegion) @@ -1367,27 +1380,27 @@ func (rm *resourceManager) newCreateRequestPayload( res.SetStorageType(*r.ko.Spec.StorageType) } if r.ko.Spec.Tags != nil { - f45 := []*svcsdk.Tag{} - for _, f45iter := range r.ko.Spec.Tags { - f45elem := &svcsdk.Tag{} - if f45iter.Key != nil { - f45elem.SetKey(*f45iter.Key) + f46 := []*svcsdk.Tag{} + for _, f46iter := range r.ko.Spec.Tags { + f46elem := &svcsdk.Tag{} + if f46iter.Key != nil { + f46elem.SetKey(*f46iter.Key) } - if f45iter.Value != nil { - f45elem.SetValue(*f45iter.Value) + if f46iter.Value != nil { + f46elem.SetValue(*f46iter.Value) } - f45 = append(f45, f45elem) + f46 = append(f46, f46elem) } - res.SetTags(f45) + res.SetTags(f46) } if r.ko.Spec.VPCSecurityGroupIDs != nil { - f46 := []*string{} - for _, f46iter := range r.ko.Spec.VPCSecurityGroupIDs { - var f46elem string - f46elem = *f46iter - f46 = append(f46, &f46elem) + f47 := []*string{} + for _, f47iter := range r.ko.Spec.VPCSecurityGroupIDs { + var f47elem string + f47elem = *f47iter + f47 = append(f47, &f47elem) } - res.SetVpcSecurityGroupIds(f46) + res.SetVpcSecurityGroupIds(f47) } return res, nil @@ -1638,6 +1651,9 @@ func (rm *resourceManager) newRestoreDBClusterFromSnapshotInput( if r.ko.Spec.KMSKeyID != nil { res.SetKmsKeyId(*r.ko.Spec.KMSKeyID) } + if r.ko.Spec.NetworkType != nil { + res.SetNetworkType(*r.ko.Spec.NetworkType) + } if r.ko.Spec.OptionGroupName != nil { res.SetOptionGroupName(*r.ko.Spec.OptionGroupName) } @@ -1648,36 +1664,36 @@ func (rm *resourceManager) newRestoreDBClusterFromSnapshotInput( res.SetPubliclyAccessible(*r.ko.Spec.PubliclyAccessible) } if r.ko.Spec.ScalingConfiguration != nil { - resf21 := &svcsdk.ScalingConfiguration{} + resf22 := &svcsdk.ScalingConfiguration{} if r.ko.Spec.ScalingConfiguration.AutoPause != nil { - resf21.SetAutoPause(*r.ko.Spec.ScalingConfiguration.AutoPause) + resf22.SetAutoPause(*r.ko.Spec.ScalingConfiguration.AutoPause) } if r.ko.Spec.ScalingConfiguration.MaxCapacity != nil { - resf21.SetMaxCapacity(*r.ko.Spec.ScalingConfiguration.MaxCapacity) + resf22.SetMaxCapacity(*r.ko.Spec.ScalingConfiguration.MaxCapacity) } if r.ko.Spec.ScalingConfiguration.MinCapacity != nil { - resf21.SetMinCapacity(*r.ko.Spec.ScalingConfiguration.MinCapacity) + resf22.SetMinCapacity(*r.ko.Spec.ScalingConfiguration.MinCapacity) } if r.ko.Spec.ScalingConfiguration.SecondsBeforeTimeout != nil { - resf21.SetSecondsBeforeTimeout(*r.ko.Spec.ScalingConfiguration.SecondsBeforeTimeout) + resf22.SetSecondsBeforeTimeout(*r.ko.Spec.ScalingConfiguration.SecondsBeforeTimeout) } if r.ko.Spec.ScalingConfiguration.SecondsUntilAutoPause != nil { - resf21.SetSecondsUntilAutoPause(*r.ko.Spec.ScalingConfiguration.SecondsUntilAutoPause) + resf22.SetSecondsUntilAutoPause(*r.ko.Spec.ScalingConfiguration.SecondsUntilAutoPause) } if r.ko.Spec.ScalingConfiguration.TimeoutAction != nil { - resf21.SetTimeoutAction(*r.ko.Spec.ScalingConfiguration.TimeoutAction) + resf22.SetTimeoutAction(*r.ko.Spec.ScalingConfiguration.TimeoutAction) } - res.SetScalingConfiguration(resf21) + res.SetScalingConfiguration(resf22) } if r.ko.Spec.ServerlessV2ScalingConfiguration != nil { - resf22 := &svcsdk.ServerlessV2ScalingConfiguration{} + resf23 := &svcsdk.ServerlessV2ScalingConfiguration{} if r.ko.Spec.ServerlessV2ScalingConfiguration.MaxCapacity != nil { - resf22.SetMaxCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MaxCapacity) + resf23.SetMaxCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MaxCapacity) } if r.ko.Spec.ServerlessV2ScalingConfiguration.MinCapacity != nil { - resf22.SetMinCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MinCapacity) + resf23.SetMinCapacity(*r.ko.Spec.ServerlessV2ScalingConfiguration.MinCapacity) } - res.SetServerlessV2ScalingConfiguration(resf22) + res.SetServerlessV2ScalingConfiguration(resf23) } if r.ko.Spec.SnapshotIdentifier != nil { res.SetSnapshotIdentifier(*r.ko.Spec.SnapshotIdentifier) @@ -1686,27 +1702,27 @@ func (rm *resourceManager) newRestoreDBClusterFromSnapshotInput( res.SetStorageType(*r.ko.Spec.StorageType) } if r.ko.Spec.Tags != nil { - resf25 := []*svcsdk.Tag{} - for _, resf25iter := range r.ko.Spec.Tags { - resf25elem := &svcsdk.Tag{} - if resf25iter.Key != nil { - resf25elem.SetKey(*resf25iter.Key) + resf26 := []*svcsdk.Tag{} + for _, resf26iter := range r.ko.Spec.Tags { + resf26elem := &svcsdk.Tag{} + if resf26iter.Key != nil { + resf26elem.SetKey(*resf26iter.Key) } - if resf25iter.Value != nil { - resf25elem.SetValue(*resf25iter.Value) + if resf26iter.Value != nil { + resf26elem.SetValue(*resf26iter.Value) } - resf25 = append(resf25, resf25elem) + resf26 = append(resf26, resf26elem) } - res.SetTags(resf25) + res.SetTags(resf26) } if r.ko.Spec.VPCSecurityGroupIDs != nil { - resf26 := []*string{} - for _, resf26iter := range r.ko.Spec.VPCSecurityGroupIDs { - var resf26elem string - resf26elem = *resf26iter - resf26 = append(resf26, &resf26elem) + resf27 := []*string{} + for _, resf27iter := range r.ko.Spec.VPCSecurityGroupIDs { + var resf27elem string + resf27elem = *resf27iter + resf27 = append(resf27, &resf27elem) } - res.SetVpcSecurityGroupIds(resf26) + res.SetVpcSecurityGroupIds(resf27) } return res @@ -2043,43 +2059,48 @@ func (rm *resourceManager) setResourceFromRestoreDBClusterFromSnapshotOutput( } else { r.ko.Status.MultiAZ = nil } + if resp.DBCluster.NetworkType != nil { + r.ko.Spec.NetworkType = resp.DBCluster.NetworkType + } else { + r.ko.Spec.NetworkType = nil + } if resp.DBCluster.PendingModifiedValues != nil { - f49 := &svcapitypes.ClusterPendingModifiedValues{} + f50 := &svcapitypes.ClusterPendingModifiedValues{} if resp.DBCluster.PendingModifiedValues.DBClusterIdentifier != nil { - f49.DBClusterIdentifier = resp.DBCluster.PendingModifiedValues.DBClusterIdentifier + f50.DBClusterIdentifier = resp.DBCluster.PendingModifiedValues.DBClusterIdentifier } if resp.DBCluster.PendingModifiedValues.EngineVersion != nil { - f49.EngineVersion = resp.DBCluster.PendingModifiedValues.EngineVersion + f50.EngineVersion = resp.DBCluster.PendingModifiedValues.EngineVersion } if resp.DBCluster.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f49.IAMDatabaseAuthenticationEnabled = resp.DBCluster.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f50.IAMDatabaseAuthenticationEnabled = resp.DBCluster.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if resp.DBCluster.PendingModifiedValues.MasterUserPassword != nil { - f49.MasterUserPassword = resp.DBCluster.PendingModifiedValues.MasterUserPassword + f50.MasterUserPassword = resp.DBCluster.PendingModifiedValues.MasterUserPassword } if resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f49f4 := &svcapitypes.PendingCloudwatchLogsExports{} + f50f4 := &svcapitypes.PendingCloudwatchLogsExports{} if resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f49f4f0 := []*string{} - for _, f49f4f0iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f49f4f0elem string - f49f4f0elem = *f49f4f0iter - f49f4f0 = append(f49f4f0, &f49f4f0elem) + f50f4f0 := []*string{} + for _, f50f4f0iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f50f4f0elem string + f50f4f0elem = *f50f4f0iter + f50f4f0 = append(f50f4f0, &f50f4f0elem) } - f49f4.LogTypesToDisable = f49f4f0 + f50f4.LogTypesToDisable = f50f4f0 } if resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f49f4f1 := []*string{} - for _, f49f4f1iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f49f4f1elem string - f49f4f1elem = *f49f4f1iter - f49f4f1 = append(f49f4f1, &f49f4f1elem) + f50f4f1 := []*string{} + for _, f50f4f1iter := range resp.DBCluster.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f50f4f1elem string + f50f4f1elem = *f50f4f1iter + f50f4f1 = append(f50f4f1, &f50f4f1elem) } - f49f4.LogTypesToEnable = f49f4f1 + f50f4.LogTypesToEnable = f50f4f1 } - f49.PendingCloudwatchLogsExports = f49f4 + f50.PendingCloudwatchLogsExports = f50f4 } - r.ko.Status.PendingModifiedValues = f49 + r.ko.Status.PendingModifiedValues = f50 } else { r.ko.Status.PendingModifiedValues = nil } @@ -2124,13 +2145,13 @@ func (rm *resourceManager) setResourceFromRestoreDBClusterFromSnapshotOutput( r.ko.Spec.PubliclyAccessible = nil } if resp.DBCluster.ReadReplicaIdentifiers != nil { - f58 := []*string{} - for _, f58iter := range resp.DBCluster.ReadReplicaIdentifiers { - var f58elem string - f58elem = *f58iter - f58 = append(f58, &f58elem) + f59 := []*string{} + for _, f59iter := range resp.DBCluster.ReadReplicaIdentifiers { + var f59elem string + f59elem = *f59iter + f59 = append(f59, &f59elem) } - r.ko.Status.ReadReplicaIdentifiers = f58 + r.ko.Status.ReadReplicaIdentifiers = f59 } else { r.ko.Status.ReadReplicaIdentifiers = nil } @@ -2145,38 +2166,38 @@ func (rm *resourceManager) setResourceFromRestoreDBClusterFromSnapshotOutput( r.ko.Spec.ReplicationSourceIdentifier = nil } if resp.DBCluster.ScalingConfigurationInfo != nil { - f61 := &svcapitypes.ScalingConfiguration{} + f62 := &svcapitypes.ScalingConfiguration{} if resp.DBCluster.ScalingConfigurationInfo.AutoPause != nil { - f61.AutoPause = resp.DBCluster.ScalingConfigurationInfo.AutoPause + f62.AutoPause = resp.DBCluster.ScalingConfigurationInfo.AutoPause } if resp.DBCluster.ScalingConfigurationInfo.MaxCapacity != nil { - f61.MaxCapacity = resp.DBCluster.ScalingConfigurationInfo.MaxCapacity + f62.MaxCapacity = resp.DBCluster.ScalingConfigurationInfo.MaxCapacity } if resp.DBCluster.ScalingConfigurationInfo.MinCapacity != nil { - f61.MinCapacity = resp.DBCluster.ScalingConfigurationInfo.MinCapacity + f62.MinCapacity = resp.DBCluster.ScalingConfigurationInfo.MinCapacity } if resp.DBCluster.ScalingConfigurationInfo.SecondsBeforeTimeout != nil { - f61.SecondsBeforeTimeout = resp.DBCluster.ScalingConfigurationInfo.SecondsBeforeTimeout + f62.SecondsBeforeTimeout = resp.DBCluster.ScalingConfigurationInfo.SecondsBeforeTimeout } if resp.DBCluster.ScalingConfigurationInfo.SecondsUntilAutoPause != nil { - f61.SecondsUntilAutoPause = resp.DBCluster.ScalingConfigurationInfo.SecondsUntilAutoPause + f62.SecondsUntilAutoPause = resp.DBCluster.ScalingConfigurationInfo.SecondsUntilAutoPause } if resp.DBCluster.ScalingConfigurationInfo.TimeoutAction != nil { - f61.TimeoutAction = resp.DBCluster.ScalingConfigurationInfo.TimeoutAction + f62.TimeoutAction = resp.DBCluster.ScalingConfigurationInfo.TimeoutAction } - r.ko.Spec.ScalingConfiguration = f61 + r.ko.Spec.ScalingConfiguration = f62 } else { r.ko.Spec.ScalingConfiguration = nil } if resp.DBCluster.ServerlessV2ScalingConfiguration != nil { - f62 := &svcapitypes.ServerlessV2ScalingConfiguration{} + f63 := &svcapitypes.ServerlessV2ScalingConfiguration{} if resp.DBCluster.ServerlessV2ScalingConfiguration.MaxCapacity != nil { - f62.MaxCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MaxCapacity + f63.MaxCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MaxCapacity } if resp.DBCluster.ServerlessV2ScalingConfiguration.MinCapacity != nil { - f62.MinCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MinCapacity + f63.MinCapacity = resp.DBCluster.ServerlessV2ScalingConfiguration.MinCapacity } - r.ko.Spec.ServerlessV2ScalingConfiguration = f62 + r.ko.Spec.ServerlessV2ScalingConfiguration = f63 } else { r.ko.Spec.ServerlessV2ScalingConfiguration = nil } @@ -2196,34 +2217,34 @@ func (rm *resourceManager) setResourceFromRestoreDBClusterFromSnapshotOutput( r.ko.Spec.StorageType = nil } if resp.DBCluster.TagList != nil { - f66 := []*svcapitypes.Tag{} - for _, f66iter := range resp.DBCluster.TagList { - f66elem := &svcapitypes.Tag{} - if f66iter.Key != nil { - f66elem.Key = f66iter.Key + f67 := []*svcapitypes.Tag{} + for _, f67iter := range resp.DBCluster.TagList { + f67elem := &svcapitypes.Tag{} + if f67iter.Key != nil { + f67elem.Key = f67iter.Key } - if f66iter.Value != nil { - f66elem.Value = f66iter.Value + if f67iter.Value != nil { + f67elem.Value = f67iter.Value } - f66 = append(f66, f66elem) + f67 = append(f67, f67elem) } - r.ko.Status.TagList = f66 + r.ko.Status.TagList = f67 } else { r.ko.Status.TagList = nil } if resp.DBCluster.VpcSecurityGroups != nil { - f67 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f67iter := range resp.DBCluster.VpcSecurityGroups { - f67elem := &svcapitypes.VPCSecurityGroupMembership{} - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + f68 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f68iter := range resp.DBCluster.VpcSecurityGroups { + f68elem := &svcapitypes.VPCSecurityGroupMembership{} + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.VpcSecurityGroupId != nil { - f67elem.VPCSecurityGroupID = f67iter.VpcSecurityGroupId + if f68iter.VpcSecurityGroupId != nil { + f68elem.VPCSecurityGroupID = f68iter.VpcSecurityGroupId } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - r.ko.Status.VPCSecurityGroups = f67 + r.ko.Status.VPCSecurityGroups = f68 } else { r.ko.Status.VPCSecurityGroups = nil } diff --git a/pkg/resource/db_instance/sdk.go b/pkg/resource/db_instance/sdk.go index c8f30a7..fb67f41 100644 --- a/pkg/resource/db_instance/sdk.go +++ b/pkg/resource/db_instance/sdk.go @@ -108,6 +108,11 @@ func (rm *resourceManager) sdkFind( } else { ko.Status.ActivityStreamMode = nil } + if elem.ActivityStreamPolicyStatus != nil { + ko.Status.ActivityStreamPolicyStatus = elem.ActivityStreamPolicyStatus + } else { + ko.Status.ActivityStreamPolicyStatus = nil + } if elem.ActivityStreamStatus != nil { ko.Status.ActivityStreamStatus = elem.ActivityStreamStatus } else { @@ -119,21 +124,21 @@ func (rm *resourceManager) sdkFind( ko.Spec.AllocatedStorage = nil } if elem.AssociatedRoles != nil { - f6 := []*svcapitypes.DBInstanceRole{} - for _, f6iter := range elem.AssociatedRoles { - f6elem := &svcapitypes.DBInstanceRole{} - if f6iter.FeatureName != nil { - f6elem.FeatureName = f6iter.FeatureName + f7 := []*svcapitypes.DBInstanceRole{} + for _, f7iter := range elem.AssociatedRoles { + f7elem := &svcapitypes.DBInstanceRole{} + if f7iter.FeatureName != nil { + f7elem.FeatureName = f7iter.FeatureName } - if f6iter.RoleArn != nil { - f6elem.RoleARN = f6iter.RoleArn + if f7iter.RoleArn != nil { + f7elem.RoleARN = f7iter.RoleArn } - if f6iter.Status != nil { - f6elem.Status = f6iter.Status + if f7iter.Status != nil { + f7elem.Status = f7iter.Status } - f6 = append(f6, f6elem) + f7 = append(f7, f7elem) } - ko.Status.AssociatedRoles = f6 + ko.Status.AssociatedRoles = f7 } else { ko.Status.AssociatedRoles = nil } @@ -210,15 +215,15 @@ func (rm *resourceManager) sdkFind( ko.Status.ACKResourceMetadata.ARN = &tmpARN } if elem.DBInstanceAutomatedBackupsReplications != nil { - f21 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} - for _, f21iter := range elem.DBInstanceAutomatedBackupsReplications { - f21elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} - if f21iter.DBInstanceAutomatedBackupsArn != nil { - f21elem.DBInstanceAutomatedBackupsARN = f21iter.DBInstanceAutomatedBackupsArn + f22 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} + for _, f22iter := range elem.DBInstanceAutomatedBackupsReplications { + f22elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} + if f22iter.DBInstanceAutomatedBackupsArn != nil { + f22elem.DBInstanceAutomatedBackupsARN = f22iter.DBInstanceAutomatedBackupsArn } - f21 = append(f21, f21elem) + f22 = append(f22, f22elem) } - ko.Status.DBInstanceAutomatedBackupsReplications = f21 + ko.Status.DBInstanceAutomatedBackupsReplications = f22 } else { ko.Status.DBInstanceAutomatedBackupsReplications = nil } @@ -243,76 +248,76 @@ func (rm *resourceManager) sdkFind( ko.Spec.DBName = nil } if elem.DBParameterGroups != nil { - f26 := []*svcapitypes.DBParameterGroupStatus_SDK{} - for _, f26iter := range elem.DBParameterGroups { - f26elem := &svcapitypes.DBParameterGroupStatus_SDK{} - if f26iter.DBParameterGroupName != nil { - f26elem.DBParameterGroupName = f26iter.DBParameterGroupName + f27 := []*svcapitypes.DBParameterGroupStatus_SDK{} + for _, f27iter := range elem.DBParameterGroups { + f27elem := &svcapitypes.DBParameterGroupStatus_SDK{} + if f27iter.DBParameterGroupName != nil { + f27elem.DBParameterGroupName = f27iter.DBParameterGroupName } - if f26iter.ParameterApplyStatus != nil { - f26elem.ParameterApplyStatus = f26iter.ParameterApplyStatus + if f27iter.ParameterApplyStatus != nil { + f27elem.ParameterApplyStatus = f27iter.ParameterApplyStatus } - f26 = append(f26, f26elem) + f27 = append(f27, f27elem) } - ko.Status.DBParameterGroups = f26 + ko.Status.DBParameterGroups = f27 } else { ko.Status.DBParameterGroups = nil } if elem.DBSubnetGroup != nil { - f27 := &svcapitypes.DBSubnetGroup_SDK{} + f28 := &svcapitypes.DBSubnetGroup_SDK{} if elem.DBSubnetGroup.DBSubnetGroupArn != nil { - f27.DBSubnetGroupARN = elem.DBSubnetGroup.DBSubnetGroupArn + f28.DBSubnetGroupARN = elem.DBSubnetGroup.DBSubnetGroupArn } if elem.DBSubnetGroup.DBSubnetGroupDescription != nil { - f27.DBSubnetGroupDescription = elem.DBSubnetGroup.DBSubnetGroupDescription + f28.DBSubnetGroupDescription = elem.DBSubnetGroup.DBSubnetGroupDescription } if elem.DBSubnetGroup.DBSubnetGroupName != nil { - f27.DBSubnetGroupName = elem.DBSubnetGroup.DBSubnetGroupName + f28.DBSubnetGroupName = elem.DBSubnetGroup.DBSubnetGroupName } if elem.DBSubnetGroup.SubnetGroupStatus != nil { - f27.SubnetGroupStatus = elem.DBSubnetGroup.SubnetGroupStatus + f28.SubnetGroupStatus = elem.DBSubnetGroup.SubnetGroupStatus } if elem.DBSubnetGroup.Subnets != nil { - f27f4 := []*svcapitypes.Subnet{} - for _, f27f4iter := range elem.DBSubnetGroup.Subnets { - f27f4elem := &svcapitypes.Subnet{} - if f27f4iter.SubnetAvailabilityZone != nil { - f27f4elemf0 := &svcapitypes.AvailabilityZone{} - if f27f4iter.SubnetAvailabilityZone.Name != nil { - f27f4elemf0.Name = f27f4iter.SubnetAvailabilityZone.Name + f28f4 := []*svcapitypes.Subnet{} + for _, f28f4iter := range elem.DBSubnetGroup.Subnets { + f28f4elem := &svcapitypes.Subnet{} + if f28f4iter.SubnetAvailabilityZone != nil { + f28f4elemf0 := &svcapitypes.AvailabilityZone{} + if f28f4iter.SubnetAvailabilityZone.Name != nil { + f28f4elemf0.Name = f28f4iter.SubnetAvailabilityZone.Name } - f27f4elem.SubnetAvailabilityZone = f27f4elemf0 + f28f4elem.SubnetAvailabilityZone = f28f4elemf0 } - if f27f4iter.SubnetIdentifier != nil { - f27f4elem.SubnetIdentifier = f27f4iter.SubnetIdentifier + if f28f4iter.SubnetIdentifier != nil { + f28f4elem.SubnetIdentifier = f28f4iter.SubnetIdentifier } - if f27f4iter.SubnetOutpost != nil { - f27f4elemf2 := &svcapitypes.Outpost{} - if f27f4iter.SubnetOutpost.Arn != nil { - f27f4elemf2.ARN = f27f4iter.SubnetOutpost.Arn + if f28f4iter.SubnetOutpost != nil { + f28f4elemf2 := &svcapitypes.Outpost{} + if f28f4iter.SubnetOutpost.Arn != nil { + f28f4elemf2.ARN = f28f4iter.SubnetOutpost.Arn } - f27f4elem.SubnetOutpost = f27f4elemf2 + f28f4elem.SubnetOutpost = f28f4elemf2 } - if f27f4iter.SubnetStatus != nil { - f27f4elem.SubnetStatus = f27f4iter.SubnetStatus + if f28f4iter.SubnetStatus != nil { + f28f4elem.SubnetStatus = f28f4iter.SubnetStatus } - f27f4 = append(f27f4, f27f4elem) + f28f4 = append(f28f4, f28f4elem) } - f27.Subnets = f27f4 + f28.Subnets = f28f4 } if elem.DBSubnetGroup.SupportedNetworkTypes != nil { - f27f5 := []*string{} - for _, f27f5iter := range elem.DBSubnetGroup.SupportedNetworkTypes { - var f27f5elem string - f27f5elem = *f27f5iter - f27f5 = append(f27f5, &f27f5elem) + f28f5 := []*string{} + for _, f28f5iter := range elem.DBSubnetGroup.SupportedNetworkTypes { + var f28f5elem string + f28f5elem = *f28f5iter + f28f5 = append(f28f5, &f28f5elem) } - f27.SupportedNetworkTypes = f27f5 + f28.SupportedNetworkTypes = f28f5 } if elem.DBSubnetGroup.VpcId != nil { - f27.VPCID = elem.DBSubnetGroup.VpcId + f28.VPCID = elem.DBSubnetGroup.VpcId } - ko.Status.DBSubnetGroup = f27 + ko.Status.DBSubnetGroup = f28 } else { ko.Status.DBSubnetGroup = nil } @@ -332,50 +337,50 @@ func (rm *resourceManager) sdkFind( ko.Spec.DeletionProtection = nil } if elem.DomainMemberships != nil { - f31 := []*svcapitypes.DomainMembership{} - for _, f31iter := range elem.DomainMemberships { - f31elem := &svcapitypes.DomainMembership{} - if f31iter.Domain != nil { - f31elem.Domain = f31iter.Domain + f32 := []*svcapitypes.DomainMembership{} + for _, f32iter := range elem.DomainMemberships { + f32elem := &svcapitypes.DomainMembership{} + if f32iter.Domain != nil { + f32elem.Domain = f32iter.Domain } - if f31iter.FQDN != nil { - f31elem.FQDN = f31iter.FQDN + if f32iter.FQDN != nil { + f32elem.FQDN = f32iter.FQDN } - if f31iter.IAMRoleName != nil { - f31elem.IAMRoleName = f31iter.IAMRoleName + if f32iter.IAMRoleName != nil { + f32elem.IAMRoleName = f32iter.IAMRoleName } - if f31iter.Status != nil { - f31elem.Status = f31iter.Status + if f32iter.Status != nil { + f32elem.Status = f32iter.Status } - f31 = append(f31, f31elem) + f32 = append(f32, f32elem) } - ko.Status.DomainMemberships = f31 + ko.Status.DomainMemberships = f32 } else { ko.Status.DomainMemberships = nil } if elem.EnabledCloudwatchLogsExports != nil { - f32 := []*string{} - for _, f32iter := range elem.EnabledCloudwatchLogsExports { - var f32elem string - f32elem = *f32iter - f32 = append(f32, &f32elem) + f33 := []*string{} + for _, f33iter := range elem.EnabledCloudwatchLogsExports { + var f33elem string + f33elem = *f33iter + f33 = append(f33, &f33elem) } - ko.Status.EnabledCloudwatchLogsExports = f32 + ko.Status.EnabledCloudwatchLogsExports = f33 } else { ko.Status.EnabledCloudwatchLogsExports = nil } if elem.Endpoint != nil { - f33 := &svcapitypes.Endpoint{} + f34 := &svcapitypes.Endpoint{} if elem.Endpoint.Address != nil { - f33.Address = elem.Endpoint.Address + f34.Address = elem.Endpoint.Address } if elem.Endpoint.HostedZoneId != nil { - f33.HostedZoneID = elem.Endpoint.HostedZoneId + f34.HostedZoneID = elem.Endpoint.HostedZoneId } if elem.Endpoint.Port != nil { - f33.Port = elem.Endpoint.Port + f34.Port = elem.Endpoint.Port } - ko.Status.Endpoint = f33 + ko.Status.Endpoint = f34 } else { ko.Status.Endpoint = nil } @@ -425,17 +430,17 @@ func (rm *resourceManager) sdkFind( ko.Spec.LicenseModel = nil } if elem.ListenerEndpoint != nil { - f43 := &svcapitypes.Endpoint{} + f44 := &svcapitypes.Endpoint{} if elem.ListenerEndpoint.Address != nil { - f43.Address = elem.ListenerEndpoint.Address + f44.Address = elem.ListenerEndpoint.Address } if elem.ListenerEndpoint.HostedZoneId != nil { - f43.HostedZoneID = elem.ListenerEndpoint.HostedZoneId + f44.HostedZoneID = elem.ListenerEndpoint.HostedZoneId } if elem.ListenerEndpoint.Port != nil { - f43.Port = elem.ListenerEndpoint.Port + f44.Port = elem.ListenerEndpoint.Port } - ko.Status.ListenerEndpoint = f43 + ko.Status.ListenerEndpoint = f44 } else { ko.Status.ListenerEndpoint = nil } @@ -475,108 +480,108 @@ func (rm *resourceManager) sdkFind( ko.Spec.NetworkType = nil } if elem.OptionGroupMemberships != nil { - f51 := []*svcapitypes.OptionGroupMembership{} - for _, f51iter := range elem.OptionGroupMemberships { - f51elem := &svcapitypes.OptionGroupMembership{} - if f51iter.OptionGroupName != nil { - f51elem.OptionGroupName = f51iter.OptionGroupName + f52 := []*svcapitypes.OptionGroupMembership{} + for _, f52iter := range elem.OptionGroupMemberships { + f52elem := &svcapitypes.OptionGroupMembership{} + if f52iter.OptionGroupName != nil { + f52elem.OptionGroupName = f52iter.OptionGroupName } - if f51iter.Status != nil { - f51elem.Status = f51iter.Status + if f52iter.Status != nil { + f52elem.Status = f52iter.Status } - f51 = append(f51, f51elem) + f52 = append(f52, f52elem) } - ko.Status.OptionGroupMemberships = f51 + ko.Status.OptionGroupMemberships = f52 } else { ko.Status.OptionGroupMemberships = nil } if elem.PendingModifiedValues != nil { - f52 := &svcapitypes.PendingModifiedValues{} + f53 := &svcapitypes.PendingModifiedValues{} if elem.PendingModifiedValues.AllocatedStorage != nil { - f52.AllocatedStorage = elem.PendingModifiedValues.AllocatedStorage + f53.AllocatedStorage = elem.PendingModifiedValues.AllocatedStorage } if elem.PendingModifiedValues.AutomationMode != nil { - f52.AutomationMode = elem.PendingModifiedValues.AutomationMode + f53.AutomationMode = elem.PendingModifiedValues.AutomationMode } if elem.PendingModifiedValues.BackupRetentionPeriod != nil { - f52.BackupRetentionPeriod = elem.PendingModifiedValues.BackupRetentionPeriod + f53.BackupRetentionPeriod = elem.PendingModifiedValues.BackupRetentionPeriod } if elem.PendingModifiedValues.CACertificateIdentifier != nil { - f52.CACertificateIdentifier = elem.PendingModifiedValues.CACertificateIdentifier + f53.CACertificateIdentifier = elem.PendingModifiedValues.CACertificateIdentifier } if elem.PendingModifiedValues.DBInstanceClass != nil { - f52.DBInstanceClass = elem.PendingModifiedValues.DBInstanceClass + f53.DBInstanceClass = elem.PendingModifiedValues.DBInstanceClass } if elem.PendingModifiedValues.DBInstanceIdentifier != nil { - f52.DBInstanceIdentifier = elem.PendingModifiedValues.DBInstanceIdentifier + f53.DBInstanceIdentifier = elem.PendingModifiedValues.DBInstanceIdentifier } if elem.PendingModifiedValues.DBSubnetGroupName != nil { - f52.DBSubnetGroupName = elem.PendingModifiedValues.DBSubnetGroupName + f53.DBSubnetGroupName = elem.PendingModifiedValues.DBSubnetGroupName } if elem.PendingModifiedValues.EngineVersion != nil { - f52.EngineVersion = elem.PendingModifiedValues.EngineVersion + f53.EngineVersion = elem.PendingModifiedValues.EngineVersion } if elem.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f52.IAMDatabaseAuthenticationEnabled = elem.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f53.IAMDatabaseAuthenticationEnabled = elem.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if elem.PendingModifiedValues.Iops != nil { - f52.IOPS = elem.PendingModifiedValues.Iops + f53.IOPS = elem.PendingModifiedValues.Iops } if elem.PendingModifiedValues.LicenseModel != nil { - f52.LicenseModel = elem.PendingModifiedValues.LicenseModel + f53.LicenseModel = elem.PendingModifiedValues.LicenseModel } if elem.PendingModifiedValues.MasterUserPassword != nil { - f52.MasterUserPassword = elem.PendingModifiedValues.MasterUserPassword + f53.MasterUserPassword = elem.PendingModifiedValues.MasterUserPassword } if elem.PendingModifiedValues.MultiAZ != nil { - f52.MultiAZ = elem.PendingModifiedValues.MultiAZ + f53.MultiAZ = elem.PendingModifiedValues.MultiAZ } if elem.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f52f13 := &svcapitypes.PendingCloudwatchLogsExports{} + f53f13 := &svcapitypes.PendingCloudwatchLogsExports{} if elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f52f13f0 := []*string{} - for _, f52f13f0iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f52f13f0elem string - f52f13f0elem = *f52f13f0iter - f52f13f0 = append(f52f13f0, &f52f13f0elem) + f53f13f0 := []*string{} + for _, f53f13f0iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f53f13f0elem string + f53f13f0elem = *f53f13f0iter + f53f13f0 = append(f53f13f0, &f53f13f0elem) } - f52f13.LogTypesToDisable = f52f13f0 + f53f13.LogTypesToDisable = f53f13f0 } if elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f52f13f1 := []*string{} - for _, f52f13f1iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f52f13f1elem string - f52f13f1elem = *f52f13f1iter - f52f13f1 = append(f52f13f1, &f52f13f1elem) + f53f13f1 := []*string{} + for _, f53f13f1iter := range elem.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f53f13f1elem string + f53f13f1elem = *f53f13f1iter + f53f13f1 = append(f53f13f1, &f53f13f1elem) } - f52f13.LogTypesToEnable = f52f13f1 + f53f13.LogTypesToEnable = f53f13f1 } - f52.PendingCloudwatchLogsExports = f52f13 + f53.PendingCloudwatchLogsExports = f53f13 } if elem.PendingModifiedValues.Port != nil { - f52.Port = elem.PendingModifiedValues.Port + f53.Port = elem.PendingModifiedValues.Port } if elem.PendingModifiedValues.ProcessorFeatures != nil { - f52f15 := []*svcapitypes.ProcessorFeature{} - for _, f52f15iter := range elem.PendingModifiedValues.ProcessorFeatures { - f52f15elem := &svcapitypes.ProcessorFeature{} - if f52f15iter.Name != nil { - f52f15elem.Name = f52f15iter.Name + f53f15 := []*svcapitypes.ProcessorFeature{} + for _, f53f15iter := range elem.PendingModifiedValues.ProcessorFeatures { + f53f15elem := &svcapitypes.ProcessorFeature{} + if f53f15iter.Name != nil { + f53f15elem.Name = f53f15iter.Name } - if f52f15iter.Value != nil { - f52f15elem.Value = f52f15iter.Value + if f53f15iter.Value != nil { + f53f15elem.Value = f53f15iter.Value } - f52f15 = append(f52f15, f52f15elem) + f53f15 = append(f53f15, f53f15elem) } - f52.ProcessorFeatures = f52f15 + f53.ProcessorFeatures = f53f15 } if elem.PendingModifiedValues.ResumeFullAutomationModeTime != nil { - f52.ResumeFullAutomationModeTime = &metav1.Time{*elem.PendingModifiedValues.ResumeFullAutomationModeTime} + f53.ResumeFullAutomationModeTime = &metav1.Time{*elem.PendingModifiedValues.ResumeFullAutomationModeTime} } if elem.PendingModifiedValues.StorageType != nil { - f52.StorageType = elem.PendingModifiedValues.StorageType + f53.StorageType = elem.PendingModifiedValues.StorageType } - ko.Status.PendingModifiedValues = f52 + ko.Status.PendingModifiedValues = f53 } else { ko.Status.PendingModifiedValues = nil } @@ -606,18 +611,18 @@ func (rm *resourceManager) sdkFind( ko.Spec.PreferredMaintenanceWindow = nil } if elem.ProcessorFeatures != nil { - f58 := []*svcapitypes.ProcessorFeature{} - for _, f58iter := range elem.ProcessorFeatures { - f58elem := &svcapitypes.ProcessorFeature{} - if f58iter.Name != nil { - f58elem.Name = f58iter.Name + f59 := []*svcapitypes.ProcessorFeature{} + for _, f59iter := range elem.ProcessorFeatures { + f59elem := &svcapitypes.ProcessorFeature{} + if f59iter.Name != nil { + f59elem.Name = f59iter.Name } - if f58iter.Value != nil { - f58elem.Value = f58iter.Value + if f59iter.Value != nil { + f59elem.Value = f59iter.Value } - f58 = append(f58, f58elem) + f59 = append(f59, f59elem) } - ko.Spec.ProcessorFeatures = f58 + ko.Spec.ProcessorFeatures = f59 } else { ko.Spec.ProcessorFeatures = nil } @@ -632,24 +637,24 @@ func (rm *resourceManager) sdkFind( ko.Spec.PubliclyAccessible = nil } if elem.ReadReplicaDBClusterIdentifiers != nil { - f61 := []*string{} - for _, f61iter := range elem.ReadReplicaDBClusterIdentifiers { - var f61elem string - f61elem = *f61iter - f61 = append(f61, &f61elem) + f62 := []*string{} + for _, f62iter := range elem.ReadReplicaDBClusterIdentifiers { + var f62elem string + f62elem = *f62iter + f62 = append(f62, &f62elem) } - ko.Status.ReadReplicaDBClusterIdentifiers = f61 + ko.Status.ReadReplicaDBClusterIdentifiers = f62 } else { ko.Status.ReadReplicaDBClusterIdentifiers = nil } if elem.ReadReplicaDBInstanceIdentifiers != nil { - f62 := []*string{} - for _, f62iter := range elem.ReadReplicaDBInstanceIdentifiers { - var f62elem string - f62elem = *f62iter - f62 = append(f62, &f62elem) + f63 := []*string{} + for _, f63iter := range elem.ReadReplicaDBInstanceIdentifiers { + var f63elem string + f63elem = *f63iter + f63 = append(f63, &f63elem) } - ko.Status.ReadReplicaDBInstanceIdentifiers = f62 + ko.Status.ReadReplicaDBInstanceIdentifiers = f63 } else { ko.Status.ReadReplicaDBInstanceIdentifiers = nil } @@ -674,24 +679,24 @@ func (rm *resourceManager) sdkFind( ko.Status.SecondaryAvailabilityZone = nil } if elem.StatusInfos != nil { - f67 := []*svcapitypes.DBInstanceStatusInfo{} - for _, f67iter := range elem.StatusInfos { - f67elem := &svcapitypes.DBInstanceStatusInfo{} - if f67iter.Message != nil { - f67elem.Message = f67iter.Message + f68 := []*svcapitypes.DBInstanceStatusInfo{} + for _, f68iter := range elem.StatusInfos { + f68elem := &svcapitypes.DBInstanceStatusInfo{} + if f68iter.Message != nil { + f68elem.Message = f68iter.Message } - if f67iter.Normal != nil { - f67elem.Normal = f67iter.Normal + if f68iter.Normal != nil { + f68elem.Normal = f68iter.Normal } - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.StatusType != nil { - f67elem.StatusType = f67iter.StatusType + if f68iter.StatusType != nil { + f68elem.StatusType = f68iter.StatusType } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - ko.Status.StatusInfos = f67 + ko.Status.StatusInfos = f68 } else { ko.Status.StatusInfos = nil } @@ -716,18 +721,18 @@ func (rm *resourceManager) sdkFind( ko.Spec.Timezone = nil } if elem.VpcSecurityGroups != nil { - f72 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f72iter := range elem.VpcSecurityGroups { - f72elem := &svcapitypes.VPCSecurityGroupMembership{} - if f72iter.Status != nil { - f72elem.Status = f72iter.Status + f73 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f73iter := range elem.VpcSecurityGroups { + f73elem := &svcapitypes.VPCSecurityGroupMembership{} + if f73iter.Status != nil { + f73elem.Status = f73iter.Status } - if f72iter.VpcSecurityGroupId != nil { - f72elem.VPCSecurityGroupID = f72iter.VpcSecurityGroupId + if f73iter.VpcSecurityGroupId != nil { + f73elem.VPCSecurityGroupID = f73iter.VpcSecurityGroupId } - f72 = append(f72, f72elem) + f73 = append(f73, f73elem) } - ko.Status.VPCSecurityGroups = f72 + ko.Status.VPCSecurityGroups = f73 } else { ko.Status.VPCSecurityGroups = nil } @@ -838,6 +843,11 @@ func (rm *resourceManager) sdkCreate( } else { ko.Status.ActivityStreamMode = nil } + if resp.DBInstance.ActivityStreamPolicyStatus != nil { + ko.Status.ActivityStreamPolicyStatus = resp.DBInstance.ActivityStreamPolicyStatus + } else { + ko.Status.ActivityStreamPolicyStatus = nil + } if resp.DBInstance.ActivityStreamStatus != nil { ko.Status.ActivityStreamStatus = resp.DBInstance.ActivityStreamStatus } else { @@ -849,21 +859,21 @@ func (rm *resourceManager) sdkCreate( ko.Spec.AllocatedStorage = nil } if resp.DBInstance.AssociatedRoles != nil { - f6 := []*svcapitypes.DBInstanceRole{} - for _, f6iter := range resp.DBInstance.AssociatedRoles { - f6elem := &svcapitypes.DBInstanceRole{} - if f6iter.FeatureName != nil { - f6elem.FeatureName = f6iter.FeatureName + f7 := []*svcapitypes.DBInstanceRole{} + for _, f7iter := range resp.DBInstance.AssociatedRoles { + f7elem := &svcapitypes.DBInstanceRole{} + if f7iter.FeatureName != nil { + f7elem.FeatureName = f7iter.FeatureName } - if f6iter.RoleArn != nil { - f6elem.RoleARN = f6iter.RoleArn + if f7iter.RoleArn != nil { + f7elem.RoleARN = f7iter.RoleArn } - if f6iter.Status != nil { - f6elem.Status = f6iter.Status + if f7iter.Status != nil { + f7elem.Status = f7iter.Status } - f6 = append(f6, f6elem) + f7 = append(f7, f7elem) } - ko.Status.AssociatedRoles = f6 + ko.Status.AssociatedRoles = f7 } else { ko.Status.AssociatedRoles = nil } @@ -940,15 +950,15 @@ func (rm *resourceManager) sdkCreate( ko.Status.ACKResourceMetadata.ARN = &arn } if resp.DBInstance.DBInstanceAutomatedBackupsReplications != nil { - f21 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} - for _, f21iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { - f21elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} - if f21iter.DBInstanceAutomatedBackupsArn != nil { - f21elem.DBInstanceAutomatedBackupsARN = f21iter.DBInstanceAutomatedBackupsArn + f22 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} + for _, f22iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { + f22elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} + if f22iter.DBInstanceAutomatedBackupsArn != nil { + f22elem.DBInstanceAutomatedBackupsARN = f22iter.DBInstanceAutomatedBackupsArn } - f21 = append(f21, f21elem) + f22 = append(f22, f22elem) } - ko.Status.DBInstanceAutomatedBackupsReplications = f21 + ko.Status.DBInstanceAutomatedBackupsReplications = f22 } else { ko.Status.DBInstanceAutomatedBackupsReplications = nil } @@ -973,76 +983,76 @@ func (rm *resourceManager) sdkCreate( ko.Spec.DBName = nil } if resp.DBInstance.DBParameterGroups != nil { - f26 := []*svcapitypes.DBParameterGroupStatus_SDK{} - for _, f26iter := range resp.DBInstance.DBParameterGroups { - f26elem := &svcapitypes.DBParameterGroupStatus_SDK{} - if f26iter.DBParameterGroupName != nil { - f26elem.DBParameterGroupName = f26iter.DBParameterGroupName + f27 := []*svcapitypes.DBParameterGroupStatus_SDK{} + for _, f27iter := range resp.DBInstance.DBParameterGroups { + f27elem := &svcapitypes.DBParameterGroupStatus_SDK{} + if f27iter.DBParameterGroupName != nil { + f27elem.DBParameterGroupName = f27iter.DBParameterGroupName } - if f26iter.ParameterApplyStatus != nil { - f26elem.ParameterApplyStatus = f26iter.ParameterApplyStatus + if f27iter.ParameterApplyStatus != nil { + f27elem.ParameterApplyStatus = f27iter.ParameterApplyStatus } - f26 = append(f26, f26elem) + f27 = append(f27, f27elem) } - ko.Status.DBParameterGroups = f26 + ko.Status.DBParameterGroups = f27 } else { ko.Status.DBParameterGroups = nil } if resp.DBInstance.DBSubnetGroup != nil { - f27 := &svcapitypes.DBSubnetGroup_SDK{} + f28 := &svcapitypes.DBSubnetGroup_SDK{} if resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn != nil { - f27.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn + f28.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription != nil { - f27.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription + f28.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupName != nil { - f27.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName + f28.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName } if resp.DBInstance.DBSubnetGroup.SubnetGroupStatus != nil { - f27.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus + f28.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus } if resp.DBInstance.DBSubnetGroup.Subnets != nil { - f27f4 := []*svcapitypes.Subnet{} - for _, f27f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { - f27f4elem := &svcapitypes.Subnet{} - if f27f4iter.SubnetAvailabilityZone != nil { - f27f4elemf0 := &svcapitypes.AvailabilityZone{} - if f27f4iter.SubnetAvailabilityZone.Name != nil { - f27f4elemf0.Name = f27f4iter.SubnetAvailabilityZone.Name + f28f4 := []*svcapitypes.Subnet{} + for _, f28f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { + f28f4elem := &svcapitypes.Subnet{} + if f28f4iter.SubnetAvailabilityZone != nil { + f28f4elemf0 := &svcapitypes.AvailabilityZone{} + if f28f4iter.SubnetAvailabilityZone.Name != nil { + f28f4elemf0.Name = f28f4iter.SubnetAvailabilityZone.Name } - f27f4elem.SubnetAvailabilityZone = f27f4elemf0 + f28f4elem.SubnetAvailabilityZone = f28f4elemf0 } - if f27f4iter.SubnetIdentifier != nil { - f27f4elem.SubnetIdentifier = f27f4iter.SubnetIdentifier + if f28f4iter.SubnetIdentifier != nil { + f28f4elem.SubnetIdentifier = f28f4iter.SubnetIdentifier } - if f27f4iter.SubnetOutpost != nil { - f27f4elemf2 := &svcapitypes.Outpost{} - if f27f4iter.SubnetOutpost.Arn != nil { - f27f4elemf2.ARN = f27f4iter.SubnetOutpost.Arn + if f28f4iter.SubnetOutpost != nil { + f28f4elemf2 := &svcapitypes.Outpost{} + if f28f4iter.SubnetOutpost.Arn != nil { + f28f4elemf2.ARN = f28f4iter.SubnetOutpost.Arn } - f27f4elem.SubnetOutpost = f27f4elemf2 + f28f4elem.SubnetOutpost = f28f4elemf2 } - if f27f4iter.SubnetStatus != nil { - f27f4elem.SubnetStatus = f27f4iter.SubnetStatus + if f28f4iter.SubnetStatus != nil { + f28f4elem.SubnetStatus = f28f4iter.SubnetStatus } - f27f4 = append(f27f4, f27f4elem) + f28f4 = append(f28f4, f28f4elem) } - f27.Subnets = f27f4 + f28.Subnets = f28f4 } if resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes != nil { - f27f5 := []*string{} - for _, f27f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { - var f27f5elem string - f27f5elem = *f27f5iter - f27f5 = append(f27f5, &f27f5elem) + f28f5 := []*string{} + for _, f28f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { + var f28f5elem string + f28f5elem = *f28f5iter + f28f5 = append(f28f5, &f28f5elem) } - f27.SupportedNetworkTypes = f27f5 + f28.SupportedNetworkTypes = f28f5 } if resp.DBInstance.DBSubnetGroup.VpcId != nil { - f27.VPCID = resp.DBInstance.DBSubnetGroup.VpcId + f28.VPCID = resp.DBInstance.DBSubnetGroup.VpcId } - ko.Status.DBSubnetGroup = f27 + ko.Status.DBSubnetGroup = f28 } else { ko.Status.DBSubnetGroup = nil } @@ -1062,50 +1072,50 @@ func (rm *resourceManager) sdkCreate( ko.Spec.DeletionProtection = nil } if resp.DBInstance.DomainMemberships != nil { - f31 := []*svcapitypes.DomainMembership{} - for _, f31iter := range resp.DBInstance.DomainMemberships { - f31elem := &svcapitypes.DomainMembership{} - if f31iter.Domain != nil { - f31elem.Domain = f31iter.Domain + f32 := []*svcapitypes.DomainMembership{} + for _, f32iter := range resp.DBInstance.DomainMemberships { + f32elem := &svcapitypes.DomainMembership{} + if f32iter.Domain != nil { + f32elem.Domain = f32iter.Domain } - if f31iter.FQDN != nil { - f31elem.FQDN = f31iter.FQDN + if f32iter.FQDN != nil { + f32elem.FQDN = f32iter.FQDN } - if f31iter.IAMRoleName != nil { - f31elem.IAMRoleName = f31iter.IAMRoleName + if f32iter.IAMRoleName != nil { + f32elem.IAMRoleName = f32iter.IAMRoleName } - if f31iter.Status != nil { - f31elem.Status = f31iter.Status + if f32iter.Status != nil { + f32elem.Status = f32iter.Status } - f31 = append(f31, f31elem) + f32 = append(f32, f32elem) } - ko.Status.DomainMemberships = f31 + ko.Status.DomainMemberships = f32 } else { ko.Status.DomainMemberships = nil } if resp.DBInstance.EnabledCloudwatchLogsExports != nil { - f32 := []*string{} - for _, f32iter := range resp.DBInstance.EnabledCloudwatchLogsExports { - var f32elem string - f32elem = *f32iter - f32 = append(f32, &f32elem) + f33 := []*string{} + for _, f33iter := range resp.DBInstance.EnabledCloudwatchLogsExports { + var f33elem string + f33elem = *f33iter + f33 = append(f33, &f33elem) } - ko.Status.EnabledCloudwatchLogsExports = f32 + ko.Status.EnabledCloudwatchLogsExports = f33 } else { ko.Status.EnabledCloudwatchLogsExports = nil } if resp.DBInstance.Endpoint != nil { - f33 := &svcapitypes.Endpoint{} + f34 := &svcapitypes.Endpoint{} if resp.DBInstance.Endpoint.Address != nil { - f33.Address = resp.DBInstance.Endpoint.Address + f34.Address = resp.DBInstance.Endpoint.Address } if resp.DBInstance.Endpoint.HostedZoneId != nil { - f33.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId + f34.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId } if resp.DBInstance.Endpoint.Port != nil { - f33.Port = resp.DBInstance.Endpoint.Port + f34.Port = resp.DBInstance.Endpoint.Port } - ko.Status.Endpoint = f33 + ko.Status.Endpoint = f34 } else { ko.Status.Endpoint = nil } @@ -1155,17 +1165,17 @@ func (rm *resourceManager) sdkCreate( ko.Spec.LicenseModel = nil } if resp.DBInstance.ListenerEndpoint != nil { - f43 := &svcapitypes.Endpoint{} + f44 := &svcapitypes.Endpoint{} if resp.DBInstance.ListenerEndpoint.Address != nil { - f43.Address = resp.DBInstance.ListenerEndpoint.Address + f44.Address = resp.DBInstance.ListenerEndpoint.Address } if resp.DBInstance.ListenerEndpoint.HostedZoneId != nil { - f43.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId + f44.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId } if resp.DBInstance.ListenerEndpoint.Port != nil { - f43.Port = resp.DBInstance.ListenerEndpoint.Port + f44.Port = resp.DBInstance.ListenerEndpoint.Port } - ko.Status.ListenerEndpoint = f43 + ko.Status.ListenerEndpoint = f44 } else { ko.Status.ListenerEndpoint = nil } @@ -1205,108 +1215,108 @@ func (rm *resourceManager) sdkCreate( ko.Spec.NetworkType = nil } if resp.DBInstance.OptionGroupMemberships != nil { - f51 := []*svcapitypes.OptionGroupMembership{} - for _, f51iter := range resp.DBInstance.OptionGroupMemberships { - f51elem := &svcapitypes.OptionGroupMembership{} - if f51iter.OptionGroupName != nil { - f51elem.OptionGroupName = f51iter.OptionGroupName + f52 := []*svcapitypes.OptionGroupMembership{} + for _, f52iter := range resp.DBInstance.OptionGroupMemberships { + f52elem := &svcapitypes.OptionGroupMembership{} + if f52iter.OptionGroupName != nil { + f52elem.OptionGroupName = f52iter.OptionGroupName } - if f51iter.Status != nil { - f51elem.Status = f51iter.Status + if f52iter.Status != nil { + f52elem.Status = f52iter.Status } - f51 = append(f51, f51elem) + f52 = append(f52, f52elem) } - ko.Status.OptionGroupMemberships = f51 + ko.Status.OptionGroupMemberships = f52 } else { ko.Status.OptionGroupMemberships = nil } if resp.DBInstance.PendingModifiedValues != nil { - f52 := &svcapitypes.PendingModifiedValues{} + f53 := &svcapitypes.PendingModifiedValues{} if resp.DBInstance.PendingModifiedValues.AllocatedStorage != nil { - f52.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage + f53.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage } if resp.DBInstance.PendingModifiedValues.AutomationMode != nil { - f52.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode + f53.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode } if resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod != nil { - f52.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod + f53.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod } if resp.DBInstance.PendingModifiedValues.CACertificateIdentifier != nil { - f52.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier + f53.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier } if resp.DBInstance.PendingModifiedValues.DBInstanceClass != nil { - f52.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass + f53.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass } if resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier != nil { - f52.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier + f53.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier } if resp.DBInstance.PendingModifiedValues.DBSubnetGroupName != nil { - f52.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName + f53.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName } if resp.DBInstance.PendingModifiedValues.EngineVersion != nil { - f52.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion + f53.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion } if resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f52.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f53.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if resp.DBInstance.PendingModifiedValues.Iops != nil { - f52.IOPS = resp.DBInstance.PendingModifiedValues.Iops + f53.IOPS = resp.DBInstance.PendingModifiedValues.Iops } if resp.DBInstance.PendingModifiedValues.LicenseModel != nil { - f52.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel + f53.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel } if resp.DBInstance.PendingModifiedValues.MasterUserPassword != nil { - f52.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword + f53.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword } if resp.DBInstance.PendingModifiedValues.MultiAZ != nil { - f52.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ + f53.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f52f13 := &svcapitypes.PendingCloudwatchLogsExports{} + f53f13 := &svcapitypes.PendingCloudwatchLogsExports{} if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f52f13f0 := []*string{} - for _, f52f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f52f13f0elem string - f52f13f0elem = *f52f13f0iter - f52f13f0 = append(f52f13f0, &f52f13f0elem) + f53f13f0 := []*string{} + for _, f53f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f53f13f0elem string + f53f13f0elem = *f53f13f0iter + f53f13f0 = append(f53f13f0, &f53f13f0elem) } - f52f13.LogTypesToDisable = f52f13f0 + f53f13.LogTypesToDisable = f53f13f0 } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f52f13f1 := []*string{} - for _, f52f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f52f13f1elem string - f52f13f1elem = *f52f13f1iter - f52f13f1 = append(f52f13f1, &f52f13f1elem) + f53f13f1 := []*string{} + for _, f53f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f53f13f1elem string + f53f13f1elem = *f53f13f1iter + f53f13f1 = append(f53f13f1, &f53f13f1elem) } - f52f13.LogTypesToEnable = f52f13f1 + f53f13.LogTypesToEnable = f53f13f1 } - f52.PendingCloudwatchLogsExports = f52f13 + f53.PendingCloudwatchLogsExports = f53f13 } if resp.DBInstance.PendingModifiedValues.Port != nil { - f52.Port = resp.DBInstance.PendingModifiedValues.Port + f53.Port = resp.DBInstance.PendingModifiedValues.Port } if resp.DBInstance.PendingModifiedValues.ProcessorFeatures != nil { - f52f15 := []*svcapitypes.ProcessorFeature{} - for _, f52f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { - f52f15elem := &svcapitypes.ProcessorFeature{} - if f52f15iter.Name != nil { - f52f15elem.Name = f52f15iter.Name + f53f15 := []*svcapitypes.ProcessorFeature{} + for _, f53f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { + f53f15elem := &svcapitypes.ProcessorFeature{} + if f53f15iter.Name != nil { + f53f15elem.Name = f53f15iter.Name } - if f52f15iter.Value != nil { - f52f15elem.Value = f52f15iter.Value + if f53f15iter.Value != nil { + f53f15elem.Value = f53f15iter.Value } - f52f15 = append(f52f15, f52f15elem) + f53f15 = append(f53f15, f53f15elem) } - f52.ProcessorFeatures = f52f15 + f53.ProcessorFeatures = f53f15 } if resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime != nil { - f52.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} + f53.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} } if resp.DBInstance.PendingModifiedValues.StorageType != nil { - f52.StorageType = resp.DBInstance.PendingModifiedValues.StorageType + f53.StorageType = resp.DBInstance.PendingModifiedValues.StorageType } - ko.Status.PendingModifiedValues = f52 + ko.Status.PendingModifiedValues = f53 } else { ko.Status.PendingModifiedValues = nil } @@ -1336,18 +1346,18 @@ func (rm *resourceManager) sdkCreate( ko.Spec.PreferredMaintenanceWindow = nil } if resp.DBInstance.ProcessorFeatures != nil { - f58 := []*svcapitypes.ProcessorFeature{} - for _, f58iter := range resp.DBInstance.ProcessorFeatures { - f58elem := &svcapitypes.ProcessorFeature{} - if f58iter.Name != nil { - f58elem.Name = f58iter.Name + f59 := []*svcapitypes.ProcessorFeature{} + for _, f59iter := range resp.DBInstance.ProcessorFeatures { + f59elem := &svcapitypes.ProcessorFeature{} + if f59iter.Name != nil { + f59elem.Name = f59iter.Name } - if f58iter.Value != nil { - f58elem.Value = f58iter.Value + if f59iter.Value != nil { + f59elem.Value = f59iter.Value } - f58 = append(f58, f58elem) + f59 = append(f59, f59elem) } - ko.Spec.ProcessorFeatures = f58 + ko.Spec.ProcessorFeatures = f59 } else { ko.Spec.ProcessorFeatures = nil } @@ -1362,24 +1372,24 @@ func (rm *resourceManager) sdkCreate( ko.Spec.PubliclyAccessible = nil } if resp.DBInstance.ReadReplicaDBClusterIdentifiers != nil { - f61 := []*string{} - for _, f61iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { - var f61elem string - f61elem = *f61iter - f61 = append(f61, &f61elem) + f62 := []*string{} + for _, f62iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { + var f62elem string + f62elem = *f62iter + f62 = append(f62, &f62elem) } - ko.Status.ReadReplicaDBClusterIdentifiers = f61 + ko.Status.ReadReplicaDBClusterIdentifiers = f62 } else { ko.Status.ReadReplicaDBClusterIdentifiers = nil } if resp.DBInstance.ReadReplicaDBInstanceIdentifiers != nil { - f62 := []*string{} - for _, f62iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { - var f62elem string - f62elem = *f62iter - f62 = append(f62, &f62elem) + f63 := []*string{} + for _, f63iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { + var f63elem string + f63elem = *f63iter + f63 = append(f63, &f63elem) } - ko.Status.ReadReplicaDBInstanceIdentifiers = f62 + ko.Status.ReadReplicaDBInstanceIdentifiers = f63 } else { ko.Status.ReadReplicaDBInstanceIdentifiers = nil } @@ -1404,24 +1414,24 @@ func (rm *resourceManager) sdkCreate( ko.Status.SecondaryAvailabilityZone = nil } if resp.DBInstance.StatusInfos != nil { - f67 := []*svcapitypes.DBInstanceStatusInfo{} - for _, f67iter := range resp.DBInstance.StatusInfos { - f67elem := &svcapitypes.DBInstanceStatusInfo{} - if f67iter.Message != nil { - f67elem.Message = f67iter.Message + f68 := []*svcapitypes.DBInstanceStatusInfo{} + for _, f68iter := range resp.DBInstance.StatusInfos { + f68elem := &svcapitypes.DBInstanceStatusInfo{} + if f68iter.Message != nil { + f68elem.Message = f68iter.Message } - if f67iter.Normal != nil { - f67elem.Normal = f67iter.Normal + if f68iter.Normal != nil { + f68elem.Normal = f68iter.Normal } - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.StatusType != nil { - f67elem.StatusType = f67iter.StatusType + if f68iter.StatusType != nil { + f68elem.StatusType = f68iter.StatusType } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - ko.Status.StatusInfos = f67 + ko.Status.StatusInfos = f68 } else { ko.Status.StatusInfos = nil } @@ -1446,18 +1456,18 @@ func (rm *resourceManager) sdkCreate( ko.Spec.Timezone = nil } if resp.DBInstance.VpcSecurityGroups != nil { - f72 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f72iter := range resp.DBInstance.VpcSecurityGroups { - f72elem := &svcapitypes.VPCSecurityGroupMembership{} - if f72iter.Status != nil { - f72elem.Status = f72iter.Status + f73 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f73iter := range resp.DBInstance.VpcSecurityGroups { + f73elem := &svcapitypes.VPCSecurityGroupMembership{} + if f73iter.Status != nil { + f73elem.Status = f73iter.Status } - if f72iter.VpcSecurityGroupId != nil { - f72elem.VPCSecurityGroupID = f72iter.VpcSecurityGroupId + if f73iter.VpcSecurityGroupId != nil { + f73elem.VPCSecurityGroupID = f73iter.VpcSecurityGroupId } - f72 = append(f72, f72elem) + f73 = append(f73, f73elem) } - ko.Status.VPCSecurityGroups = f72 + ko.Status.VPCSecurityGroups = f73 } else { ko.Status.VPCSecurityGroups = nil } @@ -1796,6 +1806,11 @@ func (rm *resourceManager) sdkUpdate( } else { ko.Status.ActivityStreamMode = nil } + if resp.DBInstance.ActivityStreamPolicyStatus != nil { + ko.Status.ActivityStreamPolicyStatus = resp.DBInstance.ActivityStreamPolicyStatus + } else { + ko.Status.ActivityStreamPolicyStatus = nil + } if resp.DBInstance.ActivityStreamStatus != nil { ko.Status.ActivityStreamStatus = resp.DBInstance.ActivityStreamStatus } else { @@ -1807,21 +1822,21 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.AllocatedStorage = nil } if resp.DBInstance.AssociatedRoles != nil { - f6 := []*svcapitypes.DBInstanceRole{} - for _, f6iter := range resp.DBInstance.AssociatedRoles { - f6elem := &svcapitypes.DBInstanceRole{} - if f6iter.FeatureName != nil { - f6elem.FeatureName = f6iter.FeatureName + f7 := []*svcapitypes.DBInstanceRole{} + for _, f7iter := range resp.DBInstance.AssociatedRoles { + f7elem := &svcapitypes.DBInstanceRole{} + if f7iter.FeatureName != nil { + f7elem.FeatureName = f7iter.FeatureName } - if f6iter.RoleArn != nil { - f6elem.RoleARN = f6iter.RoleArn + if f7iter.RoleArn != nil { + f7elem.RoleARN = f7iter.RoleArn } - if f6iter.Status != nil { - f6elem.Status = f6iter.Status + if f7iter.Status != nil { + f7elem.Status = f7iter.Status } - f6 = append(f6, f6elem) + f7 = append(f7, f7elem) } - ko.Status.AssociatedRoles = f6 + ko.Status.AssociatedRoles = f7 } else { ko.Status.AssociatedRoles = nil } @@ -1898,15 +1913,15 @@ func (rm *resourceManager) sdkUpdate( ko.Status.ACKResourceMetadata.ARN = &arn } if resp.DBInstance.DBInstanceAutomatedBackupsReplications != nil { - f21 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} - for _, f21iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { - f21elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} - if f21iter.DBInstanceAutomatedBackupsArn != nil { - f21elem.DBInstanceAutomatedBackupsARN = f21iter.DBInstanceAutomatedBackupsArn + f22 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} + for _, f22iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { + f22elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} + if f22iter.DBInstanceAutomatedBackupsArn != nil { + f22elem.DBInstanceAutomatedBackupsARN = f22iter.DBInstanceAutomatedBackupsArn } - f21 = append(f21, f21elem) + f22 = append(f22, f22elem) } - ko.Status.DBInstanceAutomatedBackupsReplications = f21 + ko.Status.DBInstanceAutomatedBackupsReplications = f22 } else { ko.Status.DBInstanceAutomatedBackupsReplications = nil } @@ -1931,76 +1946,76 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.DBName = nil } if resp.DBInstance.DBParameterGroups != nil { - f26 := []*svcapitypes.DBParameterGroupStatus_SDK{} - for _, f26iter := range resp.DBInstance.DBParameterGroups { - f26elem := &svcapitypes.DBParameterGroupStatus_SDK{} - if f26iter.DBParameterGroupName != nil { - f26elem.DBParameterGroupName = f26iter.DBParameterGroupName + f27 := []*svcapitypes.DBParameterGroupStatus_SDK{} + for _, f27iter := range resp.DBInstance.DBParameterGroups { + f27elem := &svcapitypes.DBParameterGroupStatus_SDK{} + if f27iter.DBParameterGroupName != nil { + f27elem.DBParameterGroupName = f27iter.DBParameterGroupName } - if f26iter.ParameterApplyStatus != nil { - f26elem.ParameterApplyStatus = f26iter.ParameterApplyStatus + if f27iter.ParameterApplyStatus != nil { + f27elem.ParameterApplyStatus = f27iter.ParameterApplyStatus } - f26 = append(f26, f26elem) + f27 = append(f27, f27elem) } - ko.Status.DBParameterGroups = f26 + ko.Status.DBParameterGroups = f27 } else { ko.Status.DBParameterGroups = nil } if resp.DBInstance.DBSubnetGroup != nil { - f27 := &svcapitypes.DBSubnetGroup_SDK{} + f28 := &svcapitypes.DBSubnetGroup_SDK{} if resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn != nil { - f27.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn + f28.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription != nil { - f27.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription + f28.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupName != nil { - f27.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName + f28.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName } if resp.DBInstance.DBSubnetGroup.SubnetGroupStatus != nil { - f27.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus + f28.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus } if resp.DBInstance.DBSubnetGroup.Subnets != nil { - f27f4 := []*svcapitypes.Subnet{} - for _, f27f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { - f27f4elem := &svcapitypes.Subnet{} - if f27f4iter.SubnetAvailabilityZone != nil { - f27f4elemf0 := &svcapitypes.AvailabilityZone{} - if f27f4iter.SubnetAvailabilityZone.Name != nil { - f27f4elemf0.Name = f27f4iter.SubnetAvailabilityZone.Name + f28f4 := []*svcapitypes.Subnet{} + for _, f28f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { + f28f4elem := &svcapitypes.Subnet{} + if f28f4iter.SubnetAvailabilityZone != nil { + f28f4elemf0 := &svcapitypes.AvailabilityZone{} + if f28f4iter.SubnetAvailabilityZone.Name != nil { + f28f4elemf0.Name = f28f4iter.SubnetAvailabilityZone.Name } - f27f4elem.SubnetAvailabilityZone = f27f4elemf0 + f28f4elem.SubnetAvailabilityZone = f28f4elemf0 } - if f27f4iter.SubnetIdentifier != nil { - f27f4elem.SubnetIdentifier = f27f4iter.SubnetIdentifier + if f28f4iter.SubnetIdentifier != nil { + f28f4elem.SubnetIdentifier = f28f4iter.SubnetIdentifier } - if f27f4iter.SubnetOutpost != nil { - f27f4elemf2 := &svcapitypes.Outpost{} - if f27f4iter.SubnetOutpost.Arn != nil { - f27f4elemf2.ARN = f27f4iter.SubnetOutpost.Arn + if f28f4iter.SubnetOutpost != nil { + f28f4elemf2 := &svcapitypes.Outpost{} + if f28f4iter.SubnetOutpost.Arn != nil { + f28f4elemf2.ARN = f28f4iter.SubnetOutpost.Arn } - f27f4elem.SubnetOutpost = f27f4elemf2 + f28f4elem.SubnetOutpost = f28f4elemf2 } - if f27f4iter.SubnetStatus != nil { - f27f4elem.SubnetStatus = f27f4iter.SubnetStatus + if f28f4iter.SubnetStatus != nil { + f28f4elem.SubnetStatus = f28f4iter.SubnetStatus } - f27f4 = append(f27f4, f27f4elem) + f28f4 = append(f28f4, f28f4elem) } - f27.Subnets = f27f4 + f28.Subnets = f28f4 } if resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes != nil { - f27f5 := []*string{} - for _, f27f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { - var f27f5elem string - f27f5elem = *f27f5iter - f27f5 = append(f27f5, &f27f5elem) + f28f5 := []*string{} + for _, f28f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { + var f28f5elem string + f28f5elem = *f28f5iter + f28f5 = append(f28f5, &f28f5elem) } - f27.SupportedNetworkTypes = f27f5 + f28.SupportedNetworkTypes = f28f5 } if resp.DBInstance.DBSubnetGroup.VpcId != nil { - f27.VPCID = resp.DBInstance.DBSubnetGroup.VpcId + f28.VPCID = resp.DBInstance.DBSubnetGroup.VpcId } - ko.Status.DBSubnetGroup = f27 + ko.Status.DBSubnetGroup = f28 } else { ko.Status.DBSubnetGroup = nil } @@ -2020,50 +2035,50 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.DeletionProtection = nil } if resp.DBInstance.DomainMemberships != nil { - f31 := []*svcapitypes.DomainMembership{} - for _, f31iter := range resp.DBInstance.DomainMemberships { - f31elem := &svcapitypes.DomainMembership{} - if f31iter.Domain != nil { - f31elem.Domain = f31iter.Domain + f32 := []*svcapitypes.DomainMembership{} + for _, f32iter := range resp.DBInstance.DomainMemberships { + f32elem := &svcapitypes.DomainMembership{} + if f32iter.Domain != nil { + f32elem.Domain = f32iter.Domain } - if f31iter.FQDN != nil { - f31elem.FQDN = f31iter.FQDN + if f32iter.FQDN != nil { + f32elem.FQDN = f32iter.FQDN } - if f31iter.IAMRoleName != nil { - f31elem.IAMRoleName = f31iter.IAMRoleName + if f32iter.IAMRoleName != nil { + f32elem.IAMRoleName = f32iter.IAMRoleName } - if f31iter.Status != nil { - f31elem.Status = f31iter.Status + if f32iter.Status != nil { + f32elem.Status = f32iter.Status } - f31 = append(f31, f31elem) + f32 = append(f32, f32elem) } - ko.Status.DomainMemberships = f31 + ko.Status.DomainMemberships = f32 } else { ko.Status.DomainMemberships = nil } if resp.DBInstance.EnabledCloudwatchLogsExports != nil { - f32 := []*string{} - for _, f32iter := range resp.DBInstance.EnabledCloudwatchLogsExports { - var f32elem string - f32elem = *f32iter - f32 = append(f32, &f32elem) + f33 := []*string{} + for _, f33iter := range resp.DBInstance.EnabledCloudwatchLogsExports { + var f33elem string + f33elem = *f33iter + f33 = append(f33, &f33elem) } - ko.Status.EnabledCloudwatchLogsExports = f32 + ko.Status.EnabledCloudwatchLogsExports = f33 } else { ko.Status.EnabledCloudwatchLogsExports = nil } if resp.DBInstance.Endpoint != nil { - f33 := &svcapitypes.Endpoint{} + f34 := &svcapitypes.Endpoint{} if resp.DBInstance.Endpoint.Address != nil { - f33.Address = resp.DBInstance.Endpoint.Address + f34.Address = resp.DBInstance.Endpoint.Address } if resp.DBInstance.Endpoint.HostedZoneId != nil { - f33.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId + f34.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId } if resp.DBInstance.Endpoint.Port != nil { - f33.Port = resp.DBInstance.Endpoint.Port + f34.Port = resp.DBInstance.Endpoint.Port } - ko.Status.Endpoint = f33 + ko.Status.Endpoint = f34 } else { ko.Status.Endpoint = nil } @@ -2113,17 +2128,17 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.LicenseModel = nil } if resp.DBInstance.ListenerEndpoint != nil { - f43 := &svcapitypes.Endpoint{} + f44 := &svcapitypes.Endpoint{} if resp.DBInstance.ListenerEndpoint.Address != nil { - f43.Address = resp.DBInstance.ListenerEndpoint.Address + f44.Address = resp.DBInstance.ListenerEndpoint.Address } if resp.DBInstance.ListenerEndpoint.HostedZoneId != nil { - f43.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId + f44.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId } if resp.DBInstance.ListenerEndpoint.Port != nil { - f43.Port = resp.DBInstance.ListenerEndpoint.Port + f44.Port = resp.DBInstance.ListenerEndpoint.Port } - ko.Status.ListenerEndpoint = f43 + ko.Status.ListenerEndpoint = f44 } else { ko.Status.ListenerEndpoint = nil } @@ -2163,108 +2178,108 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.NetworkType = nil } if resp.DBInstance.OptionGroupMemberships != nil { - f51 := []*svcapitypes.OptionGroupMembership{} - for _, f51iter := range resp.DBInstance.OptionGroupMemberships { - f51elem := &svcapitypes.OptionGroupMembership{} - if f51iter.OptionGroupName != nil { - f51elem.OptionGroupName = f51iter.OptionGroupName + f52 := []*svcapitypes.OptionGroupMembership{} + for _, f52iter := range resp.DBInstance.OptionGroupMemberships { + f52elem := &svcapitypes.OptionGroupMembership{} + if f52iter.OptionGroupName != nil { + f52elem.OptionGroupName = f52iter.OptionGroupName } - if f51iter.Status != nil { - f51elem.Status = f51iter.Status + if f52iter.Status != nil { + f52elem.Status = f52iter.Status } - f51 = append(f51, f51elem) + f52 = append(f52, f52elem) } - ko.Status.OptionGroupMemberships = f51 + ko.Status.OptionGroupMemberships = f52 } else { ko.Status.OptionGroupMemberships = nil } if resp.DBInstance.PendingModifiedValues != nil { - f52 := &svcapitypes.PendingModifiedValues{} + f53 := &svcapitypes.PendingModifiedValues{} if resp.DBInstance.PendingModifiedValues.AllocatedStorage != nil { - f52.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage + f53.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage } if resp.DBInstance.PendingModifiedValues.AutomationMode != nil { - f52.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode + f53.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode } if resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod != nil { - f52.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod + f53.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod } if resp.DBInstance.PendingModifiedValues.CACertificateIdentifier != nil { - f52.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier + f53.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier } if resp.DBInstance.PendingModifiedValues.DBInstanceClass != nil { - f52.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass + f53.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass } if resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier != nil { - f52.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier + f53.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier } if resp.DBInstance.PendingModifiedValues.DBSubnetGroupName != nil { - f52.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName + f53.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName } if resp.DBInstance.PendingModifiedValues.EngineVersion != nil { - f52.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion + f53.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion } if resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f52.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f53.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if resp.DBInstance.PendingModifiedValues.Iops != nil { - f52.IOPS = resp.DBInstance.PendingModifiedValues.Iops + f53.IOPS = resp.DBInstance.PendingModifiedValues.Iops } if resp.DBInstance.PendingModifiedValues.LicenseModel != nil { - f52.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel + f53.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel } if resp.DBInstance.PendingModifiedValues.MasterUserPassword != nil { - f52.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword + f53.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword } if resp.DBInstance.PendingModifiedValues.MultiAZ != nil { - f52.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ + f53.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f52f13 := &svcapitypes.PendingCloudwatchLogsExports{} + f53f13 := &svcapitypes.PendingCloudwatchLogsExports{} if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f52f13f0 := []*string{} - for _, f52f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f52f13f0elem string - f52f13f0elem = *f52f13f0iter - f52f13f0 = append(f52f13f0, &f52f13f0elem) + f53f13f0 := []*string{} + for _, f53f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f53f13f0elem string + f53f13f0elem = *f53f13f0iter + f53f13f0 = append(f53f13f0, &f53f13f0elem) } - f52f13.LogTypesToDisable = f52f13f0 + f53f13.LogTypesToDisable = f53f13f0 } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f52f13f1 := []*string{} - for _, f52f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f52f13f1elem string - f52f13f1elem = *f52f13f1iter - f52f13f1 = append(f52f13f1, &f52f13f1elem) + f53f13f1 := []*string{} + for _, f53f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f53f13f1elem string + f53f13f1elem = *f53f13f1iter + f53f13f1 = append(f53f13f1, &f53f13f1elem) } - f52f13.LogTypesToEnable = f52f13f1 + f53f13.LogTypesToEnable = f53f13f1 } - f52.PendingCloudwatchLogsExports = f52f13 + f53.PendingCloudwatchLogsExports = f53f13 } if resp.DBInstance.PendingModifiedValues.Port != nil { - f52.Port = resp.DBInstance.PendingModifiedValues.Port + f53.Port = resp.DBInstance.PendingModifiedValues.Port } if resp.DBInstance.PendingModifiedValues.ProcessorFeatures != nil { - f52f15 := []*svcapitypes.ProcessorFeature{} - for _, f52f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { - f52f15elem := &svcapitypes.ProcessorFeature{} - if f52f15iter.Name != nil { - f52f15elem.Name = f52f15iter.Name + f53f15 := []*svcapitypes.ProcessorFeature{} + for _, f53f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { + f53f15elem := &svcapitypes.ProcessorFeature{} + if f53f15iter.Name != nil { + f53f15elem.Name = f53f15iter.Name } - if f52f15iter.Value != nil { - f52f15elem.Value = f52f15iter.Value + if f53f15iter.Value != nil { + f53f15elem.Value = f53f15iter.Value } - f52f15 = append(f52f15, f52f15elem) + f53f15 = append(f53f15, f53f15elem) } - f52.ProcessorFeatures = f52f15 + f53.ProcessorFeatures = f53f15 } if resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime != nil { - f52.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} + f53.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} } if resp.DBInstance.PendingModifiedValues.StorageType != nil { - f52.StorageType = resp.DBInstance.PendingModifiedValues.StorageType + f53.StorageType = resp.DBInstance.PendingModifiedValues.StorageType } - ko.Status.PendingModifiedValues = f52 + ko.Status.PendingModifiedValues = f53 } else { ko.Status.PendingModifiedValues = nil } @@ -2294,18 +2309,18 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.PreferredMaintenanceWindow = nil } if resp.DBInstance.ProcessorFeatures != nil { - f58 := []*svcapitypes.ProcessorFeature{} - for _, f58iter := range resp.DBInstance.ProcessorFeatures { - f58elem := &svcapitypes.ProcessorFeature{} - if f58iter.Name != nil { - f58elem.Name = f58iter.Name + f59 := []*svcapitypes.ProcessorFeature{} + for _, f59iter := range resp.DBInstance.ProcessorFeatures { + f59elem := &svcapitypes.ProcessorFeature{} + if f59iter.Name != nil { + f59elem.Name = f59iter.Name } - if f58iter.Value != nil { - f58elem.Value = f58iter.Value + if f59iter.Value != nil { + f59elem.Value = f59iter.Value } - f58 = append(f58, f58elem) + f59 = append(f59, f59elem) } - ko.Spec.ProcessorFeatures = f58 + ko.Spec.ProcessorFeatures = f59 } else { ko.Spec.ProcessorFeatures = nil } @@ -2320,24 +2335,24 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.PubliclyAccessible = nil } if resp.DBInstance.ReadReplicaDBClusterIdentifiers != nil { - f61 := []*string{} - for _, f61iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { - var f61elem string - f61elem = *f61iter - f61 = append(f61, &f61elem) + f62 := []*string{} + for _, f62iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { + var f62elem string + f62elem = *f62iter + f62 = append(f62, &f62elem) } - ko.Status.ReadReplicaDBClusterIdentifiers = f61 + ko.Status.ReadReplicaDBClusterIdentifiers = f62 } else { ko.Status.ReadReplicaDBClusterIdentifiers = nil } if resp.DBInstance.ReadReplicaDBInstanceIdentifiers != nil { - f62 := []*string{} - for _, f62iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { - var f62elem string - f62elem = *f62iter - f62 = append(f62, &f62elem) + f63 := []*string{} + for _, f63iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { + var f63elem string + f63elem = *f63iter + f63 = append(f63, &f63elem) } - ko.Status.ReadReplicaDBInstanceIdentifiers = f62 + ko.Status.ReadReplicaDBInstanceIdentifiers = f63 } else { ko.Status.ReadReplicaDBInstanceIdentifiers = nil } @@ -2362,24 +2377,24 @@ func (rm *resourceManager) sdkUpdate( ko.Status.SecondaryAvailabilityZone = nil } if resp.DBInstance.StatusInfos != nil { - f67 := []*svcapitypes.DBInstanceStatusInfo{} - for _, f67iter := range resp.DBInstance.StatusInfos { - f67elem := &svcapitypes.DBInstanceStatusInfo{} - if f67iter.Message != nil { - f67elem.Message = f67iter.Message + f68 := []*svcapitypes.DBInstanceStatusInfo{} + for _, f68iter := range resp.DBInstance.StatusInfos { + f68elem := &svcapitypes.DBInstanceStatusInfo{} + if f68iter.Message != nil { + f68elem.Message = f68iter.Message } - if f67iter.Normal != nil { - f67elem.Normal = f67iter.Normal + if f68iter.Normal != nil { + f68elem.Normal = f68iter.Normal } - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.StatusType != nil { - f67elem.StatusType = f67iter.StatusType + if f68iter.StatusType != nil { + f68elem.StatusType = f68iter.StatusType } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - ko.Status.StatusInfos = f67 + ko.Status.StatusInfos = f68 } else { ko.Status.StatusInfos = nil } @@ -2404,18 +2419,18 @@ func (rm *resourceManager) sdkUpdate( ko.Spec.Timezone = nil } if resp.DBInstance.VpcSecurityGroups != nil { - f72 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f72iter := range resp.DBInstance.VpcSecurityGroups { - f72elem := &svcapitypes.VPCSecurityGroupMembership{} - if f72iter.Status != nil { - f72elem.Status = f72iter.Status + f73 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f73iter := range resp.DBInstance.VpcSecurityGroups { + f73elem := &svcapitypes.VPCSecurityGroupMembership{} + if f73iter.Status != nil { + f73elem.Status = f73iter.Status } - if f72iter.VpcSecurityGroupId != nil { - f72elem.VPCSecurityGroupID = f72iter.VpcSecurityGroupId + if f73iter.VpcSecurityGroupId != nil { + f73elem.VPCSecurityGroupID = f73iter.VpcSecurityGroupId } - f72 = append(f72, f72elem) + f73 = append(f73, f73elem) } - ko.Status.VPCSecurityGroups = f72 + ko.Status.VPCSecurityGroups = f73 } else { ko.Status.VPCSecurityGroups = nil } @@ -2925,6 +2940,11 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( } else { r.ko.Status.ActivityStreamMode = nil } + if resp.DBInstance.ActivityStreamPolicyStatus != nil { + r.ko.Status.ActivityStreamPolicyStatus = resp.DBInstance.ActivityStreamPolicyStatus + } else { + r.ko.Status.ActivityStreamPolicyStatus = nil + } if resp.DBInstance.ActivityStreamStatus != nil { r.ko.Status.ActivityStreamStatus = resp.DBInstance.ActivityStreamStatus } else { @@ -2936,21 +2956,21 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.AllocatedStorage = nil } if resp.DBInstance.AssociatedRoles != nil { - f6 := []*svcapitypes.DBInstanceRole{} - for _, f6iter := range resp.DBInstance.AssociatedRoles { - f6elem := &svcapitypes.DBInstanceRole{} - if f6iter.FeatureName != nil { - f6elem.FeatureName = f6iter.FeatureName + f7 := []*svcapitypes.DBInstanceRole{} + for _, f7iter := range resp.DBInstance.AssociatedRoles { + f7elem := &svcapitypes.DBInstanceRole{} + if f7iter.FeatureName != nil { + f7elem.FeatureName = f7iter.FeatureName } - if f6iter.RoleArn != nil { - f6elem.RoleARN = f6iter.RoleArn + if f7iter.RoleArn != nil { + f7elem.RoleARN = f7iter.RoleArn } - if f6iter.Status != nil { - f6elem.Status = f6iter.Status + if f7iter.Status != nil { + f7elem.Status = f7iter.Status } - f6 = append(f6, f6elem) + f7 = append(f7, f7elem) } - r.ko.Status.AssociatedRoles = f6 + r.ko.Status.AssociatedRoles = f7 } else { r.ko.Status.AssociatedRoles = nil } @@ -3027,15 +3047,15 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Status.ACKResourceMetadata.ARN = &arn } if resp.DBInstance.DBInstanceAutomatedBackupsReplications != nil { - f21 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} - for _, f21iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { - f21elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} - if f21iter.DBInstanceAutomatedBackupsArn != nil { - f21elem.DBInstanceAutomatedBackupsARN = f21iter.DBInstanceAutomatedBackupsArn + f22 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} + for _, f22iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { + f22elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} + if f22iter.DBInstanceAutomatedBackupsArn != nil { + f22elem.DBInstanceAutomatedBackupsARN = f22iter.DBInstanceAutomatedBackupsArn } - f21 = append(f21, f21elem) + f22 = append(f22, f22elem) } - r.ko.Status.DBInstanceAutomatedBackupsReplications = f21 + r.ko.Status.DBInstanceAutomatedBackupsReplications = f22 } else { r.ko.Status.DBInstanceAutomatedBackupsReplications = nil } @@ -3060,76 +3080,76 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.DBName = nil } if resp.DBInstance.DBParameterGroups != nil { - f26 := []*svcapitypes.DBParameterGroupStatus_SDK{} - for _, f26iter := range resp.DBInstance.DBParameterGroups { - f26elem := &svcapitypes.DBParameterGroupStatus_SDK{} - if f26iter.DBParameterGroupName != nil { - f26elem.DBParameterGroupName = f26iter.DBParameterGroupName + f27 := []*svcapitypes.DBParameterGroupStatus_SDK{} + for _, f27iter := range resp.DBInstance.DBParameterGroups { + f27elem := &svcapitypes.DBParameterGroupStatus_SDK{} + if f27iter.DBParameterGroupName != nil { + f27elem.DBParameterGroupName = f27iter.DBParameterGroupName } - if f26iter.ParameterApplyStatus != nil { - f26elem.ParameterApplyStatus = f26iter.ParameterApplyStatus + if f27iter.ParameterApplyStatus != nil { + f27elem.ParameterApplyStatus = f27iter.ParameterApplyStatus } - f26 = append(f26, f26elem) + f27 = append(f27, f27elem) } - r.ko.Status.DBParameterGroups = f26 + r.ko.Status.DBParameterGroups = f27 } else { r.ko.Status.DBParameterGroups = nil } if resp.DBInstance.DBSubnetGroup != nil { - f27 := &svcapitypes.DBSubnetGroup_SDK{} + f28 := &svcapitypes.DBSubnetGroup_SDK{} if resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn != nil { - f27.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn + f28.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription != nil { - f27.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription + f28.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupName != nil { - f27.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName + f28.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName } if resp.DBInstance.DBSubnetGroup.SubnetGroupStatus != nil { - f27.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus + f28.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus } if resp.DBInstance.DBSubnetGroup.Subnets != nil { - f27f4 := []*svcapitypes.Subnet{} - for _, f27f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { - f27f4elem := &svcapitypes.Subnet{} - if f27f4iter.SubnetAvailabilityZone != nil { - f27f4elemf0 := &svcapitypes.AvailabilityZone{} - if f27f4iter.SubnetAvailabilityZone.Name != nil { - f27f4elemf0.Name = f27f4iter.SubnetAvailabilityZone.Name + f28f4 := []*svcapitypes.Subnet{} + for _, f28f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { + f28f4elem := &svcapitypes.Subnet{} + if f28f4iter.SubnetAvailabilityZone != nil { + f28f4elemf0 := &svcapitypes.AvailabilityZone{} + if f28f4iter.SubnetAvailabilityZone.Name != nil { + f28f4elemf0.Name = f28f4iter.SubnetAvailabilityZone.Name } - f27f4elem.SubnetAvailabilityZone = f27f4elemf0 + f28f4elem.SubnetAvailabilityZone = f28f4elemf0 } - if f27f4iter.SubnetIdentifier != nil { - f27f4elem.SubnetIdentifier = f27f4iter.SubnetIdentifier + if f28f4iter.SubnetIdentifier != nil { + f28f4elem.SubnetIdentifier = f28f4iter.SubnetIdentifier } - if f27f4iter.SubnetOutpost != nil { - f27f4elemf2 := &svcapitypes.Outpost{} - if f27f4iter.SubnetOutpost.Arn != nil { - f27f4elemf2.ARN = f27f4iter.SubnetOutpost.Arn + if f28f4iter.SubnetOutpost != nil { + f28f4elemf2 := &svcapitypes.Outpost{} + if f28f4iter.SubnetOutpost.Arn != nil { + f28f4elemf2.ARN = f28f4iter.SubnetOutpost.Arn } - f27f4elem.SubnetOutpost = f27f4elemf2 + f28f4elem.SubnetOutpost = f28f4elemf2 } - if f27f4iter.SubnetStatus != nil { - f27f4elem.SubnetStatus = f27f4iter.SubnetStatus + if f28f4iter.SubnetStatus != nil { + f28f4elem.SubnetStatus = f28f4iter.SubnetStatus } - f27f4 = append(f27f4, f27f4elem) + f28f4 = append(f28f4, f28f4elem) } - f27.Subnets = f27f4 + f28.Subnets = f28f4 } if resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes != nil { - f27f5 := []*string{} - for _, f27f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { - var f27f5elem string - f27f5elem = *f27f5iter - f27f5 = append(f27f5, &f27f5elem) + f28f5 := []*string{} + for _, f28f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { + var f28f5elem string + f28f5elem = *f28f5iter + f28f5 = append(f28f5, &f28f5elem) } - f27.SupportedNetworkTypes = f27f5 + f28.SupportedNetworkTypes = f28f5 } if resp.DBInstance.DBSubnetGroup.VpcId != nil { - f27.VPCID = resp.DBInstance.DBSubnetGroup.VpcId + f28.VPCID = resp.DBInstance.DBSubnetGroup.VpcId } - r.ko.Status.DBSubnetGroup = f27 + r.ko.Status.DBSubnetGroup = f28 } else { r.ko.Status.DBSubnetGroup = nil } @@ -3149,50 +3169,50 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.DeletionProtection = nil } if resp.DBInstance.DomainMemberships != nil { - f31 := []*svcapitypes.DomainMembership{} - for _, f31iter := range resp.DBInstance.DomainMemberships { - f31elem := &svcapitypes.DomainMembership{} - if f31iter.Domain != nil { - f31elem.Domain = f31iter.Domain + f32 := []*svcapitypes.DomainMembership{} + for _, f32iter := range resp.DBInstance.DomainMemberships { + f32elem := &svcapitypes.DomainMembership{} + if f32iter.Domain != nil { + f32elem.Domain = f32iter.Domain } - if f31iter.FQDN != nil { - f31elem.FQDN = f31iter.FQDN + if f32iter.FQDN != nil { + f32elem.FQDN = f32iter.FQDN } - if f31iter.IAMRoleName != nil { - f31elem.IAMRoleName = f31iter.IAMRoleName + if f32iter.IAMRoleName != nil { + f32elem.IAMRoleName = f32iter.IAMRoleName } - if f31iter.Status != nil { - f31elem.Status = f31iter.Status + if f32iter.Status != nil { + f32elem.Status = f32iter.Status } - f31 = append(f31, f31elem) + f32 = append(f32, f32elem) } - r.ko.Status.DomainMemberships = f31 + r.ko.Status.DomainMemberships = f32 } else { r.ko.Status.DomainMemberships = nil } if resp.DBInstance.EnabledCloudwatchLogsExports != nil { - f32 := []*string{} - for _, f32iter := range resp.DBInstance.EnabledCloudwatchLogsExports { - var f32elem string - f32elem = *f32iter - f32 = append(f32, &f32elem) + f33 := []*string{} + for _, f33iter := range resp.DBInstance.EnabledCloudwatchLogsExports { + var f33elem string + f33elem = *f33iter + f33 = append(f33, &f33elem) } - r.ko.Status.EnabledCloudwatchLogsExports = f32 + r.ko.Status.EnabledCloudwatchLogsExports = f33 } else { r.ko.Status.EnabledCloudwatchLogsExports = nil } if resp.DBInstance.Endpoint != nil { - f33 := &svcapitypes.Endpoint{} + f34 := &svcapitypes.Endpoint{} if resp.DBInstance.Endpoint.Address != nil { - f33.Address = resp.DBInstance.Endpoint.Address + f34.Address = resp.DBInstance.Endpoint.Address } if resp.DBInstance.Endpoint.HostedZoneId != nil { - f33.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId + f34.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId } if resp.DBInstance.Endpoint.Port != nil { - f33.Port = resp.DBInstance.Endpoint.Port + f34.Port = resp.DBInstance.Endpoint.Port } - r.ko.Status.Endpoint = f33 + r.ko.Status.Endpoint = f34 } else { r.ko.Status.Endpoint = nil } @@ -3242,17 +3262,17 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.LicenseModel = nil } if resp.DBInstance.ListenerEndpoint != nil { - f43 := &svcapitypes.Endpoint{} + f44 := &svcapitypes.Endpoint{} if resp.DBInstance.ListenerEndpoint.Address != nil { - f43.Address = resp.DBInstance.ListenerEndpoint.Address + f44.Address = resp.DBInstance.ListenerEndpoint.Address } if resp.DBInstance.ListenerEndpoint.HostedZoneId != nil { - f43.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId + f44.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId } if resp.DBInstance.ListenerEndpoint.Port != nil { - f43.Port = resp.DBInstance.ListenerEndpoint.Port + f44.Port = resp.DBInstance.ListenerEndpoint.Port } - r.ko.Status.ListenerEndpoint = f43 + r.ko.Status.ListenerEndpoint = f44 } else { r.ko.Status.ListenerEndpoint = nil } @@ -3292,108 +3312,108 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.NetworkType = nil } if resp.DBInstance.OptionGroupMemberships != nil { - f51 := []*svcapitypes.OptionGroupMembership{} - for _, f51iter := range resp.DBInstance.OptionGroupMemberships { - f51elem := &svcapitypes.OptionGroupMembership{} - if f51iter.OptionGroupName != nil { - f51elem.OptionGroupName = f51iter.OptionGroupName + f52 := []*svcapitypes.OptionGroupMembership{} + for _, f52iter := range resp.DBInstance.OptionGroupMemberships { + f52elem := &svcapitypes.OptionGroupMembership{} + if f52iter.OptionGroupName != nil { + f52elem.OptionGroupName = f52iter.OptionGroupName } - if f51iter.Status != nil { - f51elem.Status = f51iter.Status + if f52iter.Status != nil { + f52elem.Status = f52iter.Status } - f51 = append(f51, f51elem) + f52 = append(f52, f52elem) } - r.ko.Status.OptionGroupMemberships = f51 + r.ko.Status.OptionGroupMemberships = f52 } else { r.ko.Status.OptionGroupMemberships = nil } if resp.DBInstance.PendingModifiedValues != nil { - f52 := &svcapitypes.PendingModifiedValues{} + f53 := &svcapitypes.PendingModifiedValues{} if resp.DBInstance.PendingModifiedValues.AllocatedStorage != nil { - f52.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage + f53.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage } if resp.DBInstance.PendingModifiedValues.AutomationMode != nil { - f52.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode + f53.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode } if resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod != nil { - f52.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod + f53.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod } if resp.DBInstance.PendingModifiedValues.CACertificateIdentifier != nil { - f52.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier + f53.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier } if resp.DBInstance.PendingModifiedValues.DBInstanceClass != nil { - f52.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass + f53.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass } if resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier != nil { - f52.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier + f53.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier } if resp.DBInstance.PendingModifiedValues.DBSubnetGroupName != nil { - f52.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName + f53.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName } if resp.DBInstance.PendingModifiedValues.EngineVersion != nil { - f52.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion + f53.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion } if resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f52.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f53.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if resp.DBInstance.PendingModifiedValues.Iops != nil { - f52.IOPS = resp.DBInstance.PendingModifiedValues.Iops + f53.IOPS = resp.DBInstance.PendingModifiedValues.Iops } if resp.DBInstance.PendingModifiedValues.LicenseModel != nil { - f52.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel + f53.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel } if resp.DBInstance.PendingModifiedValues.MasterUserPassword != nil { - f52.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword + f53.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword } if resp.DBInstance.PendingModifiedValues.MultiAZ != nil { - f52.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ + f53.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f52f13 := &svcapitypes.PendingCloudwatchLogsExports{} + f53f13 := &svcapitypes.PendingCloudwatchLogsExports{} if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f52f13f0 := []*string{} - for _, f52f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f52f13f0elem string - f52f13f0elem = *f52f13f0iter - f52f13f0 = append(f52f13f0, &f52f13f0elem) + f53f13f0 := []*string{} + for _, f53f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f53f13f0elem string + f53f13f0elem = *f53f13f0iter + f53f13f0 = append(f53f13f0, &f53f13f0elem) } - f52f13.LogTypesToDisable = f52f13f0 + f53f13.LogTypesToDisable = f53f13f0 } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f52f13f1 := []*string{} - for _, f52f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f52f13f1elem string - f52f13f1elem = *f52f13f1iter - f52f13f1 = append(f52f13f1, &f52f13f1elem) + f53f13f1 := []*string{} + for _, f53f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f53f13f1elem string + f53f13f1elem = *f53f13f1iter + f53f13f1 = append(f53f13f1, &f53f13f1elem) } - f52f13.LogTypesToEnable = f52f13f1 + f53f13.LogTypesToEnable = f53f13f1 } - f52.PendingCloudwatchLogsExports = f52f13 + f53.PendingCloudwatchLogsExports = f53f13 } if resp.DBInstance.PendingModifiedValues.Port != nil { - f52.Port = resp.DBInstance.PendingModifiedValues.Port + f53.Port = resp.DBInstance.PendingModifiedValues.Port } if resp.DBInstance.PendingModifiedValues.ProcessorFeatures != nil { - f52f15 := []*svcapitypes.ProcessorFeature{} - for _, f52f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { - f52f15elem := &svcapitypes.ProcessorFeature{} - if f52f15iter.Name != nil { - f52f15elem.Name = f52f15iter.Name + f53f15 := []*svcapitypes.ProcessorFeature{} + for _, f53f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { + f53f15elem := &svcapitypes.ProcessorFeature{} + if f53f15iter.Name != nil { + f53f15elem.Name = f53f15iter.Name } - if f52f15iter.Value != nil { - f52f15elem.Value = f52f15iter.Value + if f53f15iter.Value != nil { + f53f15elem.Value = f53f15iter.Value } - f52f15 = append(f52f15, f52f15elem) + f53f15 = append(f53f15, f53f15elem) } - f52.ProcessorFeatures = f52f15 + f53.ProcessorFeatures = f53f15 } if resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime != nil { - f52.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} + f53.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} } if resp.DBInstance.PendingModifiedValues.StorageType != nil { - f52.StorageType = resp.DBInstance.PendingModifiedValues.StorageType + f53.StorageType = resp.DBInstance.PendingModifiedValues.StorageType } - r.ko.Status.PendingModifiedValues = f52 + r.ko.Status.PendingModifiedValues = f53 } else { r.ko.Status.PendingModifiedValues = nil } @@ -3423,18 +3443,18 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.PreferredMaintenanceWindow = nil } if resp.DBInstance.ProcessorFeatures != nil { - f58 := []*svcapitypes.ProcessorFeature{} - for _, f58iter := range resp.DBInstance.ProcessorFeatures { - f58elem := &svcapitypes.ProcessorFeature{} - if f58iter.Name != nil { - f58elem.Name = f58iter.Name + f59 := []*svcapitypes.ProcessorFeature{} + for _, f59iter := range resp.DBInstance.ProcessorFeatures { + f59elem := &svcapitypes.ProcessorFeature{} + if f59iter.Name != nil { + f59elem.Name = f59iter.Name } - if f58iter.Value != nil { - f58elem.Value = f58iter.Value + if f59iter.Value != nil { + f59elem.Value = f59iter.Value } - f58 = append(f58, f58elem) + f59 = append(f59, f59elem) } - r.ko.Spec.ProcessorFeatures = f58 + r.ko.Spec.ProcessorFeatures = f59 } else { r.ko.Spec.ProcessorFeatures = nil } @@ -3449,24 +3469,24 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.PubliclyAccessible = nil } if resp.DBInstance.ReadReplicaDBClusterIdentifiers != nil { - f61 := []*string{} - for _, f61iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { - var f61elem string - f61elem = *f61iter - f61 = append(f61, &f61elem) + f62 := []*string{} + for _, f62iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { + var f62elem string + f62elem = *f62iter + f62 = append(f62, &f62elem) } - r.ko.Status.ReadReplicaDBClusterIdentifiers = f61 + r.ko.Status.ReadReplicaDBClusterIdentifiers = f62 } else { r.ko.Status.ReadReplicaDBClusterIdentifiers = nil } if resp.DBInstance.ReadReplicaDBInstanceIdentifiers != nil { - f62 := []*string{} - for _, f62iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { - var f62elem string - f62elem = *f62iter - f62 = append(f62, &f62elem) + f63 := []*string{} + for _, f63iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { + var f63elem string + f63elem = *f63iter + f63 = append(f63, &f63elem) } - r.ko.Status.ReadReplicaDBInstanceIdentifiers = f62 + r.ko.Status.ReadReplicaDBInstanceIdentifiers = f63 } else { r.ko.Status.ReadReplicaDBInstanceIdentifiers = nil } @@ -3491,24 +3511,24 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Status.SecondaryAvailabilityZone = nil } if resp.DBInstance.StatusInfos != nil { - f67 := []*svcapitypes.DBInstanceStatusInfo{} - for _, f67iter := range resp.DBInstance.StatusInfos { - f67elem := &svcapitypes.DBInstanceStatusInfo{} - if f67iter.Message != nil { - f67elem.Message = f67iter.Message + f68 := []*svcapitypes.DBInstanceStatusInfo{} + for _, f68iter := range resp.DBInstance.StatusInfos { + f68elem := &svcapitypes.DBInstanceStatusInfo{} + if f68iter.Message != nil { + f68elem.Message = f68iter.Message } - if f67iter.Normal != nil { - f67elem.Normal = f67iter.Normal + if f68iter.Normal != nil { + f68elem.Normal = f68iter.Normal } - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.StatusType != nil { - f67elem.StatusType = f67iter.StatusType + if f68iter.StatusType != nil { + f68elem.StatusType = f68iter.StatusType } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - r.ko.Status.StatusInfos = f67 + r.ko.Status.StatusInfos = f68 } else { r.ko.Status.StatusInfos = nil } @@ -3533,18 +3553,18 @@ func (rm *resourceManager) setResourceFromRestoreDBInstanceFromDBSnapshotOutput( r.ko.Spec.Timezone = nil } if resp.DBInstance.VpcSecurityGroups != nil { - f72 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f72iter := range resp.DBInstance.VpcSecurityGroups { - f72elem := &svcapitypes.VPCSecurityGroupMembership{} - if f72iter.Status != nil { - f72elem.Status = f72iter.Status + f73 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f73iter := range resp.DBInstance.VpcSecurityGroups { + f73elem := &svcapitypes.VPCSecurityGroupMembership{} + if f73iter.Status != nil { + f73elem.Status = f73iter.Status } - if f72iter.VpcSecurityGroupId != nil { - f72elem.VPCSecurityGroupID = f72iter.VpcSecurityGroupId + if f73iter.VpcSecurityGroupId != nil { + f73elem.VPCSecurityGroupID = f73iter.VpcSecurityGroupId } - f72 = append(f72, f72elem) + f73 = append(f73, f73elem) } - r.ko.Status.VPCSecurityGroups = f72 + r.ko.Status.VPCSecurityGroups = f73 } else { r.ko.Status.VPCSecurityGroups = nil } @@ -3578,6 +3598,11 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( } else { r.ko.Status.ActivityStreamMode = nil } + if resp.DBInstance.ActivityStreamPolicyStatus != nil { + r.ko.Status.ActivityStreamPolicyStatus = resp.DBInstance.ActivityStreamPolicyStatus + } else { + r.ko.Status.ActivityStreamPolicyStatus = nil + } if resp.DBInstance.ActivityStreamStatus != nil { r.ko.Status.ActivityStreamStatus = resp.DBInstance.ActivityStreamStatus } else { @@ -3589,21 +3614,21 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.AllocatedStorage = nil } if resp.DBInstance.AssociatedRoles != nil { - f6 := []*svcapitypes.DBInstanceRole{} - for _, f6iter := range resp.DBInstance.AssociatedRoles { - f6elem := &svcapitypes.DBInstanceRole{} - if f6iter.FeatureName != nil { - f6elem.FeatureName = f6iter.FeatureName + f7 := []*svcapitypes.DBInstanceRole{} + for _, f7iter := range resp.DBInstance.AssociatedRoles { + f7elem := &svcapitypes.DBInstanceRole{} + if f7iter.FeatureName != nil { + f7elem.FeatureName = f7iter.FeatureName } - if f6iter.RoleArn != nil { - f6elem.RoleARN = f6iter.RoleArn + if f7iter.RoleArn != nil { + f7elem.RoleARN = f7iter.RoleArn } - if f6iter.Status != nil { - f6elem.Status = f6iter.Status + if f7iter.Status != nil { + f7elem.Status = f7iter.Status } - f6 = append(f6, f6elem) + f7 = append(f7, f7elem) } - r.ko.Status.AssociatedRoles = f6 + r.ko.Status.AssociatedRoles = f7 } else { r.ko.Status.AssociatedRoles = nil } @@ -3680,15 +3705,15 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Status.ACKResourceMetadata.ARN = &arn } if resp.DBInstance.DBInstanceAutomatedBackupsReplications != nil { - f21 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} - for _, f21iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { - f21elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} - if f21iter.DBInstanceAutomatedBackupsArn != nil { - f21elem.DBInstanceAutomatedBackupsARN = f21iter.DBInstanceAutomatedBackupsArn + f22 := []*svcapitypes.DBInstanceAutomatedBackupsReplication{} + for _, f22iter := range resp.DBInstance.DBInstanceAutomatedBackupsReplications { + f22elem := &svcapitypes.DBInstanceAutomatedBackupsReplication{} + if f22iter.DBInstanceAutomatedBackupsArn != nil { + f22elem.DBInstanceAutomatedBackupsARN = f22iter.DBInstanceAutomatedBackupsArn } - f21 = append(f21, f21elem) + f22 = append(f22, f22elem) } - r.ko.Status.DBInstanceAutomatedBackupsReplications = f21 + r.ko.Status.DBInstanceAutomatedBackupsReplications = f22 } else { r.ko.Status.DBInstanceAutomatedBackupsReplications = nil } @@ -3713,76 +3738,76 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.DBName = nil } if resp.DBInstance.DBParameterGroups != nil { - f26 := []*svcapitypes.DBParameterGroupStatus_SDK{} - for _, f26iter := range resp.DBInstance.DBParameterGroups { - f26elem := &svcapitypes.DBParameterGroupStatus_SDK{} - if f26iter.DBParameterGroupName != nil { - f26elem.DBParameterGroupName = f26iter.DBParameterGroupName + f27 := []*svcapitypes.DBParameterGroupStatus_SDK{} + for _, f27iter := range resp.DBInstance.DBParameterGroups { + f27elem := &svcapitypes.DBParameterGroupStatus_SDK{} + if f27iter.DBParameterGroupName != nil { + f27elem.DBParameterGroupName = f27iter.DBParameterGroupName } - if f26iter.ParameterApplyStatus != nil { - f26elem.ParameterApplyStatus = f26iter.ParameterApplyStatus + if f27iter.ParameterApplyStatus != nil { + f27elem.ParameterApplyStatus = f27iter.ParameterApplyStatus } - f26 = append(f26, f26elem) + f27 = append(f27, f27elem) } - r.ko.Status.DBParameterGroups = f26 + r.ko.Status.DBParameterGroups = f27 } else { r.ko.Status.DBParameterGroups = nil } if resp.DBInstance.DBSubnetGroup != nil { - f27 := &svcapitypes.DBSubnetGroup_SDK{} + f28 := &svcapitypes.DBSubnetGroup_SDK{} if resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn != nil { - f27.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn + f28.DBSubnetGroupARN = resp.DBInstance.DBSubnetGroup.DBSubnetGroupArn } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription != nil { - f27.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription + f28.DBSubnetGroupDescription = resp.DBInstance.DBSubnetGroup.DBSubnetGroupDescription } if resp.DBInstance.DBSubnetGroup.DBSubnetGroupName != nil { - f27.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName + f28.DBSubnetGroupName = resp.DBInstance.DBSubnetGroup.DBSubnetGroupName } if resp.DBInstance.DBSubnetGroup.SubnetGroupStatus != nil { - f27.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus + f28.SubnetGroupStatus = resp.DBInstance.DBSubnetGroup.SubnetGroupStatus } if resp.DBInstance.DBSubnetGroup.Subnets != nil { - f27f4 := []*svcapitypes.Subnet{} - for _, f27f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { - f27f4elem := &svcapitypes.Subnet{} - if f27f4iter.SubnetAvailabilityZone != nil { - f27f4elemf0 := &svcapitypes.AvailabilityZone{} - if f27f4iter.SubnetAvailabilityZone.Name != nil { - f27f4elemf0.Name = f27f4iter.SubnetAvailabilityZone.Name + f28f4 := []*svcapitypes.Subnet{} + for _, f28f4iter := range resp.DBInstance.DBSubnetGroup.Subnets { + f28f4elem := &svcapitypes.Subnet{} + if f28f4iter.SubnetAvailabilityZone != nil { + f28f4elemf0 := &svcapitypes.AvailabilityZone{} + if f28f4iter.SubnetAvailabilityZone.Name != nil { + f28f4elemf0.Name = f28f4iter.SubnetAvailabilityZone.Name } - f27f4elem.SubnetAvailabilityZone = f27f4elemf0 + f28f4elem.SubnetAvailabilityZone = f28f4elemf0 } - if f27f4iter.SubnetIdentifier != nil { - f27f4elem.SubnetIdentifier = f27f4iter.SubnetIdentifier + if f28f4iter.SubnetIdentifier != nil { + f28f4elem.SubnetIdentifier = f28f4iter.SubnetIdentifier } - if f27f4iter.SubnetOutpost != nil { - f27f4elemf2 := &svcapitypes.Outpost{} - if f27f4iter.SubnetOutpost.Arn != nil { - f27f4elemf2.ARN = f27f4iter.SubnetOutpost.Arn + if f28f4iter.SubnetOutpost != nil { + f28f4elemf2 := &svcapitypes.Outpost{} + if f28f4iter.SubnetOutpost.Arn != nil { + f28f4elemf2.ARN = f28f4iter.SubnetOutpost.Arn } - f27f4elem.SubnetOutpost = f27f4elemf2 + f28f4elem.SubnetOutpost = f28f4elemf2 } - if f27f4iter.SubnetStatus != nil { - f27f4elem.SubnetStatus = f27f4iter.SubnetStatus + if f28f4iter.SubnetStatus != nil { + f28f4elem.SubnetStatus = f28f4iter.SubnetStatus } - f27f4 = append(f27f4, f27f4elem) + f28f4 = append(f28f4, f28f4elem) } - f27.Subnets = f27f4 + f28.Subnets = f28f4 } if resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes != nil { - f27f5 := []*string{} - for _, f27f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { - var f27f5elem string - f27f5elem = *f27f5iter - f27f5 = append(f27f5, &f27f5elem) + f28f5 := []*string{} + for _, f28f5iter := range resp.DBInstance.DBSubnetGroup.SupportedNetworkTypes { + var f28f5elem string + f28f5elem = *f28f5iter + f28f5 = append(f28f5, &f28f5elem) } - f27.SupportedNetworkTypes = f27f5 + f28.SupportedNetworkTypes = f28f5 } if resp.DBInstance.DBSubnetGroup.VpcId != nil { - f27.VPCID = resp.DBInstance.DBSubnetGroup.VpcId + f28.VPCID = resp.DBInstance.DBSubnetGroup.VpcId } - r.ko.Status.DBSubnetGroup = f27 + r.ko.Status.DBSubnetGroup = f28 } else { r.ko.Status.DBSubnetGroup = nil } @@ -3802,50 +3827,50 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.DeletionProtection = nil } if resp.DBInstance.DomainMemberships != nil { - f31 := []*svcapitypes.DomainMembership{} - for _, f31iter := range resp.DBInstance.DomainMemberships { - f31elem := &svcapitypes.DomainMembership{} - if f31iter.Domain != nil { - f31elem.Domain = f31iter.Domain + f32 := []*svcapitypes.DomainMembership{} + for _, f32iter := range resp.DBInstance.DomainMemberships { + f32elem := &svcapitypes.DomainMembership{} + if f32iter.Domain != nil { + f32elem.Domain = f32iter.Domain } - if f31iter.FQDN != nil { - f31elem.FQDN = f31iter.FQDN + if f32iter.FQDN != nil { + f32elem.FQDN = f32iter.FQDN } - if f31iter.IAMRoleName != nil { - f31elem.IAMRoleName = f31iter.IAMRoleName + if f32iter.IAMRoleName != nil { + f32elem.IAMRoleName = f32iter.IAMRoleName } - if f31iter.Status != nil { - f31elem.Status = f31iter.Status + if f32iter.Status != nil { + f32elem.Status = f32iter.Status } - f31 = append(f31, f31elem) + f32 = append(f32, f32elem) } - r.ko.Status.DomainMemberships = f31 + r.ko.Status.DomainMemberships = f32 } else { r.ko.Status.DomainMemberships = nil } if resp.DBInstance.EnabledCloudwatchLogsExports != nil { - f32 := []*string{} - for _, f32iter := range resp.DBInstance.EnabledCloudwatchLogsExports { - var f32elem string - f32elem = *f32iter - f32 = append(f32, &f32elem) + f33 := []*string{} + for _, f33iter := range resp.DBInstance.EnabledCloudwatchLogsExports { + var f33elem string + f33elem = *f33iter + f33 = append(f33, &f33elem) } - r.ko.Status.EnabledCloudwatchLogsExports = f32 + r.ko.Status.EnabledCloudwatchLogsExports = f33 } else { r.ko.Status.EnabledCloudwatchLogsExports = nil } if resp.DBInstance.Endpoint != nil { - f33 := &svcapitypes.Endpoint{} + f34 := &svcapitypes.Endpoint{} if resp.DBInstance.Endpoint.Address != nil { - f33.Address = resp.DBInstance.Endpoint.Address + f34.Address = resp.DBInstance.Endpoint.Address } if resp.DBInstance.Endpoint.HostedZoneId != nil { - f33.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId + f34.HostedZoneID = resp.DBInstance.Endpoint.HostedZoneId } if resp.DBInstance.Endpoint.Port != nil { - f33.Port = resp.DBInstance.Endpoint.Port + f34.Port = resp.DBInstance.Endpoint.Port } - r.ko.Status.Endpoint = f33 + r.ko.Status.Endpoint = f34 } else { r.ko.Status.Endpoint = nil } @@ -3895,17 +3920,17 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.LicenseModel = nil } if resp.DBInstance.ListenerEndpoint != nil { - f43 := &svcapitypes.Endpoint{} + f44 := &svcapitypes.Endpoint{} if resp.DBInstance.ListenerEndpoint.Address != nil { - f43.Address = resp.DBInstance.ListenerEndpoint.Address + f44.Address = resp.DBInstance.ListenerEndpoint.Address } if resp.DBInstance.ListenerEndpoint.HostedZoneId != nil { - f43.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId + f44.HostedZoneID = resp.DBInstance.ListenerEndpoint.HostedZoneId } if resp.DBInstance.ListenerEndpoint.Port != nil { - f43.Port = resp.DBInstance.ListenerEndpoint.Port + f44.Port = resp.DBInstance.ListenerEndpoint.Port } - r.ko.Status.ListenerEndpoint = f43 + r.ko.Status.ListenerEndpoint = f44 } else { r.ko.Status.ListenerEndpoint = nil } @@ -3945,108 +3970,108 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.NetworkType = nil } if resp.DBInstance.OptionGroupMemberships != nil { - f51 := []*svcapitypes.OptionGroupMembership{} - for _, f51iter := range resp.DBInstance.OptionGroupMemberships { - f51elem := &svcapitypes.OptionGroupMembership{} - if f51iter.OptionGroupName != nil { - f51elem.OptionGroupName = f51iter.OptionGroupName + f52 := []*svcapitypes.OptionGroupMembership{} + for _, f52iter := range resp.DBInstance.OptionGroupMemberships { + f52elem := &svcapitypes.OptionGroupMembership{} + if f52iter.OptionGroupName != nil { + f52elem.OptionGroupName = f52iter.OptionGroupName } - if f51iter.Status != nil { - f51elem.Status = f51iter.Status + if f52iter.Status != nil { + f52elem.Status = f52iter.Status } - f51 = append(f51, f51elem) + f52 = append(f52, f52elem) } - r.ko.Status.OptionGroupMemberships = f51 + r.ko.Status.OptionGroupMemberships = f52 } else { r.ko.Status.OptionGroupMemberships = nil } if resp.DBInstance.PendingModifiedValues != nil { - f52 := &svcapitypes.PendingModifiedValues{} + f53 := &svcapitypes.PendingModifiedValues{} if resp.DBInstance.PendingModifiedValues.AllocatedStorage != nil { - f52.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage + f53.AllocatedStorage = resp.DBInstance.PendingModifiedValues.AllocatedStorage } if resp.DBInstance.PendingModifiedValues.AutomationMode != nil { - f52.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode + f53.AutomationMode = resp.DBInstance.PendingModifiedValues.AutomationMode } if resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod != nil { - f52.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod + f53.BackupRetentionPeriod = resp.DBInstance.PendingModifiedValues.BackupRetentionPeriod } if resp.DBInstance.PendingModifiedValues.CACertificateIdentifier != nil { - f52.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier + f53.CACertificateIdentifier = resp.DBInstance.PendingModifiedValues.CACertificateIdentifier } if resp.DBInstance.PendingModifiedValues.DBInstanceClass != nil { - f52.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass + f53.DBInstanceClass = resp.DBInstance.PendingModifiedValues.DBInstanceClass } if resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier != nil { - f52.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier + f53.DBInstanceIdentifier = resp.DBInstance.PendingModifiedValues.DBInstanceIdentifier } if resp.DBInstance.PendingModifiedValues.DBSubnetGroupName != nil { - f52.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName + f53.DBSubnetGroupName = resp.DBInstance.PendingModifiedValues.DBSubnetGroupName } if resp.DBInstance.PendingModifiedValues.EngineVersion != nil { - f52.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion + f53.EngineVersion = resp.DBInstance.PendingModifiedValues.EngineVersion } if resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled != nil { - f52.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled + f53.IAMDatabaseAuthenticationEnabled = resp.DBInstance.PendingModifiedValues.IAMDatabaseAuthenticationEnabled } if resp.DBInstance.PendingModifiedValues.Iops != nil { - f52.IOPS = resp.DBInstance.PendingModifiedValues.Iops + f53.IOPS = resp.DBInstance.PendingModifiedValues.Iops } if resp.DBInstance.PendingModifiedValues.LicenseModel != nil { - f52.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel + f53.LicenseModel = resp.DBInstance.PendingModifiedValues.LicenseModel } if resp.DBInstance.PendingModifiedValues.MasterUserPassword != nil { - f52.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword + f53.MasterUserPassword = resp.DBInstance.PendingModifiedValues.MasterUserPassword } if resp.DBInstance.PendingModifiedValues.MultiAZ != nil { - f52.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ + f53.MultiAZ = resp.DBInstance.PendingModifiedValues.MultiAZ } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports != nil { - f52f13 := &svcapitypes.PendingCloudwatchLogsExports{} + f53f13 := &svcapitypes.PendingCloudwatchLogsExports{} if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable != nil { - f52f13f0 := []*string{} - for _, f52f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { - var f52f13f0elem string - f52f13f0elem = *f52f13f0iter - f52f13f0 = append(f52f13f0, &f52f13f0elem) + f53f13f0 := []*string{} + for _, f53f13f0iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToDisable { + var f53f13f0elem string + f53f13f0elem = *f53f13f0iter + f53f13f0 = append(f53f13f0, &f53f13f0elem) } - f52f13.LogTypesToDisable = f52f13f0 + f53f13.LogTypesToDisable = f53f13f0 } if resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable != nil { - f52f13f1 := []*string{} - for _, f52f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { - var f52f13f1elem string - f52f13f1elem = *f52f13f1iter - f52f13f1 = append(f52f13f1, &f52f13f1elem) + f53f13f1 := []*string{} + for _, f53f13f1iter := range resp.DBInstance.PendingModifiedValues.PendingCloudwatchLogsExports.LogTypesToEnable { + var f53f13f1elem string + f53f13f1elem = *f53f13f1iter + f53f13f1 = append(f53f13f1, &f53f13f1elem) } - f52f13.LogTypesToEnable = f52f13f1 + f53f13.LogTypesToEnable = f53f13f1 } - f52.PendingCloudwatchLogsExports = f52f13 + f53.PendingCloudwatchLogsExports = f53f13 } if resp.DBInstance.PendingModifiedValues.Port != nil { - f52.Port = resp.DBInstance.PendingModifiedValues.Port + f53.Port = resp.DBInstance.PendingModifiedValues.Port } if resp.DBInstance.PendingModifiedValues.ProcessorFeatures != nil { - f52f15 := []*svcapitypes.ProcessorFeature{} - for _, f52f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { - f52f15elem := &svcapitypes.ProcessorFeature{} - if f52f15iter.Name != nil { - f52f15elem.Name = f52f15iter.Name + f53f15 := []*svcapitypes.ProcessorFeature{} + for _, f53f15iter := range resp.DBInstance.PendingModifiedValues.ProcessorFeatures { + f53f15elem := &svcapitypes.ProcessorFeature{} + if f53f15iter.Name != nil { + f53f15elem.Name = f53f15iter.Name } - if f52f15iter.Value != nil { - f52f15elem.Value = f52f15iter.Value + if f53f15iter.Value != nil { + f53f15elem.Value = f53f15iter.Value } - f52f15 = append(f52f15, f52f15elem) + f53f15 = append(f53f15, f53f15elem) } - f52.ProcessorFeatures = f52f15 + f53.ProcessorFeatures = f53f15 } if resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime != nil { - f52.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} + f53.ResumeFullAutomationModeTime = &metav1.Time{*resp.DBInstance.PendingModifiedValues.ResumeFullAutomationModeTime} } if resp.DBInstance.PendingModifiedValues.StorageType != nil { - f52.StorageType = resp.DBInstance.PendingModifiedValues.StorageType + f53.StorageType = resp.DBInstance.PendingModifiedValues.StorageType } - r.ko.Status.PendingModifiedValues = f52 + r.ko.Status.PendingModifiedValues = f53 } else { r.ko.Status.PendingModifiedValues = nil } @@ -4076,18 +4101,18 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.PreferredMaintenanceWindow = nil } if resp.DBInstance.ProcessorFeatures != nil { - f58 := []*svcapitypes.ProcessorFeature{} - for _, f58iter := range resp.DBInstance.ProcessorFeatures { - f58elem := &svcapitypes.ProcessorFeature{} - if f58iter.Name != nil { - f58elem.Name = f58iter.Name + f59 := []*svcapitypes.ProcessorFeature{} + for _, f59iter := range resp.DBInstance.ProcessorFeatures { + f59elem := &svcapitypes.ProcessorFeature{} + if f59iter.Name != nil { + f59elem.Name = f59iter.Name } - if f58iter.Value != nil { - f58elem.Value = f58iter.Value + if f59iter.Value != nil { + f59elem.Value = f59iter.Value } - f58 = append(f58, f58elem) + f59 = append(f59, f59elem) } - r.ko.Spec.ProcessorFeatures = f58 + r.ko.Spec.ProcessorFeatures = f59 } else { r.ko.Spec.ProcessorFeatures = nil } @@ -4102,24 +4127,24 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.PubliclyAccessible = nil } if resp.DBInstance.ReadReplicaDBClusterIdentifiers != nil { - f61 := []*string{} - for _, f61iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { - var f61elem string - f61elem = *f61iter - f61 = append(f61, &f61elem) + f62 := []*string{} + for _, f62iter := range resp.DBInstance.ReadReplicaDBClusterIdentifiers { + var f62elem string + f62elem = *f62iter + f62 = append(f62, &f62elem) } - r.ko.Status.ReadReplicaDBClusterIdentifiers = f61 + r.ko.Status.ReadReplicaDBClusterIdentifiers = f62 } else { r.ko.Status.ReadReplicaDBClusterIdentifiers = nil } if resp.DBInstance.ReadReplicaDBInstanceIdentifiers != nil { - f62 := []*string{} - for _, f62iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { - var f62elem string - f62elem = *f62iter - f62 = append(f62, &f62elem) + f63 := []*string{} + for _, f63iter := range resp.DBInstance.ReadReplicaDBInstanceIdentifiers { + var f63elem string + f63elem = *f63iter + f63 = append(f63, &f63elem) } - r.ko.Status.ReadReplicaDBInstanceIdentifiers = f62 + r.ko.Status.ReadReplicaDBInstanceIdentifiers = f63 } else { r.ko.Status.ReadReplicaDBInstanceIdentifiers = nil } @@ -4144,24 +4169,24 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Status.SecondaryAvailabilityZone = nil } if resp.DBInstance.StatusInfos != nil { - f67 := []*svcapitypes.DBInstanceStatusInfo{} - for _, f67iter := range resp.DBInstance.StatusInfos { - f67elem := &svcapitypes.DBInstanceStatusInfo{} - if f67iter.Message != nil { - f67elem.Message = f67iter.Message + f68 := []*svcapitypes.DBInstanceStatusInfo{} + for _, f68iter := range resp.DBInstance.StatusInfos { + f68elem := &svcapitypes.DBInstanceStatusInfo{} + if f68iter.Message != nil { + f68elem.Message = f68iter.Message } - if f67iter.Normal != nil { - f67elem.Normal = f67iter.Normal + if f68iter.Normal != nil { + f68elem.Normal = f68iter.Normal } - if f67iter.Status != nil { - f67elem.Status = f67iter.Status + if f68iter.Status != nil { + f68elem.Status = f68iter.Status } - if f67iter.StatusType != nil { - f67elem.StatusType = f67iter.StatusType + if f68iter.StatusType != nil { + f68elem.StatusType = f68iter.StatusType } - f67 = append(f67, f67elem) + f68 = append(f68, f68elem) } - r.ko.Status.StatusInfos = f67 + r.ko.Status.StatusInfos = f68 } else { r.ko.Status.StatusInfos = nil } @@ -4186,18 +4211,18 @@ func (rm *resourceManager) setResourceFromCreateDBInstanceReadReplicaOutput( r.ko.Spec.Timezone = nil } if resp.DBInstance.VpcSecurityGroups != nil { - f72 := []*svcapitypes.VPCSecurityGroupMembership{} - for _, f72iter := range resp.DBInstance.VpcSecurityGroups { - f72elem := &svcapitypes.VPCSecurityGroupMembership{} - if f72iter.Status != nil { - f72elem.Status = f72iter.Status + f73 := []*svcapitypes.VPCSecurityGroupMembership{} + for _, f73iter := range resp.DBInstance.VpcSecurityGroups { + f73elem := &svcapitypes.VPCSecurityGroupMembership{} + if f73iter.Status != nil { + f73elem.Status = f73iter.Status } - if f72iter.VpcSecurityGroupId != nil { - f72elem.VPCSecurityGroupID = f72iter.VpcSecurityGroupId + if f73iter.VpcSecurityGroupId != nil { + f73elem.VPCSecurityGroupID = f73iter.VpcSecurityGroupId } - f72 = append(f72, f72elem) + f73 = append(f73, f73elem) } - r.ko.Status.VPCSecurityGroups = f72 + r.ko.Status.VPCSecurityGroups = f73 } else { r.ko.Status.VPCSecurityGroups = nil }