DatabaseInstanceSettings constructor

const DatabaseInstanceSettings({
  1. Input<String?>? activationPolicy,
  2. Input<DatabaseInstanceSettingsActiveDirectoryConfig?>? activeDirectoryConfig,
  3. Input<DatabaseInstanceSettingsAdvancedMachineFeatures?>? advancedMachineFeatures,
  4. Input<bool?>? autoUpgradeEnabled,
  5. Input<String?>? availabilityType,
  6. Input<DatabaseInstanceSettingsBackupConfiguration?>? backupConfiguration,
  7. Input<String?>? collation,
  8. Input<List<DatabaseInstanceSettingsConnectionPoolConfig>?>? connectionPoolConfigs,
  9. Input<String?>? connectorEnforcement,
  10. Input<String?>? dataApiAccess,
  11. Input<DatabaseInstanceSettingsDataCacheConfig?>? dataCacheConfig,
  12. Input<int?>? dataDiskProvisionedIops,
  13. Input<int?>? dataDiskProvisionedThroughput,
  14. Input<List<DatabaseInstanceSettingsDatabaseFlag>?>? databaseFlags,
  15. Input<bool?>? deletionProtectionEnabled,
  16. Input<DatabaseInstanceSettingsDenyMaintenancePeriod?>? denyMaintenancePeriod,
  17. Input<bool?>? diskAutoresize,
  18. Input<int?>? diskAutoresizeLimit,
  19. Input<int?>? diskSize,
  20. Input<String?>? diskType,
  21. Input<String?>? edition,
  22. Input<String?>? effectiveAvailabilityType,
  23. Input<bool?>? enableDataplexIntegration,
  24. Input<bool?>? enableGoogleMlIntegration,
  25. Input<DatabaseInstanceSettingsEntraidConfig?>? entraidConfig,
  26. Input<DatabaseInstanceSettingsFinalBackupConfig?>? finalBackupConfig,
  27. Input<DatabaseInstanceSettingsInsightsConfig?>? insightsConfig,
  28. Input<DatabaseInstanceSettingsIpConfiguration?>? ipConfiguration,
  29. Input<DatabaseInstanceSettingsLocationPreference?>? locationPreference,
  30. Input<DatabaseInstanceSettingsMaintenanceWindow?>? maintenanceWindow,
  31. Input<DatabaseInstanceSettingsPasswordValidationPolicy?>? passwordValidationPolicy,
  32. Input<DatabaseInstanceSettingsPerformanceCaptureConfig?>? performanceCaptureConfig,
  33. Input<String?>? pricingPlan,
  34. Input<DatabaseInstanceSettingsReadPoolAutoScaleConfig?>? readPoolAutoScaleConfig,
  35. Input<int?>? replicationLagMaxSeconds,
  36. Input<bool?>? retainBackupsOnDelete,
  37. Input<DatabaseInstanceSettingsSqlServerAuditConfig?>? sqlServerAuditConfig,
  38. required Input<String> tier,
  39. Input<String?>? timeZone,
  40. Input<Map<String, String>?>? userLabels,
  41. Input<int?>? version,
})

Creates a new DatabaseInstanceSettings. activationPolicy This specifies when the instance should be activeDirectoryConfig Optional. advancedMachineFeatures Optional. autoUpgradeEnabled Enables availabilityType The availability type of the Cloud SQL backupConfiguration Optional. collation The name of server instance collation. connectionPoolConfigs The managed connection pool setting for a Cloud SQL instance. connectorEnforcement Control the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections, can be REQUIRED or NOT_REQUIRED. If enabled, all the direct connections are rejected. dataApiAccess Configures ExecuteSql API's access to the instance. connections, can be ALLOW_DATA_API or DISALLOW_DATA_API (default). ALLOW_DATA_API allows using ExecuteSql API to connect to the instance. For private IP instances, this allows authorized users to access the instance from the public internet using ExecuteSql API. dataCacheConfig Data cache configurations. dataDiskProvisionedIops Provisioned number of I/O operations per second for the data disk. This field is only used for HYPERDISK_BALANCED disk types. dataDiskProvisionedThroughput Provisioned throughput measured in MiB per second for the data disk. This field is only used for HYPERDISK_BALANCED disk types. databaseFlags Optional. deletionProtectionEnabled Enables deletion protection of an instance at the GCP level. Enabling this protection will guard against accidental deletion across all surfaces (API, gcloud, Cloud Console and Terraform) by enabling the GCP Cloud SQL instance deletion protection. Terraform provider support was introduced in version 4.48.0. Defaults to false. denyMaintenancePeriod Optional. diskAutoresize Enables auto-resizing of the storage size. Defaults to true. Note that if diskSize is set, future pulumi up calls will attempt to delete the instance in order to resize the disk to the value specified in diskSize if it has been resized. To avoid this, ensure that lifecycle.ignore_changes is applied to diskSize. diskAutoresizeLimit The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. diskSize The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB for PD_SSD, PD_HDD and 20GB for HYPERDISK_BALANCED. Note that this value will override the resizing from diskAutoresize if that feature is enabled. To avoid this, set lifecycle.ignore_changes on this field. diskType The type of data disk: PD_SSD, PD_HDD, or HYPERDISK_BALANCED. Defaults to PD_SSD. edition The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS. If edition effectiveAvailabilityType (Computed) The availability type of enableDataplexIntegration Enables Cloud SQL instance integration with Dataplex. MySQL, Postgres and SQL Server instances are supported for this feature. Defaults to false. enableGoogleMlIntegration Enables Cloud SQL instances to connect to Vertex AI and pass requests for real-time predictions and insights. Defaults to false. entraidConfig The Microsoft Entra ID configuration for the SQL Server instance. finalBackupConfig Config used to determine the final backup settings for the instance insightsConfig Configuration of Query Insights. ipConfiguration Optional. locationPreference Optional. maintenanceWindow Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time. passwordValidationPolicy Optional. performanceCaptureConfig Configuration of Performance Capture. pricingPlan Pricing plan for this instance, can only be PER_USE. readPoolAutoScaleConfig Configuration of Read Pool Auto Scale. replicationLagMaxSeconds The acceptable replication lag, in seconds, after which a read replica recreates itself. The lag must persist for at least five minutes before recreation is triggered. This is a replica level field, and must be between 300 (five minutes) and 31536000 (one year). retainBackupsOnDelete When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting. sqlServerAuditConfig Optional. tier The machine type to use. See tiers timeZone The timeZone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format. userLabels A set of key/value user label pairs to assign to the instance. version Used to make sure changes to the settings block are

Implementation

const DatabaseInstanceSettings({
  this.activationPolicy,
  this.activeDirectoryConfig,
  this.advancedMachineFeatures,
  this.autoUpgradeEnabled,
  this.availabilityType,
  this.backupConfiguration,
  this.collation,
  this.connectionPoolConfigs,
  this.connectorEnforcement,
  this.dataApiAccess,
  this.dataCacheConfig,
  this.dataDiskProvisionedIops,
  this.dataDiskProvisionedThroughput,
  this.databaseFlags,
  this.deletionProtectionEnabled,
  this.denyMaintenancePeriod,
  this.diskAutoresize,
  this.diskAutoresizeLimit,
  this.diskSize,
  this.diskType,
  this.edition,
  this.effectiveAvailabilityType,
  this.enableDataplexIntegration,
  this.enableGoogleMlIntegration,
  this.entraidConfig,
  this.finalBackupConfig,
  this.insightsConfig,
  this.ipConfiguration,
  this.locationPreference,
  this.maintenanceWindow,
  this.passwordValidationPolicy,
  this.performanceCaptureConfig,
  this.pricingPlan,
  this.readPoolAutoScaleConfig,
  this.replicationLagMaxSeconds,
  this.retainBackupsOnDelete,
  this.sqlServerAuditConfig,
  required this.tier,
  this.timeZone,
  this.userLabels,
  this.version,
});