StorageBucketObjectBucketObjectFromSource class final
Upload from a local filesystem path. Terraform reads the file at apply time and uploads it to GCS.
source is ForceNew: changing the path replaces the object.
- Inheritance
-
- Object
- StorageBucketObjectBucketObjectContent
- StorageBucketObjectBucketObjectFromSource
- Annotations
-
- @immutable
Constructors
-
StorageBucketObjectBucketObjectFromSource({required TfArg<
String> source}) -
const
Properties
- blockKey → String
-
argMap key under which this payload is emitted (
'source'or'content').no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ TfArg<
String> -
Filesystem path to the data. Usually
TfArg.literal('./path/to/file').final -
value
→ TfArg<
String> -
The scalar value that will be written to the argMap under
blockKey. Always a
TfArg<String>(source is a file path, content is the inline string).no setteroverride
Methods
-
encode(
) → Map< String, Object?> -
Wire-format encoding (
{blockKey: value.toTfJson()}). The parent factory uses theblockKey+valuepair directly in its argMap (relying on the synth layer to unwrap theTfArg); this method exists for parity with other sealed-class encoders (e.g. StorageBucketObjectBucketObjectRetention.toArgMap,AppHostingBuildSource.encode) and is exercised by the Gate 6 encode round-trip test.inherited -
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