1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. bigquery
  5. CapacityCommitment
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

gcp.bigquery.CapacityCommitment

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

    Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some committed period of usage. Annual commitments renew by default. Commitments can be removed after their commitment end time passes.

    In order to remove annual commitment, its plan needs to be changed to monthly or flex first.

    To get more information about CapacityCommitment, see:

    Example Usage

    Bigquery Reservation Capacity Commitment Docs

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Gcp.BigQuery.CapacityCommitment("example", new()
        {
            CapacityCommitmentId = "example-commitment",
            Edition = "ENTERPRISE",
            Location = "us-west2",
            Plan = "FLEX_FLAT_RATE",
            SlotCount = 100,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/bigquery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bigquery.NewCapacityCommitment(ctx, "example", &bigquery.CapacityCommitmentArgs{
    			CapacityCommitmentId: pulumi.String("example-commitment"),
    			Edition:              pulumi.String("ENTERPRISE"),
    			Location:             pulumi.String("us-west2"),
    			Plan:                 pulumi.String("FLEX_FLAT_RATE"),
    			SlotCount:            pulumi.Int(100),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.bigquery.CapacityCommitment;
    import com.pulumi.gcp.bigquery.CapacityCommitmentArgs;
    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 example = new CapacityCommitment("example", CapacityCommitmentArgs.builder()        
                .capacityCommitmentId("example-commitment")
                .edition("ENTERPRISE")
                .location("us-west2")
                .plan("FLEX_FLAT_RATE")
                .slotCount(100)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    example = gcp.bigquery.CapacityCommitment("example",
        capacity_commitment_id="example-commitment",
        edition="ENTERPRISE",
        location="us-west2",
        plan="FLEX_FLAT_RATE",
        slot_count=100)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const example = new gcp.bigquery.CapacityCommitment("example", {
        capacityCommitmentId: "example-commitment",
        edition: "ENTERPRISE",
        location: "us-west2",
        plan: "FLEX_FLAT_RATE",
        slotCount: 100,
    });
    
    resources:
      example:
        type: gcp:bigquery:CapacityCommitment
        properties:
          capacityCommitmentId: example-commitment
          edition: ENTERPRISE
          location: us-west2
          plan: FLEX_FLAT_RATE
          slotCount: 100
    

    Create CapacityCommitment Resource

    new CapacityCommitment(name: string, args: CapacityCommitmentArgs, opts?: CustomResourceOptions);
    @overload
    def CapacityCommitment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           capacity_commitment_id: Optional[str] = None,
                           edition: Optional[str] = None,
                           enforce_single_admin_project_per_org: Optional[str] = None,
                           location: Optional[str] = None,
                           plan: Optional[str] = None,
                           project: Optional[str] = None,
                           renewal_plan: Optional[str] = None,
                           slot_count: Optional[int] = None)
    @overload
    def CapacityCommitment(resource_name: str,
                           args: CapacityCommitmentArgs,
                           opts: Optional[ResourceOptions] = None)
    func NewCapacityCommitment(ctx *Context, name string, args CapacityCommitmentArgs, opts ...ResourceOption) (*CapacityCommitment, error)
    public CapacityCommitment(string name, CapacityCommitmentArgs args, CustomResourceOptions? opts = null)
    public CapacityCommitment(String name, CapacityCommitmentArgs args)
    public CapacityCommitment(String name, CapacityCommitmentArgs args, CustomResourceOptions options)
    
    type: gcp:bigquery:CapacityCommitment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CapacityCommitmentArgs
    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 CapacityCommitmentArgs
    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 CapacityCommitmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CapacityCommitmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CapacityCommitmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CapacityCommitment Resource Properties

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

    Inputs

    The CapacityCommitment resource accepts the following input properties:

    Plan string

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    SlotCount int

    Number of slots in this commitment.

    CapacityCommitmentId string

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    Edition string

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    EnforceSingleAdminProjectPerOrg string

    If true, fail the request if another project in the organization has a capacity commitment.

    Location string

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    RenewalPlan string

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    Plan string

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    SlotCount int

    Number of slots in this commitment.

    CapacityCommitmentId string

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    Edition string

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    EnforceSingleAdminProjectPerOrg string

    If true, fail the request if another project in the organization has a capacity commitment.

    Location string

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    RenewalPlan string

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    plan String

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    slotCount Integer

    Number of slots in this commitment.

    capacityCommitmentId String

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    edition String

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforceSingleAdminProjectPerOrg String

    If true, fail the request if another project in the organization has a capacity commitment.

    location String

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewalPlan String

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    plan string

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    slotCount number

    Number of slots in this commitment.

    capacityCommitmentId string

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    edition string

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforceSingleAdminProjectPerOrg string

    If true, fail the request if another project in the organization has a capacity commitment.

    location string

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewalPlan string

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    plan str

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    slot_count int

    Number of slots in this commitment.

    capacity_commitment_id str

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    edition str

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforce_single_admin_project_per_org str

    If true, fail the request if another project in the organization has a capacity commitment.

    location str

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewal_plan str

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    plan String

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    slotCount Number

    Number of slots in this commitment.

    capacityCommitmentId String

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    edition String

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforceSingleAdminProjectPerOrg String

    If true, fail the request if another project in the organization has a capacity commitment.

    location String

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewalPlan String

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    Outputs

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

    CommitmentEndTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    CommitmentStartTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    State string

    State of the commitment

    CommitmentEndTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    CommitmentStartTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    State string

    State of the commitment

    commitmentEndTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitmentStartTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    state String

    State of the commitment

    commitmentEndTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitmentStartTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    state string

    State of the commitment

    commitment_end_time str

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitment_start_time str

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    state str

    State of the commitment

    commitmentEndTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitmentStartTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    state String

    State of the commitment

    Look up Existing CapacityCommitment Resource

    Get an existing CapacityCommitment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CapacityCommitmentState, opts?: CustomResourceOptions): CapacityCommitment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            capacity_commitment_id: Optional[str] = None,
            commitment_end_time: Optional[str] = None,
            commitment_start_time: Optional[str] = None,
            edition: Optional[str] = None,
            enforce_single_admin_project_per_org: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            plan: Optional[str] = None,
            project: Optional[str] = None,
            renewal_plan: Optional[str] = None,
            slot_count: Optional[int] = None,
            state: Optional[str] = None) -> CapacityCommitment
    func GetCapacityCommitment(ctx *Context, name string, id IDInput, state *CapacityCommitmentState, opts ...ResourceOption) (*CapacityCommitment, error)
    public static CapacityCommitment Get(string name, Input<string> id, CapacityCommitmentState? state, CustomResourceOptions? opts = null)
    public static CapacityCommitment get(String name, Output<String> id, CapacityCommitmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CapacityCommitmentId string

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    CommitmentEndTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    CommitmentStartTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    Edition string

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    EnforceSingleAdminProjectPerOrg string

    If true, fail the request if another project in the organization has a capacity commitment.

    Location string

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    Name string

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    Plan string

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    RenewalPlan string

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    SlotCount int

    Number of slots in this commitment.

    State string

    State of the commitment

    CapacityCommitmentId string

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    CommitmentEndTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    CommitmentStartTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    Edition string

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    EnforceSingleAdminProjectPerOrg string

    If true, fail the request if another project in the organization has a capacity commitment.

    Location string

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    Name string

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    Plan string

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    RenewalPlan string

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    SlotCount int

    Number of slots in this commitment.

    State string

    State of the commitment

    capacityCommitmentId String

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    commitmentEndTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitmentStartTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    edition String

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforceSingleAdminProjectPerOrg String

    If true, fail the request if another project in the organization has a capacity commitment.

    location String

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    name String

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    plan String

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewalPlan String

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    slotCount Integer

    Number of slots in this commitment.

    state String

    State of the commitment

    capacityCommitmentId string

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    commitmentEndTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitmentStartTime string

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    edition string

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforceSingleAdminProjectPerOrg string

    If true, fail the request if another project in the organization has a capacity commitment.

    location string

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    name string

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    plan string

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewalPlan string

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    slotCount number

    Number of slots in this commitment.

    state string

    State of the commitment

    capacity_commitment_id str

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    commitment_end_time str

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitment_start_time str

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    edition str

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforce_single_admin_project_per_org str

    If true, fail the request if another project in the organization has a capacity commitment.

    location str

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    name str

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    plan str

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewal_plan str

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    slot_count int

    Number of slots in this commitment.

    state str

    State of the commitment

    capacityCommitmentId String

    The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

    commitmentEndTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    commitmentStartTime String

    The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.

    edition String

    The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS

    enforceSingleAdminProjectPerOrg String

    If true, fail the request if another project in the organization has a capacity commitment.

    location String

    The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US.

    name String

    The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

    plan String

    Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan


    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    renewalPlan String

    The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans.

    slotCount Number

    Number of slots in this commitment.

    state String

    State of the commitment

    Import

    CapacityCommitment can be imported using any of these accepted formats* projects/{{project}}/locations/{{location}}/capacityCommitments/{{capacity_commitment_id}} * {{project}}/{{location}}/{{capacity_commitment_id}} * {{location}}/{{capacity_commitment_id}} In Terraform v1.5.0 and later, use an import block to import CapacityCommitment using one of the formats above. For exampletf import {

    id = “projects/{{project}}/locations/{{location}}/capacityCommitments/{{capacity_commitment_id}}”

    to = google_bigquery_capacity_commitment.default }

     $ pulumi import gcp:bigquery/capacityCommitment:CapacityCommitment When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), CapacityCommitment can be imported using one of the formats above. For example
    
     $ pulumi import gcp:bigquery/capacityCommitment:CapacityCommitment default projects/{{project}}/locations/{{location}}/capacityCommitments/{{capacity_commitment_id}}
    
     $ pulumi import gcp:bigquery/capacityCommitment:CapacityCommitment default {{project}}/{{location}}/{{capacity_commitment_id}}
    
     $ pulumi import gcp:bigquery/capacityCommitment:CapacityCommitment default {{location}}/{{capacity_commitment_id}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the google-beta Terraform Provider.

    gcp logo
    Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi