Base of every user-instantiable Terraform resource.
Plan 5.X (v0.5.0-dev) removed the <S> generic and the schema field —
the schemantic-backed dead chain that motivated them is fully retired.
Resource is now flat: factories pass argMap and sensitiveFields,
synth consumes both directly.
- Implemented types
- Implementers
- AppwriteAuthTeam
- AppwriteAuthUser
- AppwriteBackupPolicy
- AppwriteFunction
- AppwriteFunctionDeployment
- AppwriteFunctionVariable
- AppwriteMessagingProvider
- AppwriteMessagingSubscriber
- AppwriteMessagingTopic
- AppwriteMongoBackupPolicy
- AppwriteMongoBackupStorage
- AppwriteMongoBranch
- AppwriteMongoDatabase
- AppwriteMysqlBackupPolicy
- AppwriteMysqlBackupStorage
- AppwriteMysqlBranch
- AppwriteMysqlDatabase
- AppwriteMysqlPooler
- AppwritePostgresqlBackupPolicy
- AppwritePostgresqlBackupStorage
- AppwritePostgresqlBranch
- AppwritePostgresqlDatabase
- AppwritePostgresqlExtension
- AppwritePostgresqlPooler
- AppwriteProject
- AppwriteProjectKey
- AppwriteProxyRule
- AppwriteSite
- AppwriteSiteDeployment
- AppwriteSiteVariable
- AppwriteStorageBucket
- AppwriteStorageFile
- AppwriteTablesdb
- AppwriteTablesdbColumn
- AppwriteTablesdbIndex
- AppwriteTablesdbRow
- AppwriteTablesdbTable
- AppwriteWebhook
- DataAppwriteAuthTeam
- DataAppwriteAuthUser
- DataAppwriteFunction
- DataAppwriteMessagingTopic
- DataAppwriteMongoBackups
- DataAppwriteMongoDatabase
- DataAppwriteMongoDatabases
- DataAppwriteMongoDatabaseStatus
- DataAppwriteMongoSpecifications
- DataAppwriteMysqlBackups
- DataAppwriteMysqlDatabase
- DataAppwriteMysqlDatabases
- DataAppwriteMysqlDatabaseStatus
- DataAppwriteMysqlSpecifications
- DataAppwritePostgresqlBackups
- DataAppwritePostgresqlDatabase
- DataAppwritePostgresqlDatabases
- DataAppwritePostgresqlDatabaseStatus
- DataAppwritePostgresqlExtensions
- DataAppwritePostgresqlSpecifications
- DataAppwriteSite
- DataAppwriteStorageBucket
- DataAppwriteTablesdb
- DataAppwriteWebhook
Constructors
-
Resource(String localName, {required String terraformType, required Map<
String, TfArg?> argMap, 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.
final
- defaultProvider → String
-
The provider name a block without provider uses: by default the
prefix of terraformType (
googleforgoogle_pubsub_topic).no setter -
dependsOn
→ List<
TfAddressed> ? -
Optional
depends_on = [...]: the resources, data sources and module calls this block waits for, e.g.dependsOn: [api, ...apiDeps]. Terraform takes whole blocks only, so an entry is never an attribute.final - hashCode → int
-
The hash code for this object.
no setterinherited
- kind → ResourceKind
-
Always
ResourceKind.resource. Overridden byData.no setter - lifecycle → LifecycleOptions?
-
Optional
lifecycle { ... }block.final - localName → String
-
User-supplied local name within a Stack.
final
- provider → StackProvider?
-
Optional Terraform
providermeta-argument: the provider configuration this block uses, e.g. the aliasedGoogleProvider(alias: 'eu')the Stack registered withaddProvider.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sensitiveFields
→ Set<
String> -
Field names that are
@Sensitiveper the IR-derived per-resource constant. Curated factories override with a baked-instatic const Set<String>(file-private in v0.5+).no setter - supportsDeletionProtection → bool
-
Capability flag: true when this resource's underlying Terraform
schema has a
deletion_protectionboolean attribute that the synth-time devMode flow can flip tofalse. Defaults to false; the codegen emitter overrides this totruefor wrappers whose schema includes the attribute.no setter - terraformType → String
-
Terraform resource type, e.g.
google_pubsub_topic.final - tfAddress → String
-
Terraform address
<terraformType>.<localName>, e.g.google_pubsub_topic.orders.no setteroverride - timeouts → TfTimeouts?
-
Optional
timeouts { ... }block: how long Terraform waits for each operation. Provider-neutral like lifecycle — synth copies the duration strings verbatim, andterraform validatedecides whether this resource's schema declares the operations set here.final
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