Workload

class Workload : KotlinCustomResource

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}}

Properties

Link copied to clipboard
val applicationId: Output<String>

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

Link copied to clipboard

Consumer provided attributes. Structure is documented below.

Link copied to clipboard
val createTime: Output<String>

Output only. Create time.

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

User-defined description of a Workload.

Link copied to clipboard

Immutable. The resource name of the original discovered workload.

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

User-defined name for the Workload.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

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 name: Output<String>

Identifier. The resource name of the Workload. Format:"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"

Link copied to clipboard
val project: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>

Output only. Workload state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING DETACHED

Link copied to clipboard
val uid: Output<String>

Output only. A universally unique identifier (UUID) for the Workload in the UUID4 format.

Link copied to clipboard
val updateTime: Output<String>

Output only. Update time.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val workloadId: Output<String>

The Workload identifier.

Link copied to clipboard

Properties of an underlying compute resource represented by the Workload. Structure is documented below.

Link copied to clipboard

Reference of an underlying compute resource represented by the Workload. Structure is documented below.