import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new capacity commitment resource. * Auto-naming is currently not supported for this resource. */ export declare class CapacityCommitment extends pulumi.CustomResource { /** * Get an existing CapacityCommitment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): CapacityCommitment; /** * Returns true if the given object is an instance of CapacityCommitment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CapacityCommitment; /** * 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. */ readonly capacityCommitmentId: pulumi.Output; /** * The end of the current commitment period. It is applicable only for ACTIVE capacity commitments. */ readonly commitmentEndTime: pulumi.Output; /** * The start of the current commitment period. It is applicable only for ACTIVE capacity commitments. */ readonly commitmentStartTime: pulumi.Output; /** * If true, fail the request if another project in the organization has a capacity commitment. */ readonly enforceSingleAdminProjectPerOrg: pulumi.Output; /** * For FAILED commitment plan, provides the reason of failure. */ readonly failureStatus: pulumi.Output; readonly location: pulumi.Output; /** * Applicable only for commitments located within one of the BigQuery multi-regions (US or EU). If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region. */ readonly multiRegionAuxiliary: pulumi.Output; /** * The resource name of the capacity commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123` The commitment_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters. */ readonly name: pulumi.Output; /** * Capacity commitment commitment plan. */ readonly plan: pulumi.Output; readonly project: pulumi.Output; /** * The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL commitments. */ readonly renewalPlan: pulumi.Output; /** * Number of slots in this commitment. */ readonly slotCount: pulumi.Output; /** * State of the commitment. */ readonly state: pulumi.Output; /** * Create a CapacityCommitment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: CapacityCommitmentArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a CapacityCommitment resource. */ export interface CapacityCommitmentArgs { /** * 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. */ capacityCommitmentId?: pulumi.Input; /** * If true, fail the request if another project in the organization has a capacity commitment. */ enforceSingleAdminProjectPerOrg?: pulumi.Input; location?: pulumi.Input; /** * Applicable only for commitments located within one of the BigQuery multi-regions (US or EU). If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region. */ multiRegionAuxiliary?: pulumi.Input; /** * Capacity commitment commitment plan. */ plan?: pulumi.Input; project?: pulumi.Input; /** * The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL commitments. */ renewalPlan?: pulumi.Input; /** * Number of slots in this commitment. */ slotCount?: pulumi.Input; }