gcp.bigquery.CapacityCommitment
Explore with Pulumi AI
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:
- API documentation
- How-to Guides
Example Usage
Bigquery Reservation Capacity Commitment Docs
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.bigquery.CapacityCommitment("example", {
    capacityCommitmentId: "example-commitment",
    location: "us-west2",
    slotCount: 100,
    plan: "FLEX_FLAT_RATE",
    edition: "ENTERPRISE",
});
import pulumi
import pulumi_gcp as gcp
example = gcp.bigquery.CapacityCommitment("example",
    capacity_commitment_id="example-commitment",
    location="us-west2",
    slot_count=100,
    plan="FLEX_FLAT_RATE",
    edition="ENTERPRISE")
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/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"),
			Location:             pulumi.String("us-west2"),
			SlotCount:            pulumi.Int(100),
			Plan:                 pulumi.String("FLEX_FLAT_RATE"),
			Edition:              pulumi.String("ENTERPRISE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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",
        Location = "us-west2",
        SlotCount = 100,
        Plan = "FLEX_FLAT_RATE",
        Edition = "ENTERPRISE",
    });
});
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")
            .location("us-west2")
            .slotCount(100)
            .plan("FLEX_FLAT_RATE")
            .edition("ENTERPRISE")
            .build());
    }
}
resources:
  example:
    type: gcp:bigquery:CapacityCommitment
    properties:
      capacityCommitmentId: example-commitment
      location: us-west2
      slotCount: 100
      plan: FLEX_FLAT_RATE
      edition: ENTERPRISE
Create CapacityCommitment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CapacityCommitment(name: string, args: CapacityCommitmentArgs, opts?: CustomResourceOptions);@overload
def CapacityCommitment(resource_name: str,
                       args: CapacityCommitmentArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def CapacityCommitment(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       plan: Optional[str] = None,
                       slot_count: Optional[int] = None,
                       capacity_commitment_id: Optional[str] = None,
                       edition: Optional[str] = None,
                       enforce_single_admin_project_per_org: Optional[str] = None,
                       location: Optional[str] = None,
                       project: Optional[str] = None,
                       renewal_plan: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var capacityCommitmentResource = new Gcp.BigQuery.CapacityCommitment("capacityCommitmentResource", new()
{
    Plan = "string",
    SlotCount = 0,
    CapacityCommitmentId = "string",
    Edition = "string",
    EnforceSingleAdminProjectPerOrg = "string",
    Location = "string",
    Project = "string",
    RenewalPlan = "string",
});
example, err := bigquery.NewCapacityCommitment(ctx, "capacityCommitmentResource", &bigquery.CapacityCommitmentArgs{
	Plan:                            pulumi.String("string"),
	SlotCount:                       pulumi.Int(0),
	CapacityCommitmentId:            pulumi.String("string"),
	Edition:                         pulumi.String("string"),
	EnforceSingleAdminProjectPerOrg: pulumi.String("string"),
	Location:                        pulumi.String("string"),
	Project:                         pulumi.String("string"),
	RenewalPlan:                     pulumi.String("string"),
})
var capacityCommitmentResource = new CapacityCommitment("capacityCommitmentResource", CapacityCommitmentArgs.builder()
    .plan("string")
    .slotCount(0)
    .capacityCommitmentId("string")
    .edition("string")
    .enforceSingleAdminProjectPerOrg("string")
    .location("string")
    .project("string")
    .renewalPlan("string")
    .build());
capacity_commitment_resource = gcp.bigquery.CapacityCommitment("capacityCommitmentResource",
    plan="string",
    slot_count=0,
    capacity_commitment_id="string",
    edition="string",
    enforce_single_admin_project_per_org="string",
    location="string",
    project="string",
    renewal_plan="string")
const capacityCommitmentResource = new gcp.bigquery.CapacityCommitment("capacityCommitmentResource", {
    plan: "string",
    slotCount: 0,
    capacityCommitmentId: "string",
    edition: "string",
    enforceSingleAdminProjectPerOrg: "string",
    location: "string",
    project: "string",
    renewalPlan: "string",
});
type: gcp:bigquery:CapacityCommitment
properties:
    capacityCommitmentId: string
    edition: string
    enforceSingleAdminProjectPerOrg: string
    location: string
    plan: string
    project: string
    renewalPlan: string
    slotCount: 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.
- CapacityCommitment stringId 
- 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
- EnforceSingle stringAdmin Project Per Org 
- 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.
- CapacityCommitment stringId 
- 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
- EnforceSingle stringAdmin Project Per Org 
- 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.
- capacityCommitment StringId 
- 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
- enforceSingle StringAdmin Project Per Org 
- 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.
- capacityCommitment stringId 
- 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
- enforceSingle stringAdmin Project Per Org 
- 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_ strid 
- 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_ stradmin_ project_ per_ org 
- 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.
- capacityCommitment StringId 
- 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
- enforceSingle StringAdmin Project Per Org 
- 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:
- CommitmentEnd stringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- CommitmentStart stringTime 
- 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
- CommitmentEnd stringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- CommitmentStart stringTime 
- 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
- commitmentEnd StringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitmentStart StringTime 
- 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
- commitmentEnd stringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitmentStart stringTime 
- 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_ strtime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitment_start_ strtime 
- 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
- commitmentEnd StringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitmentStart StringTime 
- 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) -> CapacityCommitmentfunc 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)resources:  _:    type: gcp:bigquery:CapacityCommitment    get:      id: ${id}- 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.
- CapacityCommitment stringId 
- 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.
- CommitmentEnd stringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- CommitmentStart stringTime 
- 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
- EnforceSingle stringAdmin Project Per Org 
- 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
- CapacityCommitment stringId 
- 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.
- CommitmentEnd stringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- CommitmentStart stringTime 
- 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
- EnforceSingle stringAdmin Project Per Org 
- 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
- capacityCommitment StringId 
- 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.
- commitmentEnd StringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitmentStart StringTime 
- 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
- enforceSingle StringAdmin Project Per Org 
- 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
- capacityCommitment stringId 
- 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.
- commitmentEnd stringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitmentStart stringTime 
- 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
- enforceSingle stringAdmin Project Per Org 
- 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_ strid 
- 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_ strtime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitment_start_ strtime 
- 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_ stradmin_ project_ per_ org 
- 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
- capacityCommitment StringId 
- 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.
- commitmentEnd StringTime 
- The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
- commitmentStart StringTime 
- 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
- enforceSingle StringAdmin Project Per Org 
- 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}}
When using the pulumi import command, 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}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.