ReservationAssignment

class ReservationAssignment : KotlinCustomResource

The BigqueryReservation Assignment resource

Example Usage

Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigquery.Reservation;
import com.pulumi.gcp.bigquery.ReservationArgs;
import com.pulumi.gcp.bigquery.ReservationAssignment;
import com.pulumi.gcp.bigquery.ReservationAssignmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basic = new Reservation("basic", ReservationArgs.builder()
.project("my-project-name")
.location("us-central1")
.slotCapacity(0)
.ignoreIdleSlots(false)
.build());
var primary = new ReservationAssignment("primary", ReservationAssignmentArgs.builder()
.assignee("projects/my-project-name")
.jobType("PIPELINE")
.reservation(basic.id())
.build());
}
}

Import

Assignment can be imported using any of these accepted formats

$ pulumi import gcp:bigquery/reservationAssignment:ReservationAssignment default projects/{{project}}/locations/{{location}}/reservations/{{reservation}}/assignments/{{name}}
$ pulumi import gcp:bigquery/reservationAssignment:ReservationAssignment default {{project}}/{{location}}/{{reservation}}/{{name}}
$ pulumi import gcp:bigquery/reservationAssignment:ReservationAssignment default {{location}}/{{reservation}}/{{name}}

Properties

Link copied to clipboard
val assignee: Output<String>

The resource which will use the reservation. E.g. projects/myproject, folders/123, organizations/456.

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

Types of job, which could be specified when using the reservation. Possible values: JOB_TYPE_UNSPECIFIED, PIPELINE, QUERY

Link copied to clipboard
val location: Output<String>

The location for the resource

Link copied to clipboard
val name: Output<String>

Output only. The resource name of the assignment.

Link copied to clipboard
val project: Output<String>

The project for the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reservation: Output<String>

The reservation for the resource

Link copied to clipboard
val state: Output<String>

Assignment will remain in PENDING state if no active capacity commitment is present. It will become ACTIVE when some capacity commitment becomes active. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE

Link copied to clipboard
val urn: Output<String>