Class GetObjectSignedUrlArgs
Inherited Members
Namespace: Pulumi.Gcp.Storage
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class GetObjectSignedUrlArgs : InvokeArgs
Constructors
View SourceGetObjectSignedUrlArgs()
Declaration
public GetObjectSignedUrlArgs()
Properties
View SourceBucket
The name of the bucket to read the object from
Declaration
public string Bucket { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ContentMd5
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.
Declaration
public string ContentMd5 { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ContentType
If you specify this in the datasource, the client must provide the Content-Type HTTP header with the same value in its request.
Declaration
public string ContentType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Credentials
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.
Declaration
public string Credentials { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Duration
For how long shall the signed URL be valid (defaults to 1 hour - i.e. 1h).
See here for info on valid duration formats.
Declaration
public string Duration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ExtensionHeaders
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.
Declaration
public Dictionary<string, string> ExtensionHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
HttpMethod
What HTTP Method will the signed URL allow (defaults to GET)
Declaration
public string HttpMethod { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Path
The full path to the object inside the bucket
Declaration
public string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |