struct

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

Inherits Struct < Value < Object

Options for generating a Presigned::Url

Constructors

new(aws_access_key : String, aws_secret_key : String, region : String, object : String, bucket : String, endpoint = nil, expires : Int32 = 86400, host_name : Nil | String = nil, additional_options : Hash(String, String) = Hash(String, String).new, signer : Symbol = :v4, include_port : Bool = false, force_path_style : Bool = false, scheme : String = "https")
Source

Instance methods

additional_options

Additional presigned options

Source
aws_access_key

Aws access key

Source
aws_secret_key

Aws secret key

Source
bucket

The bucket for the presigned url

Source
expires

When the link expires, defaults to 1 day

Source
force_path_style?

Use path format for bucket specification <scheme>://<host_name>/<bucket>/<key> <scheme>://<bucket>.<host_name>/<key>

Source
host_name

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

Source
include_port

Optionally include the port in the presigned url

Source
object

The object key, it must start with '/'

Source
region

The Aws region

Source
scheme

The scheme attached to the given host. ie: <scheme>://<host_name>. Default: https

Source
signer
Source
signer_version
Source