struct Aws::S3::Presigned::Url::Options

Overview

Options for generating a Presigned::Url

Defined in:

aws/s3/presigned/url_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(aws_access_key : String, aws_secret_key : String, region : String, object : String, bucket : String, expires : Int32 = 86400, host_name : Nil | String = nil, additional_options : Hash(String, String) = {} of String => String, signer : Symbol = :v4) #

[View source]

Instance Method Detail

def additional_options : Hash(String, String) #

Additional presigned options


[View source]
def aws_access_key : String #

Aws access key


[View source]
def aws_secret_key : String #

Aws secret key


[View source]
def bucket : String #

The bucket for the presigned url


[View source]
def expires : Int32 #

When the link expires, defaults to 1 day


[View source]
def host_name : String? #

Optionally set the host name to use. The default is s3.amazonaws.com


[View source]
def object : String #

The object key, it must start with '/'


[View source]
def region : String #

The Aws region


[View source]
def signer #

[View source]
def signer_version : Symbol #

[View source]