1. Packages
  2. Google Cloud Native
  3. API Docs
  4. pubsublite
  5. pubsublite/v1
  6. Reservation

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.pubsublite/v1.Reservation

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a new reservation.

    Create Reservation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Reservation(name: string, args: ReservationArgs, opts?: CustomResourceOptions);
    @overload
    def Reservation(resource_name: str,
                    args: ReservationArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Reservation(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    reservation_id: Optional[str] = None,
                    location: Optional[str] = None,
                    name: Optional[str] = None,
                    project: Optional[str] = None,
                    throughput_capacity: Optional[str] = None)
    func NewReservation(ctx *Context, name string, args ReservationArgs, opts ...ResourceOption) (*Reservation, error)
    public Reservation(string name, ReservationArgs args, CustomResourceOptions? opts = null)
    public Reservation(String name, ReservationArgs args)
    public Reservation(String name, ReservationArgs args, CustomResourceOptions options)
    
    type: google-native:pubsublite/v1:Reservation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ReservationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ReservationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReservationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var examplereservationResourceResourceFromPubsublitev1 = new GoogleNative.Pubsublite.V1.Reservation("examplereservationResourceResourceFromPubsublitev1", new()
    {
        ReservationId = "string",
        Location = "string",
        Name = "string",
        Project = "string",
        ThroughputCapacity = "string",
    });
    
    example, err := pubsublite.NewReservation(ctx, "examplereservationResourceResourceFromPubsublitev1", &pubsublite.ReservationArgs{
    	ReservationId:      pulumi.String("string"),
    	Location:           pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Project:            pulumi.String("string"),
    	ThroughputCapacity: pulumi.String("string"),
    })
    
    var examplereservationResourceResourceFromPubsublitev1 = new Reservation("examplereservationResourceResourceFromPubsublitev1", ReservationArgs.builder()
        .reservationId("string")
        .location("string")
        .name("string")
        .project("string")
        .throughputCapacity("string")
        .build());
    
    examplereservation_resource_resource_from_pubsublitev1 = google_native.pubsublite.v1.Reservation("examplereservationResourceResourceFromPubsublitev1",
        reservation_id="string",
        location="string",
        name="string",
        project="string",
        throughput_capacity="string")
    
    const examplereservationResourceResourceFromPubsublitev1 = new google_native.pubsublite.v1.Reservation("examplereservationResourceResourceFromPubsublitev1", {
        reservationId: "string",
        location: "string",
        name: "string",
        project: "string",
        throughputCapacity: "string",
    });
    
    type: google-native:pubsublite/v1:Reservation
    properties:
        location: string
        name: string
        project: string
        reservationId: string
        throughputCapacity: string
    

    Reservation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Reservation resource accepts the following input properties:

    ReservationId string
    Required. The ID to use for the reservation, which will become the final component of the reservation's name. This value is structured like: my-reservation-name.
    Location string
    Name string
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    Project string
    ThroughputCapacity string
    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. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    ReservationId string
    Required. The ID to use for the reservation, which will become the final component of the reservation's name. This value is structured like: my-reservation-name.
    Location string
    Name string
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    Project string
    ThroughputCapacity string
    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. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    reservationId String
    Required. The ID to use for the reservation, which will become the final component of the reservation's name. This value is structured like: my-reservation-name.
    location String
    name String
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    project String
    throughputCapacity String
    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. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    reservationId string
    Required. The ID to use for the reservation, which will become the final component of the reservation's name. This value is structured like: my-reservation-name.
    location string
    name string
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    project string
    throughputCapacity string
    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. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    reservation_id str
    Required. The ID to use for the reservation, which will become the final component of the reservation's name. This value is structured like: my-reservation-name.
    location str
    name str
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    project str
    throughput_capacity str
    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. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.
    reservationId String
    Required. The ID to use for the reservation, which will become the final component of the reservation's name. This value is structured like: my-reservation-name.
    location String
    name String
    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
    project String
    throughputCapacity String
    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. Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Reservation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi