import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../../types"; /** * Creates a new capacity commitment 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 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; /** * For FAILED commitment plan, provides the reason of failure. */ readonly failureStatus: pulumi.Output; /** * The resource name of the capacity commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123` */ readonly name: pulumi.Output; /** * Capacity commitment commitment plan. */ readonly plan: 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 { readonly capacityCommitmentsId: pulumi.Input; readonly locationsId: pulumi.Input; /** * Capacity commitment commitment plan. */ readonly plan?: pulumi.Input; readonly projectsId: 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. */ readonly renewalPlan?: pulumi.Input; /** * Number of slots in this commitment. */ readonly slotCount?: pulumi.Input; }