import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A managed alloydb cluster. * * To get more information about Cluster, see: * * * [API documentation](https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.clusters/create) * * How-to Guides * * [AlloyDB](https://cloud.google.com/alloydb/docs/) * * > **Note:** Users can promote a secondary cluster to a primary cluster with the help of `clusterType`. * To promote, users have to set the `clusterType` property as `PRIMARY` and remove the `secondaryConfig` field from cluster configuration. * See Example. * * Switchover is supported in terraform by refreshing the state of the terraform configurations. * The switchover operation still needs to be called outside of terraform. * After the switchover operation is completed successfully: * 1. Refresh the state of the AlloyDB resources by running `pulumi up -refresh-only --auto-approve` . * 2. Manually update the terraform configuration file(s) to match the actual state of the resources by modifying the `clusterType` and `secondaryConfig` fields. * 3. Verify the sync of terraform state by running `pulumi preview` and ensure that the infrastructure matches the configuration and no changes are required. * * > **Note:** All arguments marked as write-only values will not be stored in the state: `initial_user.password_wo`. * Read more about Write-only Arguments. * * ## Example Usage * * ### Alloydb Cluster Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const defaultNetwork = new gcp.compute.Network("default", {name: "alloydb-cluster"}); * const _default = new gcp.alloydb.Cluster("default", { * clusterId: "alloydb-cluster", * location: "us-central1", * networkConfig: { * network: defaultNetwork.id, * }, * deletionProtection: false, * }); * const project = gcp.organizations.getProject({}); * ``` * ### Alloydb Cluster Before Upgrade * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.compute.getNetwork({ * name: "alloydb-network", * }); * const defaultCluster = new gcp.alloydb.Cluster("default", { * clusterId: "alloydb-cluster", * location: "us-central1", * networkConfig: { * network: _default.then(_default => _default.id), * }, * databaseVersion: "POSTGRES_14", * initialUser: { * password: "alloydb-cluster", * }, * deletionProtection: false, * }); * const defaultInstance = new gcp.alloydb.Instance("default", { * cluster: defaultCluster.name, * instanceId: "alloydb-instance", * instanceType: "PRIMARY", * machineConfig: { * cpuCount: 2, * }, * }); * ``` * ### Alloydb Cluster After Upgrade * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.compute.getNetwork({ * name: "alloydb-network", * }); * const defaultCluster = new gcp.alloydb.Cluster("default", { * clusterId: "alloydb-cluster", * location: "us-central1", * networkConfig: { * network: _default.then(_default => _default.id), * }, * databaseVersion: "POSTGRES_15", * initialUser: { * password: "alloydb-cluster", * }, * deletionProtection: false, * }); * const defaultInstance = new gcp.alloydb.Instance("default", { * cluster: defaultCluster.name, * instanceId: "alloydb-instance", * instanceType: "PRIMARY", * machineConfig: { * cpuCount: 2, * }, * }); * ``` * ### Alloydb Cluster Full * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.compute.Network("default", {name: "alloydb-cluster-full"}); * const full = new gcp.alloydb.Cluster("full", { * clusterId: "alloydb-cluster-full", * location: "us-central1", * networkConfig: { * network: _default.id, * }, * databaseVersion: "POSTGRES_15", * initialUser: { * user: "alloydb-cluster-full", * password: "alloydb-cluster-full", * }, * continuousBackupConfig: { * enabled: true, * recoveryWindowDays: 14, * }, * automatedBackupPolicy: { * location: "us-central1", * backupWindow: "1800s", * enabled: true, * weeklySchedule: { * daysOfWeeks: ["MONDAY"], * startTimes: [{ * hours: 23, * minutes: 0, * seconds: 0, * nanos: 0, * }], * }, * quantityBasedRetention: { * count: 1, * }, * labels: { * test: "alloydb-cluster-full", * }, * }, * labels: { * test: "alloydb-cluster-full", * }, * deletionProtection: false, * }); * const project = gcp.organizations.getProject({}); * ``` * ### Alloydb Cluster Restore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.compute.getNetwork({ * name: "alloydb-network", * }); * const source = new gcp.alloydb.Cluster("source", { * clusterId: "alloydb-source-cluster", * location: "us-central1", * network: _default.then(_default => _default.id), * initialUser: { * password: "alloydb-source-cluster", * }, * deletionProtection: false, * }); * const privateIpAlloc = new gcp.compute.GlobalAddress("private_ip_alloc", { * name: "alloydb-source-cluster", * addressType: "INTERNAL", * purpose: "VPC_PEERING", * prefixLength: 16, * network: _default.then(_default => _default.id), * }); * const vpcConnection = new gcp.servicenetworking.Connection("vpc_connection", { * network: _default.then(_default => _default.id), * service: "servicenetworking.googleapis.com", * reservedPeeringRanges: [privateIpAlloc.name], * }); * const sourceInstance = new gcp.alloydb.Instance("source", { * cluster: source.name, * instanceId: "alloydb-instance", * instanceType: "PRIMARY", * machineConfig: { * cpuCount: 2, * }, * }, { * dependsOn: [vpcConnection], * }); * const sourceBackup = new gcp.alloydb.Backup("source", { * backupId: "alloydb-backup", * location: "us-central1", * clusterName: source.name, * }, { * dependsOn: [sourceInstance], * }); * const restoredFromBackup = new gcp.alloydb.Cluster("restored_from_backup", { * clusterId: "alloydb-backup-restored", * location: "us-central1", * networkConfig: { * network: _default.then(_default => _default.id), * }, * restoreBackupSource: { * backupName: sourceBackup.name, * }, * deletionProtection: false, * }); * const restoredViaPitr = new gcp.alloydb.Cluster("restored_via_pitr", { * clusterId: "alloydb-pitr-restored", * location: "us-central1", * networkConfig: { * network: _default.then(_default => _default.id), * }, * restoreContinuousBackupSource: { * cluster: source.name, * pointInTime: "2023-08-03T19:19:00.094Z", * }, * deletionProtection: false, * }); * const project = gcp.organizations.getProject({}); * ``` * ### Alloydb Secondary Cluster Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.compute.Network("default", {name: "alloydb-secondary-cluster"}); * const primary = new gcp.alloydb.Cluster("primary", { * clusterId: "alloydb-primary-cluster", * location: "us-central1", * networkConfig: { * network: _default.id, * }, * deletionProtection: false, * }); * const privateIpAlloc = new gcp.compute.GlobalAddress("private_ip_alloc", { * name: "alloydb-secondary-cluster", * addressType: "INTERNAL", * purpose: "VPC_PEERING", * prefixLength: 16, * network: _default.id, * }); * const vpcConnection = new gcp.servicenetworking.Connection("vpc_connection", { * network: _default.id, * service: "servicenetworking.googleapis.com", * reservedPeeringRanges: [privateIpAlloc.name], * }); * const primaryInstance = new gcp.alloydb.Instance("primary", { * cluster: primary.name, * instanceId: "alloydb-primary-instance", * instanceType: "PRIMARY", * machineConfig: { * cpuCount: 2, * }, * }, { * dependsOn: [vpcConnection], * }); * const secondary = new gcp.alloydb.Cluster("secondary", { * clusterId: "alloydb-secondary-cluster", * location: "us-east1", * networkConfig: { * network: _default.id, * }, * clusterType: "SECONDARY", * continuousBackupConfig: { * enabled: false, * }, * secondaryConfig: { * primaryClusterName: primary.name, * }, * deletionProtection: false, * }, { * dependsOn: [primaryInstance], * }); * const project = gcp.organizations.getProject({}); * ``` * * ## Import * * Cluster can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/clusters/{{cluster_id}}` * * `{{project}}/{{location}}/{{cluster_id}}` * * `{{location}}/{{cluster_id}}` * * `{{cluster_id}}` * * When using the `pulumi import` command, Cluster can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:alloydb/cluster:Cluster default projects/{{project}}/locations/{{location}}/clusters/{{cluster_id}} * $ pulumi import gcp:alloydb/cluster:Cluster default {{project}}/{{location}}/{{cluster_id}} * $ pulumi import gcp:alloydb/cluster:Cluster default {{location}}/{{cluster_id}} * $ pulumi import gcp:alloydb/cluster:Cluster default {{cluster_id}} * ``` */ export declare class Cluster extends pulumi.CustomResource { /** * Get an existing Cluster resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ClusterState, opts?: pulumi.CustomResourceOptions): Cluster; /** * Returns true if the given object is an instance of Cluster. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Cluster; /** * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 * An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ readonly annotations: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The automated backup policy for this cluster. AutomatedBackupPolicy is disabled by default. * Structure is documented below. */ readonly automatedBackupPolicy: pulumi.Output; /** * Cluster created from backup. * Structure is documented below. */ readonly backupSources: pulumi.Output; /** * Cluster created from a BackupDR backup. * Structure is documented below. */ readonly backupdrBackupSources: pulumi.Output; /** * The ID of the alloydb cluster. */ readonly clusterId: pulumi.Output; /** * The type of cluster. If not set, defaults to PRIMARY. * Default value is `PRIMARY`. * Possible values are: `PRIMARY`, `SECONDARY`. */ readonly clusterType: pulumi.Output; /** * The continuous backup config for this cluster. * If no policy is provided then the default policy will be used. The default policy takes one backup a day and retains backups for 14 days. * Structure is documented below. */ readonly continuousBackupConfig: pulumi.Output; /** * ContinuousBackupInfo describes the continuous backup properties of a cluster. * Structure is documented below. */ readonly continuousBackupInfos: pulumi.Output; /** * The database engine major version. This is an optional field and it's populated at the Cluster creation time. * Note: Changing this field to a higer version results in upgrading the AlloyDB cluster which is an irreversible change. */ readonly databaseVersion: pulumi.Output; /** * Policy to determine if the cluster should be deleted forcefully. * Deleting a cluster forcefully, deletes the cluster and all its associated instances within the cluster. * Deleting a Secondary cluster with a secondary instance REQUIRES setting deletionPolicy = "FORCE" otherwise an error is returned. This is needed as there is no support to delete just the secondary instance, and the only way to delete secondary instance is to delete the associated secondary cluster forcefully which also deletes the secondary instance. * Possible values: DEFAULT, FORCE */ readonly deletionPolicy: pulumi.Output; /** * Whether Terraform will be prevented from destroying the cluster. * When the field is set to true or unset in Terraform state, a `pulumi up` * or `terraform destroy` that would delete the cluster will fail. * When the field is set to false, deleting the cluster is allowed. */ readonly deletionProtection: pulumi.Output; /** * User-settable and human-readable display name for the Cluster. */ readonly displayName: pulumi.Output; /** * All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services. */ readonly effectiveAnnotations: pulumi.Output<{ [key: string]: string; }>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ readonly effectiveLabels: pulumi.Output<{ [key: string]: string; }>; /** * EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). * Structure is documented below. */ readonly encryptionConfig: pulumi.Output; /** * (Output) * Output only. The encryption information for the WALs and backups required for ContinuousBackup. * Structure is documented below. */ readonly encryptionInfos: pulumi.Output; /** * For Resource freshness validation (https://google.aip.dev/154) */ readonly etag: pulumi.Output; /** * Initial user to setup during cluster creation. If unset for new Clusters, a postgres role with null password is created. You will need to create additional users or set the password in order to log in. * Structure is documented below. */ readonly initialUser: pulumi.Output; /** * User-defined labels for the alloydb cluster. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The location where the alloydb cluster should reside. */ readonly location: pulumi.Output; /** * MaintenanceUpdatePolicy defines the policy for system updates. * Structure is documented below. */ readonly maintenanceUpdatePolicy: pulumi.Output; /** * Cluster created via DMS migration. * Structure is documented below. */ readonly migrationSources: pulumi.Output; /** * The name of the cluster resource. */ readonly name: pulumi.Output; /** * Metadata related to network configuration. * Structure is documented below. */ readonly networkConfig: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * Configuration for Private Service Connect (PSC) for the cluster. * Structure is documented below. */ readonly pscConfig: pulumi.Output; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * Output only. Reconciling (https://google.aip.dev/128#reconciliation). * Set to true if the current state of Cluster does not match the user's intended state, and the service is actively updating the resource to reconcile them. * This can happen due to user-triggered updates or system actions like failover or maintenance. */ readonly reconciling: pulumi.Output; /** * The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ readonly restoreBackupSource: pulumi.Output; /** * The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ readonly restoreBackupdrBackupSource: pulumi.Output; /** * The BackupDR source used for point in time recovery. Conflicts with 'restore_backupdr_backup_source', 'restore_continuous_backup_source' and 'restore_backupdr_backup_source', they can't be set togeter. * Structure is documented below. */ readonly restoreBackupdrPitrSource: pulumi.Output; /** * The source when restoring via point in time recovery (PITR). Conflicts with 'restore_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ readonly restoreContinuousBackupSource: pulumi.Output; /** * Configuration of the secondary cluster for Cross Region Replication. This should be set if and only if the cluster is of type SECONDARY. * Structure is documented below. */ readonly secondaryConfig: pulumi.Output; /** * Set to true to skip awaiting on the major version upgrade of the cluster. * Possible values: true, false * Default value: "true" */ readonly skipAwaitMajorVersionUpgrade: pulumi.Output; /** * Output only. The current serving state of the cluster. */ readonly state: pulumi.Output; /** * The subscrition type of cluster. * Possible values are: `TRIAL`, `STANDARD`. */ readonly subscriptionType: pulumi.Output; /** * Contains information and all metadata related to TRIAL clusters. * Structure is documented below. */ readonly trialMetadatas: pulumi.Output; /** * The system-generated UID of the resource. */ readonly uid: pulumi.Output; /** * Create a Cluster resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ClusterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Cluster resources. */ export interface ClusterState { /** * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 * An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ annotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The automated backup policy for this cluster. AutomatedBackupPolicy is disabled by default. * Structure is documented below. */ automatedBackupPolicy?: pulumi.Input; /** * Cluster created from backup. * Structure is documented below. */ backupSources?: pulumi.Input[]>; /** * Cluster created from a BackupDR backup. * Structure is documented below. */ backupdrBackupSources?: pulumi.Input[]>; /** * The ID of the alloydb cluster. */ clusterId?: pulumi.Input; /** * The type of cluster. If not set, defaults to PRIMARY. * Default value is `PRIMARY`. * Possible values are: `PRIMARY`, `SECONDARY`. */ clusterType?: pulumi.Input; /** * The continuous backup config for this cluster. * If no policy is provided then the default policy will be used. The default policy takes one backup a day and retains backups for 14 days. * Structure is documented below. */ continuousBackupConfig?: pulumi.Input; /** * ContinuousBackupInfo describes the continuous backup properties of a cluster. * Structure is documented below. */ continuousBackupInfos?: pulumi.Input[]>; /** * The database engine major version. This is an optional field and it's populated at the Cluster creation time. * Note: Changing this field to a higer version results in upgrading the AlloyDB cluster which is an irreversible change. */ databaseVersion?: pulumi.Input; /** * Policy to determine if the cluster should be deleted forcefully. * Deleting a cluster forcefully, deletes the cluster and all its associated instances within the cluster. * Deleting a Secondary cluster with a secondary instance REQUIRES setting deletionPolicy = "FORCE" otherwise an error is returned. This is needed as there is no support to delete just the secondary instance, and the only way to delete secondary instance is to delete the associated secondary cluster forcefully which also deletes the secondary instance. * Possible values: DEFAULT, FORCE */ deletionPolicy?: pulumi.Input; /** * Whether Terraform will be prevented from destroying the cluster. * When the field is set to true or unset in Terraform state, a `pulumi up` * or `terraform destroy` that would delete the cluster will fail. * When the field is set to false, deleting the cluster is allowed. */ deletionProtection?: pulumi.Input; /** * User-settable and human-readable display name for the Cluster. */ displayName?: pulumi.Input; /** * All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services. */ effectiveAnnotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. */ effectiveLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). * Structure is documented below. */ encryptionConfig?: pulumi.Input; /** * (Output) * Output only. The encryption information for the WALs and backups required for ContinuousBackup. * Structure is documented below. */ encryptionInfos?: pulumi.Input[]>; /** * For Resource freshness validation (https://google.aip.dev/154) */ etag?: pulumi.Input; /** * Initial user to setup during cluster creation. If unset for new Clusters, a postgres role with null password is created. You will need to create additional users or set the password in order to log in. * Structure is documented below. */ initialUser?: pulumi.Input; /** * User-defined labels for the alloydb cluster. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location where the alloydb cluster should reside. */ location?: pulumi.Input; /** * MaintenanceUpdatePolicy defines the policy for system updates. * Structure is documented below. */ maintenanceUpdatePolicy?: pulumi.Input; /** * Cluster created via DMS migration. * Structure is documented below. */ migrationSources?: pulumi.Input[]>; /** * The name of the cluster resource. */ name?: pulumi.Input; /** * Metadata related to network configuration. * Structure is documented below. */ networkConfig?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Configuration for Private Service Connect (PSC) for the cluster. * Structure is documented below. */ pscConfig?: pulumi.Input; /** * The combination of labels configured directly on the resource * and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Output only. Reconciling (https://google.aip.dev/128#reconciliation). * Set to true if the current state of Cluster does not match the user's intended state, and the service is actively updating the resource to reconcile them. * This can happen due to user-triggered updates or system actions like failover or maintenance. */ reconciling?: pulumi.Input; /** * The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ restoreBackupSource?: pulumi.Input; /** * The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ restoreBackupdrBackupSource?: pulumi.Input; /** * The BackupDR source used for point in time recovery. Conflicts with 'restore_backupdr_backup_source', 'restore_continuous_backup_source' and 'restore_backupdr_backup_source', they can't be set togeter. * Structure is documented below. */ restoreBackupdrPitrSource?: pulumi.Input; /** * The source when restoring via point in time recovery (PITR). Conflicts with 'restore_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ restoreContinuousBackupSource?: pulumi.Input; /** * Configuration of the secondary cluster for Cross Region Replication. This should be set if and only if the cluster is of type SECONDARY. * Structure is documented below. */ secondaryConfig?: pulumi.Input; /** * Set to true to skip awaiting on the major version upgrade of the cluster. * Possible values: true, false * Default value: "true" */ skipAwaitMajorVersionUpgrade?: pulumi.Input; /** * Output only. The current serving state of the cluster. */ state?: pulumi.Input; /** * The subscrition type of cluster. * Possible values are: `TRIAL`, `STANDARD`. */ subscriptionType?: pulumi.Input; /** * Contains information and all metadata related to TRIAL clusters. * Structure is documented below. */ trialMetadatas?: pulumi.Input[]>; /** * The system-generated UID of the resource. */ uid?: pulumi.Input; } /** * The set of arguments for constructing a Cluster resource. */ export interface ClusterArgs { /** * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 * An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field `effectiveAnnotations` for all of the annotations present on the resource. */ annotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The automated backup policy for this cluster. AutomatedBackupPolicy is disabled by default. * Structure is documented below. */ automatedBackupPolicy?: pulumi.Input; /** * The ID of the alloydb cluster. */ clusterId: pulumi.Input; /** * The type of cluster. If not set, defaults to PRIMARY. * Default value is `PRIMARY`. * Possible values are: `PRIMARY`, `SECONDARY`. */ clusterType?: pulumi.Input; /** * The continuous backup config for this cluster. * If no policy is provided then the default policy will be used. The default policy takes one backup a day and retains backups for 14 days. * Structure is documented below. */ continuousBackupConfig?: pulumi.Input; /** * The database engine major version. This is an optional field and it's populated at the Cluster creation time. * Note: Changing this field to a higer version results in upgrading the AlloyDB cluster which is an irreversible change. */ databaseVersion?: pulumi.Input; /** * Policy to determine if the cluster should be deleted forcefully. * Deleting a cluster forcefully, deletes the cluster and all its associated instances within the cluster. * Deleting a Secondary cluster with a secondary instance REQUIRES setting deletionPolicy = "FORCE" otherwise an error is returned. This is needed as there is no support to delete just the secondary instance, and the only way to delete secondary instance is to delete the associated secondary cluster forcefully which also deletes the secondary instance. * Possible values: DEFAULT, FORCE */ deletionPolicy?: pulumi.Input; /** * Whether Terraform will be prevented from destroying the cluster. * When the field is set to true or unset in Terraform state, a `pulumi up` * or `terraform destroy` that would delete the cluster will fail. * When the field is set to false, deleting the cluster is allowed. */ deletionProtection?: pulumi.Input; /** * User-settable and human-readable display name for the Cluster. */ displayName?: pulumi.Input; /** * EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). * Structure is documented below. */ encryptionConfig?: pulumi.Input; /** * For Resource freshness validation (https://google.aip.dev/154) */ etag?: pulumi.Input; /** * Initial user to setup during cluster creation. If unset for new Clusters, a postgres role with null password is created. You will need to create additional users or set the password in order to log in. * Structure is documented below. */ initialUser?: pulumi.Input; /** * User-defined labels for the alloydb cluster. * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. * Please refer to the field `effectiveLabels` for all of the labels present on the resource. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The location where the alloydb cluster should reside. */ location: pulumi.Input; /** * MaintenanceUpdatePolicy defines the policy for system updates. * Structure is documented below. */ maintenanceUpdatePolicy?: pulumi.Input; /** * Metadata related to network configuration. * Structure is documented below. */ networkConfig?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Configuration for Private Service Connect (PSC) for the cluster. * Structure is documented below. */ pscConfig?: pulumi.Input; /** * The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ restoreBackupSource?: pulumi.Input; /** * The source when restoring from a backup. Conflicts with 'restore_continuous_backup_source', 'restore_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ restoreBackupdrBackupSource?: pulumi.Input; /** * The BackupDR source used for point in time recovery. Conflicts with 'restore_backupdr_backup_source', 'restore_continuous_backup_source' and 'restore_backupdr_backup_source', they can't be set togeter. * Structure is documented below. */ restoreBackupdrPitrSource?: pulumi.Input; /** * The source when restoring via point in time recovery (PITR). Conflicts with 'restore_backup_source', 'restore_backupdr_backup_source' and 'restore_backupdr_pitr_source', they can't be set together. * Structure is documented below. */ restoreContinuousBackupSource?: pulumi.Input; /** * Configuration of the secondary cluster for Cross Region Replication. This should be set if and only if the cluster is of type SECONDARY. * Structure is documented below. */ secondaryConfig?: pulumi.Input; /** * Set to true to skip awaiting on the major version upgrade of the cluster. * Possible values: true, false * Default value: "true" */ skipAwaitMajorVersionUpgrade?: pulumi.Input; /** * The subscrition type of cluster. * Possible values are: `TRIAL`, `STANDARD`. */ subscriptionType?: pulumi.Input; }