@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
96 lines (95 loc) • 2.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get information about a Google Cloud Run Service. For more information see
* the [official documentation](https://cloud.google.com/run/docs/)
* and [API](https://cloud.google.com/run/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const run_service = gcp.cloudrun.getService({
* name: "my-service",
* location: "us-central1",
* });
* ```
*/
export declare function getService(args: GetServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceResult>;
/**
* A collection of arguments for invoking getService.
*/
export interface GetServiceArgs {
/**
* The location of the cloud run instance. eg us-central1
*
* - - -
*/
location: string;
/**
* The name of the Cloud Run Service.
*/
name: string;
/**
* 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 getService.
*/
export interface GetServiceResult {
readonly autogenerateRevisionName: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
readonly metadatas: outputs.cloudrun.GetServiceMetadata[];
readonly name: string;
readonly project?: string;
readonly statuses: outputs.cloudrun.GetServiceStatus[];
readonly templates: outputs.cloudrun.GetServiceTemplate[];
readonly traffics: outputs.cloudrun.GetServiceTraffic[];
}
/**
* Get information about a Google Cloud Run Service. For more information see
* the [official documentation](https://cloud.google.com/run/docs/)
* and [API](https://cloud.google.com/run/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const run_service = gcp.cloudrun.getService({
* name: "my-service",
* location: "us-central1",
* });
* ```
*/
export declare function getServiceOutput(args: GetServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceResult>;
/**
* A collection of arguments for invoking getService.
*/
export interface GetServiceOutputArgs {
/**
* The location of the cloud run instance. eg us-central1
*
* - - -
*/
location: pulumi.Input<string>;
/**
* The name of the Cloud Run Service.
*/
name: pulumi.Input<string>;
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}