UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

129 lines (128 loc) 3.2 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Data source for retrieving a Harness service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getService({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getService(args: GetServiceArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceResult>; /** * A collection of arguments for invoking getService. */ export interface GetServiceArgs { /** * Contains parameters related to Git Experience for remote entities */ gitDetails?: inputs.platform.GetServiceGitDetails; /** * Unique identifier of the resource. */ identifier: string; /** * Name of the resource. */ name?: string; /** * Unique identifier of the organization. */ orgId?: string; /** * Unique identifier of the project. */ projectId?: string; } /** * A collection of values returned by getService. */ export interface GetServiceResult { /** * Description of the resource. */ readonly description: string; /** * Contains parameters related to Git Experience for remote entities */ readonly gitDetails: outputs.platform.GetServiceGitDetails; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Unique identifier of the resource. */ readonly identifier: string; /** * Name of the resource. */ readonly name?: string; /** * Unique identifier of the organization. */ readonly orgId?: string; /** * Unique identifier of the project. */ readonly projectId?: string; /** * Tags to associate with the resource. */ readonly tags: string[]; /** * Input Set YAML */ readonly yaml: string; } /** * Data source for retrieving a Harness service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getService({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getServiceOutput(args: GetServiceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceResult>; /** * A collection of arguments for invoking getService. */ export interface GetServiceOutputArgs { /** * Contains parameters related to Git Experience for remote entities */ gitDetails?: pulumi.Input<inputs.platform.GetServiceGitDetailsArgs>; /** * Unique identifier of the resource. */ identifier: pulumi.Input<string>; /** * Name of the resource. */ name?: pulumi.Input<string>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; }