GetObjectSignedUrlArgs class

Arguments for getObjectSignedUrl. Arguments for getObjectSignedUrl.

Constructors

GetObjectSignedUrlArgs({required Input<String> bucket, Input<String?>? contentMd5, Input<String?>? contentType, Input<String?>? credentials, Input<String?>? duration, Input<Map<String, String>?>? extensionHeaders, Input<String?>? httpMethod, required Input<String> path})
Creates a new GetObjectSignedUrlArgs. bucket The name of the bucket to read the object from contentMd5 The MD5 digest value in Base64. contentType If you specify this in the datasource, the client must provide the Content-Type HTTP header with the same value in its request. credentials What Google service account credentials json should be used to sign the URL. duration For how long shall the signed URL be valid (defaults to 1 hour - i.e. 1h). extensionHeaders As needed. The server checks to make sure that the client provides matching values in requests using the signed URL. httpMethod What HTTP Method will the signed URL allow (defaults to GET) path The full path to the object inside the bucket
const
GetObjectSignedUrlArgs.fromMap(Map<String, dynamic> map)
factory

Properties

bucket → Input<String>
The name of the bucket to read the object from
final
contentMd5 → Input<String?>?
The MD5 digest value in Base64. Typically retrieved from google_storage_bucket_object.object.md5hash attribute. If you provide this in the datasource, the client (e.g. browser, curl) must provide the Content-MD5 HTTP header with this same value in its request.
final
contentType → Input<String?>?
If you specify this in the datasource, the client must provide the Content-Type HTTP header with the same value in its request.
final
credentials → Input<String?>?
What Google service account credentials json should be used to sign the URL. This data source checks the following locations for credentials, in order of preference: data source credentials attribute, provider credentials attribute and finally the GOOGLE_APPLICATION_CREDENTIALS environment variable.
final
duration → Input<String?>?
For how long shall the signed URL be valid (defaults to 1 hour - i.e. 1h). See here for info on valid duration formats.
final
extensionHeaders → Input<Map<String, String>?>?
As needed. The server checks to make sure that the client provides matching values in requests using the signed URL. Any header starting with x-goog- is accepted but see the Google Docs for list of headers that are supported by Google.
final
hashCode → int
The hash code for this object.
no setterinherited
httpMethod → Input<String?>?
What HTTP Method will the signed URL allow (defaults to GET)
final
path → Input<String>
The full path to the object inside the bucket
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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