import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets details of a single Cluster. */ export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetClusterArgs { clusterId: string; location: string; project?: string; view?: string; } export interface GetClusterResult { /** * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 */ readonly annotations: { [key: string]: string; }; /** * The automated backup policy for this cluster. If no policy is provided then the default policy will be used. If backups are supported for the cluster, the default policy takes one backup a day, has a backup window of 1 hour, and retains backups for 14 days. For more information on the defaults, consult the documentation for the message type. */ readonly automatedBackupPolicy: outputs.alloydb.v1.AutomatedBackupPolicyResponse; /** * Cluster created from backup. */ readonly backupSource: outputs.alloydb.v1.BackupSourceResponse; /** * The type of the cluster. This is an output-only field and it's populated at the Cluster creation time or the Cluster promotion time. The cluster type is determined by which RPC was used to create the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster` */ readonly clusterType: string; /** * Optional. Continuous backup configuration for this cluster. */ readonly continuousBackupConfig: outputs.alloydb.v1.ContinuousBackupConfigResponse; /** * Continuous backup properties for this cluster. */ readonly continuousBackupInfo: outputs.alloydb.v1.ContinuousBackupInfoResponse; /** * Create time stamp */ readonly createTime: string; /** * Optional. The database engine major version. This is an optional field and it is populated at the Cluster creation time. If a database version is not supplied at cluster creation time, then a default database version will be used. */ readonly databaseVersion: string; /** * Delete time stamp */ readonly deleteTime: string; /** * User-settable and human-readable display name for the Cluster. */ readonly displayName: string; /** * Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data. */ readonly encryptionConfig: outputs.alloydb.v1.EncryptionConfigResponse; /** * The encryption information for the cluster. */ readonly encryptionInfo: outputs.alloydb.v1.EncryptionInfoResponse; /** * For Resource freshness validation (https://google.aip.dev/154) */ readonly etag: string; /** * Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored. */ readonly initialUser: outputs.alloydb.v1.UserPasswordResponse; /** * Labels as key value pairs */ readonly labels: { [key: string]: string; }; /** * Cluster created via DMS migration. */ readonly migrationSource: outputs.alloydb.v1.MigrationSourceResponse; /** * The name of the cluster resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id} where the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the cluster resource name is the name of the parent resource: * projects/{project}/locations/{region} */ readonly name: string; /** * The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project}/global/networks/{network_id}". This is required to create a cluster. Deprecated, use network_config.network instead. * * @deprecated Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project}/global/networks/{network_id}". This is required to create a cluster. Deprecated, use network_config.network instead. */ readonly network: string; readonly networkConfig: outputs.alloydb.v1.NetworkConfigResponse; /** * Cross Region replication config specific to PRIMARY cluster. */ readonly primaryConfig: outputs.alloydb.v1.PrimaryConfigResponse; /** * 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: boolean; /** * Cross Region replication config specific to SECONDARY cluster. */ readonly secondaryConfig: outputs.alloydb.v1.SecondaryConfigResponse; /** * SSL configuration for this AlloyDB cluster. */ readonly sslConfig: outputs.alloydb.v1.SslConfigResponse; /** * The current serving state of the cluster. */ readonly state: string; /** * The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted. */ readonly uid: string; /** * Update time stamp */ readonly updateTime: string; } /** * Gets details of a single Cluster. */ export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetClusterOutputArgs { clusterId: pulumi.Input; location: pulumi.Input; project?: pulumi.Input; view?: pulumi.Input; }