import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * The Database data source allows access to the details of an existing database within your Redis Enterprise Cloud account. * * ## Example Usage * * The following example shows how to locate a single database within a Subscription. This example assumes the subscription only contains a single database. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getDatabase({ * subscriptionId: "1234", * }); * ``` * * The following example shows how to use the name to locate a single database within a subscription that has multiple databases. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getDatabase({ * name: "first-database", * subscriptionId: "1234", * }); * ``` */ export declare function getDatabase(args: GetDatabaseArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabase. */ export interface GetDatabaseArgs { /** * The name of the database to filter returned databases */ name?: string; /** * The protocol of the database to filter returned databases */ protocol?: string; /** * The region of the database to filter returned databases */ region?: string; /** * ID of the subscription that the database belongs to */ subscriptionId: string; } /** * A collection of values returned by getDatabase. */ export interface GetDatabaseResult { /** * Set of alerts to enable on the database, documented below. */ readonly alerts: outputs.GetDatabaseAlert[]; /** * The data items eviction policy. */ readonly dataEviction: string; /** * The rate of database data persistence (in persistent storage). */ readonly dataPersistence: string; /** * The list of regular expression rules the database is sharded by. See * [the documentation on clustering](https://docs.redislabs.com/latest/rc/concepts/clustering/) for more information on the * hashing policy. */ readonly hashingPolicies: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The maximum memory usage for the database. */ readonly memoryLimitInGb: number; readonly modules: outputs.GetDatabaseModule[]; /** * The alert name */ readonly name: string; /** * The password used to access the database - not present on `memcached` protocol databases. */ readonly password: string; /** * Private endpoint to access the database */ readonly privateEndpoint: string; /** * The protocol of the database. */ readonly protocol: string; /** * Public endpoint to access the database */ readonly publicEndpoint: string; readonly region: string; /** * The set of Redis database URIs, in the format `redis://user:password@host:port`, that this * database will be a replica of. */ readonly replicaOfs: string[]; /** * Database replication. */ readonly replication: boolean; readonly subscriptionId: string; /** * Supports the Redis open-source (OSS) Cluster API. */ readonly supportOssClusterApi: boolean; /** * The throughput measurement method. */ readonly throughputMeasurementBy: string; /** * The throughput value. */ readonly throughputMeasurementValue: number; } /** * The Database data source allows access to the details of an existing database within your Redis Enterprise Cloud account. * * ## Example Usage * * The following example shows how to locate a single database within a Subscription. This example assumes the subscription only contains a single database. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getDatabase({ * subscriptionId: "1234", * }); * ``` * * The following example shows how to use the name to locate a single database within a subscription that has multiple databases. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * * const example = rediscloud.getDatabase({ * name: "first-database", * subscriptionId: "1234", * }); * ``` */ export declare function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabase. */ export interface GetDatabaseOutputArgs { /** * The name of the database to filter returned databases */ name?: pulumi.Input; /** * The protocol of the database to filter returned databases */ protocol?: pulumi.Input; /** * The region of the database to filter returned databases */ region?: pulumi.Input; /** * ID of the subscription that the database belongs to */ subscriptionId: pulumi.Input; }