|
81 | 81 | "settings.0.ip_configuration.0.psc_config",
|
82 | 82 | "settings.0.ip_configuration.0.ssl_mode",
|
83 | 83 | "settings.0.ip_configuration.0.server_ca_mode",
|
| 84 | + "settings.0.ip_configuration.0.server_ca_pool", |
84 | 85 | }
|
85 | 86 |
|
86 | 87 | maintenanceWindowKeys = []string{
|
@@ -519,12 +520,18 @@ is set to true. Defaults to ZONAL.`,
|
519 | 520 | Description: `Specify how SSL connection should be enforced in DB connections.`,
|
520 | 521 | AtLeastOneOf: ipConfigurationKeys,
|
521 | 522 | },
|
522 |
| - "server_ca_mode": { |
523 |
| - Type: schema.TypeString, |
524 |
| - Optional: true, |
525 |
| - Computed: true, |
526 |
| - ValidateFunc: validation.StringInSlice([]string{"CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA"}, false), |
527 |
| - Description: `Specify how the server certificate's Certificate Authority is hosted.`, |
| 523 | + "server_ca_mode": { |
| 524 | + Type: schema.TypeString, |
| 525 | + Optional: true, |
| 526 | + Computed: true, |
| 527 | + ValidateFunc: validation.StringInSlice([]string{"CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA", "CUSTOMER_MANAGED_CAS_CA"}, false), |
| 528 | + Description: `Specify how the server certificate's Certificate Authority is hosted.`, |
| 529 | + AtLeastOneOf: ipConfigurationKeys, |
| 530 | + }, |
| 531 | + "server_ca_pool": { |
| 532 | + Type: schema.TypeString, |
| 533 | + Optional: true, |
| 534 | + Description: `The resource name of the server CA pool for an instance with "CUSTOMER_MANAGED_CAS_CA" as the "server_ca_mode".`, |
528 | 535 | AtLeastOneOf: ipConfigurationKeys,
|
529 | 536 | },
|
530 | 537 | },
|
@@ -1453,6 +1460,7 @@ func expandIpConfiguration(configured []interface{}, databaseVersion string) *sq
|
1453 | 1460 | PscConfig: expandPscConfig(_ipConfiguration["psc_config"].(*schema.Set).List()),
|
1454 | 1461 | SslMode: _ipConfiguration["ssl_mode"].(string),
|
1455 | 1462 | ServerCaMode: _ipConfiguration["server_ca_mode"].(string),
|
| 1463 | + ServerCaPool: _ipConfiguration["server_ca_pool"].(string), |
1456 | 1464 | }
|
1457 | 1465 | }
|
1458 | 1466 |
|
@@ -2377,6 +2385,7 @@ func flattenIpConfiguration(ipConfiguration *sqladmin.IpConfiguration, d *schema
|
2377 | 2385 | "enable_private_path_for_google_cloud_services": ipConfiguration.EnablePrivatePathForGoogleCloudServices,
|
2378 | 2386 | "ssl_mode": ipConfiguration.SslMode,
|
2379 | 2387 | "server_ca_mode": ipConfiguration.ServerCaMode,
|
| 2388 | + "server_ca_pool": ipConfiguration.ServerCaPool, |
2380 | 2389 | }
|
2381 | 2390 |
|
2382 | 2391 | if ipConfiguration.AuthorizedNetworks != nil {
|
|
0 commit comments