GoogleComputeRegionCommitment class final

Factory wrapper for google_compute_region_commitment.

Represents a regional Commitment resource.

Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates.

Compute Engine regional commitment — purchased committed-use contract for vCPU / memory (and related resource types) in a region.

Cost / apply: Compute Engine 6F81-5844-456A bills commitment SKUs for the contract term (e.g. Commitment v1 Cpu Virginia 1 Year SKU 00EE-95C9-2FF9 $0.021309/h per vCPU; N1 Cpu Phoenix 1 Year 41AB-ED04-F989 $0.019915/h). Provider MM sets exclude_delete: true — Terraform cannot destroy the commitment, so apply would strand a paid contract until term end. Ships without a quickstart (tool/example_debt.yaml). Never wire into apply-smoke.

plan is TWELVE_MONTH or THIRTY_SIX_MONTH. Pair with resources amounts (vCPU / MEMORY / …).

Debt-only factory — CI retrigger marker.

Inheritance

Constructors

GoogleComputeRegionCommitment(String localName, {required TfArg<String> name, required ComputeRegionCommitmentPlan plan, TfArg<String>? region, List<ComputeRegionCommitmentResources>? resources, ComputeRegionCommitmentType? type, ComputeRegionCommitmentCategory? category, TfArg<String>? description, TfArg<bool>? autoRenew, TfArg<String>? existingReservations, ComputeRegionCommitmentLicenseResource? licenseResource, ComputeRegionCommitmentParams? params, TfArg<String>? project, LifecycleOptions? lifecycle, List<TfAddressed>? dependsOn, StackProvider? provider, TfTimeouts? timeouts})

Properties

argMap → Map<String, TfArg?>
Argument-name → TfArg map. Keys are snake_case (Terraform JSON name). Synth emits these keys directly; the factory is responsible for the camelCase → snake_case translation at construction time.
finalinherited
autoRenew → TfRef<bool>
Reference to auto_renew attribute.
no setter
category → TfRef<String>
Reference to category attribute.
no setter
commitmentId → TfRef<num>
Reference to commitment_id attribute.
no setter
creationTimestamp → TfRef<String>
Reference to creation_timestamp attribute.
no setter
defaultProvider → String
The provider name a block without provider uses: by default the prefix of terraformType (google for google_pubsub_topic).
no setterinherited
dependsOn → List<TfAddressed>?
Optional depends_on = [...]: the resources, data sources and module calls this block waits for, e.g. [api, ...apiDeps]. Terraform takes whole blocks only, so an entry is never an attribute.
finalinherited
description → TfRef<String>
Reference to description attribute.
no setter
endTimestamp → TfRef<String>
Reference to end_timestamp attribute.
no setter
existingReservations → TfRef<String>
Reference to existing_reservations attribute.
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → TfRef<String>
Reference to id attribute.
no setter
kind → ResourceKind
Always ResourceKind.resource. Overridden by Data.
no setterinherited
lifecycle → LifecycleOptions?
Optional lifecycle { ... } block.
finalinherited
localName → String
User-supplied local name within a Stack.
finalinherited
name → TfRef<String>
Reference to name attribute.
no setter
plan → TfRef<String>
Reference to plan attribute.
no setter
project → TfRef<String>
Reference to project attribute.
no setter
provider → StackProvider?
Optional Terraform provider meta-argument: the provider configuration this block uses, e.g. a GoogleProvider with an alias the Stack registered with addProvider.
finalinherited
ref → RefTo<GoogleComputeRegionCommitment>
A reference to this resource, for arguments typed RefTo<GoogleComputeRegionCommitment>.
no setter
region → TfRef<String>
Reference to region attribute.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Reference to self_link attribute.
no setter
sensitiveFields → Set<String>
Field names that are @Sensitive per the IR-derived per-resource constant. Curated factories override with a baked-in static const Set<String> (file-private in v0.5+).
no setteroverride
startTimestamp → TfRef<String>
Reference to start_timestamp attribute.
no setter
status → TfRef<String>
Reference to status attribute.
no setter
statusMessage → TfRef<String>
Reference to status_message attribute.
no setter
supportsDeletionProtection → bool
Capability flag: true when this resource's underlying Terraform schema has a deletion_protection boolean attribute that the synth-time devMode flow can flip to false. Defaults to false; the codegen emitter overrides this to true for wrappers whose schema includes the attribute.
no setterinherited
terraformType → String
Terraform resource type, e.g. google_pubsub_topic.
finalinherited
tfAddress → String
Terraform address <terraformType>.<localName>, e.g. google_pubsub_topic.orders.
no setterinherited
timeouts → TfTimeouts?
Optional timeouts { ... } block: how long Terraform waits for each operation. Provider-neutral like lifecycle — synth copies the duration strings verbatim, and terraform validate decides whether this resource's schema declares the operations set here.
finalinherited
type → TfRef<String>
Reference to type attribute.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

tfType → const String