@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
140 lines (139 loc) • 4.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get information about a Google Cloud Run v2 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 myService = gcp.cloudrunv2.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 instance. eg us-central1
*
* - - -
*/
location?: string;
/**
* The name of the Cloud Run v2 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 annotations: {
[key: string]: string;
};
readonly binaryAuthorizations: outputs.cloudrunv2.GetServiceBinaryAuthorization[];
readonly buildConfigs: outputs.cloudrunv2.GetServiceBuildConfig[];
readonly client: string;
readonly clientVersion: string;
readonly conditions: outputs.cloudrunv2.GetServiceCondition[];
readonly createTime: string;
readonly creator: string;
readonly customAudiences: string[];
readonly defaultUriDisabled: boolean;
readonly deleteTime: string;
readonly deletionProtection: boolean;
readonly description: string;
readonly effectiveAnnotations: {
[key: string]: string;
};
readonly effectiveLabels: {
[key: string]: string;
};
readonly etag: string;
readonly expireTime: string;
readonly generation: string;
readonly iapEnabled: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ingress: string;
readonly invokerIamDisabled: boolean;
readonly labels: {
[key: string]: string;
};
readonly lastModifier: string;
readonly latestCreatedRevision: string;
readonly latestReadyRevision: string;
readonly launchStage: string;
readonly location?: string;
readonly multiRegionSettings: outputs.cloudrunv2.GetServiceMultiRegionSetting[];
readonly name: string;
readonly observedGeneration: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly reconciling: boolean;
readonly scalings: outputs.cloudrunv2.GetServiceScaling[];
readonly templates: outputs.cloudrunv2.GetServiceTemplate[];
readonly terminalConditions: outputs.cloudrunv2.GetServiceTerminalCondition[];
readonly trafficStatuses: outputs.cloudrunv2.GetServiceTrafficStatus[];
readonly traffics: outputs.cloudrunv2.GetServiceTraffic[];
readonly uid: string;
readonly updateTime: string;
readonly uri: string;
readonly urls: string[];
}
/**
* Get information about a Google Cloud Run v2 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 myService = gcp.cloudrunv2.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 instance. eg us-central1
*
* - - -
*/
location?: pulumi.Input<string>;
/**
* The name of the Cloud Run v2 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>;
}