@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
94 lines • 2.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get information about a HealthCheck.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const healthCheck = gcp.compute.getHealthCheck({
* name: "my-hc",
* });
* ```
*/
export declare function getHealthCheck(args: GetHealthCheckArgs, opts?: pulumi.InvokeOptions): Promise<GetHealthCheckResult>;
/**
* A collection of arguments for invoking getHealthCheck.
*/
export interface GetHealthCheckArgs {
/**
* Name of the resource.
*
* - - -
*/
name: string;
/**
* The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getHealthCheck.
*/
export interface GetHealthCheckResult {
readonly checkIntervalSec: number;
readonly creationTimestamp: string;
readonly deletionPolicy: string;
readonly description: string;
readonly grpcHealthChecks: outputs.compute.GetHealthCheckGrpcHealthCheck[];
readonly grpcTlsHealthChecks: outputs.compute.GetHealthCheckGrpcTlsHealthCheck[];
readonly healthyThreshold: number;
readonly http2HealthChecks: outputs.compute.GetHealthCheckHttp2HealthCheck[];
readonly httpHealthChecks: outputs.compute.GetHealthCheckHttpHealthCheck[];
readonly httpsHealthChecks: outputs.compute.GetHealthCheckHttpsHealthCheck[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly logConfigs: outputs.compute.GetHealthCheckLogConfig[];
readonly name: string;
readonly project?: string;
readonly selfLink: string;
readonly sourceRegions: string[];
readonly sslHealthChecks: outputs.compute.GetHealthCheckSslHealthCheck[];
readonly tcpHealthChecks: outputs.compute.GetHealthCheckTcpHealthCheck[];
readonly timeoutSec: number;
readonly type: string;
readonly unhealthyThreshold: number;
}
/**
* Get information about a HealthCheck.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const healthCheck = gcp.compute.getHealthCheck({
* name: "my-hc",
* });
* ```
*/
export declare function getHealthCheckOutput(args: GetHealthCheckOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHealthCheckResult>;
/**
* A collection of arguments for invoking getHealthCheck.
*/
export interface GetHealthCheckOutputArgs {
/**
* Name of the resource.
*
* - - -
*/
name: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getHealthCheck.d.ts.map