UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

101 lines 3.55 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get information about a Cloud Run Service. * * For more information see the [official documentation](https://cloud.google.com/run/docs/) and * the [API](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.cloudrun.getService({ * location: defaultGoogleCloudRunService.location, * name: defaultGoogleCloudRunService.name, * }); * ``` */ 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; /** * Name must be unique within a Google Cloud project and region. * Is required when creating resources. Name is primarily intended * for creation idempotence and configuration definition. Cannot be updated. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ 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 getService. */ export interface GetServiceResult { readonly autogenerateRevisionName: boolean; readonly deletionPolicy: string; /** * 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 Cloud Run Service. * * For more information see the [official documentation](https://cloud.google.com/run/docs/) and * the [API](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.cloudrun.getService({ * location: defaultGoogleCloudRunService.location, * name: defaultGoogleCloudRunService.name, * }); * ``` */ 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>; /** * Name must be unique within a Google Cloud project and region. * Is required when creating resources. Name is primarily intended * for creation idempotence and configuration definition. Cannot be updated. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ 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=getService.d.ts.map