WorkloadArgs

data class WorkloadArgs(val applicationId: Output<String>? = null, val attributes: Output<WorkloadAttributesArgs>? = null, val description: Output<String>? = null, val discoveredWorkload: Output<String>? = null, val displayName: Output<String>? = null, val location: Output<String>? = null, val project: Output<String>? = null, val workloadId: Output<String>? = null) : ConvertibleToJava<WorkloadArgs>

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:

$ pulumi import gcp:apphub/workload:Workload default projects/{{project}}/locations/{{location}}/applications/{{application_id}}/workloads/{{workload_id}}
$ pulumi import gcp:apphub/workload:Workload default {{project}}/{{location}}/{{application_id}}/{{workload_id}}
$ pulumi import gcp:apphub/workload:Workload default {{location}}/{{application_id}}/{{workload_id}}

Constructors

Link copied to clipboard
constructor(applicationId: Output<String>? = null, attributes: Output<WorkloadAttributesArgs>? = null, description: Output<String>? = null, discoveredWorkload: Output<String>? = null, displayName: Output<String>? = null, location: Output<String>? = null, project: Output<String>? = null, workloadId: Output<String>? = null)

Properties

Link copied to clipboard
val applicationId: Output<String>? = null

Part of parent. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}

Link copied to clipboard
val attributes: Output<WorkloadAttributesArgs>? = null

Consumer provided attributes. Structure is documented below.

Link copied to clipboard
val description: Output<String>? = null

User-defined description of a Workload.

Link copied to clipboard
val discoveredWorkload: Output<String>? = null

Immutable. The resource name of the original discovered workload.

Link copied to clipboard
val displayName: Output<String>? = null

User-defined name for the Workload.

Link copied to clipboard
val location: Output<String>? = null

Part of parent. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val workloadId: Output<String>? = null

The Workload identifier.

Functions

Link copied to clipboard
open override fun toJava(): WorkloadArgs