struct Awscr::S3::Presigned::Url::Options

Overview

Options for generating a Presigned::Url

Defined in:

awscr-s3/presigned/url_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(aws_access_key, aws_secret_key, region, object, bucket, expires = 86400, host_name = nil, additional_options = {} of String => String, signer = :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]