GoogleFirebaseAppCheckDebugToken class final
Factory wrapper for google_firebase_app_check_debug_token.
A debug token is a secret used during the development or integration testing of an app. It essentially allows the development or integration testing to bypass app attestation while still allowing App Check to enforce protection on supported production Firebase services.
Required identity:
- localName: Terraform local name (the address segment after
google_firebase_app_check_debug_token.). app_id: the ID of a Firebase Web, Apple, or Android app to attach the debug token to.display_name: a human-readable label for this debug token (used in the Firebase console).token: the secret token value. Must be a case-insensitive UUID4 string; generate it via Terraform'srandom_uuidresource or any external UUID4 source. Immutable: this field is set on create and cannot be updated — to rotate a debug token, destroy + recreate the resource. Sensitive: terradart's masking layer flags it via the generatedsensitiveFieldsset, and the provider itself never echoes the value in responses.
Example:
final uuid = variable<String>('debug_token', sensitive: true);
final ciDebugToken = GoogleFirebaseAppCheckDebugToken(
'ci_runner',
appId: TfArg.literal('1:1234567890:web:abcdef'),
displayName: TfArg.literal('CI runner (e2e tests)'),
token: uuid,
);
Debug tokens are scoped to a single app (appId) and can be revoked
by destroying this resource. No nested blocks aside from the meta-arg
timeouts.
Constructors
-
GoogleFirebaseAppCheckDebugToken(String localName, {required TfArg<
String> appId, required TfArg<String> displayName, required Sensitive<String> token, TfArg<String> ? deletionPolicy, TfArg<String> ? project, LifecycleOptions? lifecycle, List<TfAddressed> ? dependsOn, StackProvider? provider, TfTimeouts? timeouts})
Properties
-
appId
→ TfRef<
String> -
Reference to
app_idattribute.no setter -
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
-
debugTokenId
→ TfRef<
String> -
Reference to
debug_token_id-- the server-assigned last segment of the resource name. Populated after apply.no setter - defaultProvider → String
-
The provider name a block without provider uses: by default the
prefix of terraformType (
googleforgoogle_pubsub_topic).no setterinherited -
deletionPolicy
→ TfRef<
String> -
Reference to
deletion_policyattribute.no setter -
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 -
displayName
→ TfRef<
String> -
Reference to
display_nameattribute.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
id
→ TfRef<
String> -
Reference to
idattribute. Equal to the full resource pathprojects/{project}/apps/{app_id}/debugTokens/{debug_token_id}.no setter - kind → ResourceKind
-
Always
ResourceKind.resource. Overridden byData.no setterinherited - lifecycle → LifecycleOptions?
-
Optional
lifecycle { ... }block.finalinherited - localName → String
-
User-supplied local name within a Stack.
finalinherited
-
project
→ TfRef<
String> -
Reference to
projectattribute.no setter - provider → StackProvider?
-
Optional Terraform
providermeta-argument: the provider configuration this block uses, e.g. aGoogleProviderwith analiasthe Stack registered withaddProvider.finalinherited -
ref
→ RefTo<
GoogleFirebaseAppCheckDebugToken> -
A reference to this resource, for arguments typed
RefTo<GoogleFirebaseAppCheckDebugToken>.no setter - 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 setteroverride - 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 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, andterraform validatedecides whether this resource's schema declares the operations set here.finalinherited -
token
→ TfRef<
String> -
Reference to
tokenattribute.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