A named resource representing a shared pool of capacity.
To get more information about Reservation, see:
resource "google_pubsub_lite_reservation" "example" {
name = "example-reservation"
project = data.google_project.project.number
throughput_capacity = 2
}
data "google_project" "project" {
}
The following arguments are supported:
throughput_capacity
-
(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.
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}}
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.Reservation can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/reservations/{{name}}
{{project}}/{{region}}/{{name}}
{{region}}/{{name}}
{{name}}
In Terraform v1.5.0 and later, use an import
block to import Reservation using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{region}}/reservations/{{name}}"
to = google_pubsub_lite_reservation.default
}
When using the terraform import
command, Reservation can be imported using one of the formats above. For example:
$ 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}}
This resource supports User Project Overrides.