# CreateClusterProperties

## Properties

| Name                      | Type                                                                                                                          | Description                                                                                                                                                    | Notes       |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| **postgres\_version**     | **String**                                                                                                                    | The PostgreSQL version of your cluster.                                                                                                                        |             |
| **instances**             | **Integer**                                                                                                                   | The total number of instances in the cluster (one master and n-1 standbys).                                                                                    |             |
| **cores**                 | **Integer**                                                                                                                   | The number of CPU cores per instance.                                                                                                                          |             |
| **ram**                   | **Integer**                                                                                                                   | The amount of memory per instance in megabytes. Has to be a multiple of 1024.                                                                                  |             |
| **storage\_size**         | **Integer**                                                                                                                   | The amount of storage per instance in megabytes.                                                                                                               |             |
| **storage\_type**         | [**StorageType**](https://docs.ionos.com/sections-test/ruby-sdk/dbaas-postgres-ruby-sdk/models/storagetype)                   |                                                                                                                                                                |             |
| **connections**           | [**Array\<Connection>**](https://docs.ionos.com/sections-test/ruby-sdk/dbaas-postgres-ruby-sdk/models/connection)             |                                                                                                                                                                |             |
| **location**              | **String**                                                                                                                    | The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. |             |
| **backup\_location**      | **String**                                                                                                                    | The S3 location where the backups will be stored.                                                                                                              | \[optional] |
| **display\_name**         | **String**                                                                                                                    | The friendly name of your cluster.                                                                                                                             |             |
| **maintenance\_window**   | [**MaintenanceWindow**](https://docs.ionos.com/sections-test/ruby-sdk/dbaas-postgres-ruby-sdk/models/maintenancewindow)       |                                                                                                                                                                | \[optional] |
| **credentials**           | [**DBUser**](https://docs.ionos.com/sections-test/ruby-sdk/dbaas-postgres-ruby-sdk/models/dbuser)                             |                                                                                                                                                                |             |
| **synchronization\_mode** | [**SynchronizationMode**](https://docs.ionos.com/sections-test/ruby-sdk/dbaas-postgres-ruby-sdk/models/synchronizationmode)   |                                                                                                                                                                |             |
| **from\_backup**          | [**CreateRestoreRequest**](https://docs.ionos.com/sections-test/ruby-sdk/dbaas-postgres-ruby-sdk/models/createrestorerequest) |                                                                                                                                                                | \[optional] |

## Example

```ruby
require 'ionoscloud-dbaas-postgres'

instance = IonoscloudDbaasPostgres::CreateClusterProperties.new(
  postgres_version: 13,
  instances: 2,
  cores: 4,
  ram: 2048,
  storage_size: 5000,
  storage_type: null,
  connections: null,
  location: de/fra,
  backup_location: de,
  display_name: PostgreSQL cluster,
  maintenance_window: null,
  credentials: null,
  synchronization_mode: null,
  from_backup: null
)
```
