import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Workload represents a binary deployment (such as Managed Instance Groups (MIGs), GKE deployments, etc.) that performs the smallest logical subset of business functionality. It registers identified workload to the Application. * * ## Example Usage * * ## Import * * Workload can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/applications/{{application_id}}/workloads/{{workload_id}}` * * * `{{project}}/{{location}}/{{application_id}}/{{workload_id}}` * * * `{{location}}/{{application_id}}/{{workload_id}}` * * When using the `pulumi import` command, Workload can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:apphub/workload:Workload default projects/{{project}}/locations/{{location}}/applications/{{application_id}}/workloads/{{workload_id}} * ``` * * ```sh * $ pulumi import gcp:apphub/workload:Workload default {{project}}/{{location}}/{{application_id}}/{{workload_id}} * ``` * * ```sh * $ pulumi import gcp:apphub/workload:Workload default {{location}}/{{application_id}}/{{workload_id}} * ``` */ export declare class Workload extends pulumi.CustomResource { /** * Get an existing Workload resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: WorkloadState, opts?: pulumi.CustomResourceOptions): Workload; /** * Returns true if the given object is an instance of Workload. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Workload; /** * Part of `parent`. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID} */ readonly applicationId: pulumi.Output; /** * Consumer provided attributes. * Structure is documented below. */ readonly attributes: pulumi.Output; /** * Output only. Create time. */ readonly createTime: pulumi.Output; /** * User-defined description of a Workload. */ readonly description: pulumi.Output; /** * Immutable. The resource name of the original discovered workload. */ readonly discoveredWorkload: pulumi.Output; /** * User-defined name for the Workload. */ readonly displayName: pulumi.Output; /** * Part of `parent`. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID} */ readonly location: pulumi.Output; /** * Identifier. The resource name of the Workload. Format:"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}" */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * Output only. Workload state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING DETACHED */ readonly state: pulumi.Output; /** * Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format. */ readonly uid: pulumi.Output; /** * Output only. Update time. */ readonly updateTime: pulumi.Output; /** * The Workload identifier. */ readonly workloadId: pulumi.Output; /** * Properties of an underlying compute resource represented by the Workload. * Structure is documented below. */ readonly workloadProperties: pulumi.Output; /** * Reference of an underlying compute resource represented by the Workload. * Structure is documented below. */ readonly workloadReferences: pulumi.Output; /** * Create a Workload resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: WorkloadArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Workload resources. */ export interface WorkloadState { /** * Part of `parent`. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID} */ applicationId?: pulumi.Input; /** * Consumer provided attributes. * Structure is documented below. */ attributes?: pulumi.Input; /** * Output only. Create time. */ createTime?: pulumi.Input; /** * User-defined description of a Workload. */ description?: pulumi.Input; /** * Immutable. The resource name of the original discovered workload. */ discoveredWorkload?: pulumi.Input; /** * User-defined name for the Workload. */ displayName?: pulumi.Input; /** * Part of `parent`. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID} */ location?: pulumi.Input; /** * Identifier. The resource name of the Workload. Format:"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}" */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * Output only. Workload state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING DETACHED */ state?: pulumi.Input; /** * Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format. */ uid?: pulumi.Input; /** * Output only. Update time. */ updateTime?: pulumi.Input; /** * The Workload identifier. */ workloadId?: pulumi.Input; /** * Properties of an underlying compute resource represented by the Workload. * Structure is documented below. */ workloadProperties?: pulumi.Input[]>; /** * Reference of an underlying compute resource represented by the Workload. * Structure is documented below. */ workloadReferences?: pulumi.Input[]>; } /** * The set of arguments for constructing a Workload resource. */ export interface WorkloadArgs { /** * Part of `parent`. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID} */ applicationId: pulumi.Input; /** * Consumer provided attributes. * Structure is documented below. */ attributes?: pulumi.Input; /** * User-defined description of a Workload. */ description?: pulumi.Input; /** * Immutable. The resource name of the original discovered workload. */ discoveredWorkload: pulumi.Input; /** * User-defined name for the Workload. */ displayName?: pulumi.Input; /** * Part of `parent`. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID} */ location: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The Workload identifier. */ workloadId: pulumi.Input; }