@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
114 lines (113 loc) • 3.63 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get information about a Yandex Database serverless cluster.
* For more information, see [the official documentation](https://cloud.yandex.com/en/docs/ydb/concepts/serverless_and_dedicated).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const myDatabase = pulumi.output(yandex.getYdbDatabaseServerless({
* databaseId: "some_ydb_serverless_database_id",
* }));
*
* export const ydbApiEndpoint = myDatabase.ydbApiEndpoint;
* ```
*/
export declare function getYdbDatabaseServerless(args?: GetYdbDatabaseServerlessArgs, opts?: pulumi.InvokeOptions): Promise<GetYdbDatabaseServerlessResult>;
/**
* A collection of arguments for invoking getYdbDatabaseServerless.
*/
export interface GetYdbDatabaseServerlessArgs {
/**
* ID of the Yandex Database serverless cluster.
*/
databaseId?: string;
/**
* ID of the folder that the Yandex Database serverless cluster belongs to.
* It will be deduced from provider configuration if not set explicitly.
*/
folderId?: string;
/**
* Name of the Yandex Database serverless cluster.
*/
name?: string;
}
/**
* A collection of values returned by getYdbDatabaseServerless.
*/
export interface GetYdbDatabaseServerlessResult {
/**
* The Yandex Database serverless cluster creation timestamp.
*/
readonly createdAt: string;
readonly databaseId?: string;
/**
* Full database path of the Yandex Database serverless cluster.
* Useful for SDK configuration.
*/
readonly databasePath: string;
/**
* A description of the Yandex Database serverless cluster.
*/
readonly description: string;
/**
* Document API endpoint of the Yandex Database serverless cluster.
*/
readonly documentApiEndpoint: string;
readonly folderId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* A set of key/value label pairs assigned to the Yandex Database serverless cluster.
*/
readonly labels: {
[key: string]: string;
};
/**
* Location ID of the Yandex Database serverless cluster.
*/
readonly locationId: string;
readonly name?: string;
/**
* Status of the Yandex Database serverless cluster.
*/
readonly status: string;
/**
* Whether TLS is enabled for the Yandex Database serverless cluster.
* Useful for SDK configuration.
*/
readonly tlsEnabled: boolean;
/**
* API endpoint of the Yandex Database serverless cluster.
* Useful for SDK configuration.
*/
readonly ydbApiEndpoint: string;
/**
* Full endpoint of the Yandex Database serverless cluster.
*/
readonly ydbFullEndpoint: string;
}
export declare function getYdbDatabaseServerlessOutput(args?: GetYdbDatabaseServerlessOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetYdbDatabaseServerlessResult>;
/**
* A collection of arguments for invoking getYdbDatabaseServerless.
*/
export interface GetYdbDatabaseServerlessOutputArgs {
/**
* ID of the Yandex Database serverless cluster.
*/
databaseId?: pulumi.Input<string>;
/**
* ID of the folder that the Yandex Database serverless cluster belongs to.
* It will be deduced from provider configuration if not set explicitly.
*/
folderId?: pulumi.Input<string>;
/**
* Name of the Yandex Database serverless cluster.
*/
name?: pulumi.Input<string>;
}