Skip to content

googlePubsubLiteReservation

A named resource representing a shared pool of capacity.

To get more information about Reservation, see:

Example Usage - Pubsub Lite Reservation Basic

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleProjectProject = new google.dataGoogleProject.DataGoogleProject(
  this,
  "project",
  {}
);
new google.pubsubLiteReservation.PubsubLiteReservation(this, "example", {
  name: "example-reservation",
  project: dataGoogleProjectProject.number,
  throughput_capacity: 2,
});

Argument Reference

The following arguments are supported:

  • throughputCapacity - (Required) The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages.

  • name - (Required) Name of the reservation.


  • region - (Optional) The region of the pubsub lite reservation.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/{{project}}/locations/{{region}}/reservations/{{name}}

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • update - Default is 20 minutes.
  • delete - Default is 20 minutes.

Import

Reservation can be imported using any of these accepted formats:

$ terraform import google_pubsub_lite_reservation.default projects/{{project}}/locations/{{region}}/reservations/{{name}}
$ terraform import google_pubsub_lite_reservation.default {{project}}/{{region}}/{{name}}
$ terraform import google_pubsub_lite_reservation.default {{region}}/{{name}}
$ terraform import google_pubsub_lite_reservation.default {{name}}

User Project Overrides

This resource supports User Project Overrides.