@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
87 lines (86 loc) • 2.81 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get Latest Recovery Time for a given instance. For more information see the
* [official documentation](https://cloud.google.com/sql/)
* and
* [API](https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr#get-the-latest-recovery-time).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.sql.getDatabaseInstanceLatestRecoveryTime({
* instance: "sample-instance",
* });
* export const latestRecoveryTime = _default;
* ```
*/
export declare function getDatabaseInstanceLatestRecoveryTime(args: GetDatabaseInstanceLatestRecoveryTimeArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseInstanceLatestRecoveryTimeResult>;
/**
* A collection of arguments for invoking getDatabaseInstanceLatestRecoveryTime.
*/
export interface GetDatabaseInstanceLatestRecoveryTimeArgs {
/**
* The name of the instance.
*/
instance: string;
/**
* The ID of the project in which the resource belongs.
*/
project?: string;
}
/**
* A collection of values returned by getDatabaseInstanceLatestRecoveryTime.
*/
export interface GetDatabaseInstanceLatestRecoveryTimeResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The name of the instance.
*/
readonly instance: string;
/**
* Timestamp, identifies the latest recovery time of the source instance.
*/
readonly latestRecoveryTime: string;
/**
* The ID of the project in which the resource belongs.
*/
readonly project: string;
}
/**
* Get Latest Recovery Time for a given instance. For more information see the
* [official documentation](https://cloud.google.com/sql/)
* and
* [API](https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr#get-the-latest-recovery-time).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const _default = gcp.sql.getDatabaseInstanceLatestRecoveryTime({
* instance: "sample-instance",
* });
* export const latestRecoveryTime = _default;
* ```
*/
export declare function getDatabaseInstanceLatestRecoveryTimeOutput(args: GetDatabaseInstanceLatestRecoveryTimeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseInstanceLatestRecoveryTimeResult>;
/**
* A collection of arguments for invoking getDatabaseInstanceLatestRecoveryTime.
*/
export interface GetDatabaseInstanceLatestRecoveryTimeOutputArgs {
/**
* The name of the instance.
*/
instance: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
*/
project?: pulumi.Input<string>;
}