struct Awscr::S3::Presigned::Url::Options
- Awscr::S3::Presigned::Url::Options
- Struct
- Value
- Object
Overview
Options for generating a Presigned::Url
Defined in:
awscr-s3/presigned/url_options.crConstructors
Instance Method Summary
-
#additional_options : Hash(String, String)
Additional presigned options
-
#aws_access_key : String
Aws access key
-
#aws_secret_key : String
Aws secret key
-
#bucket : String
The bucket for the presigned url
-
#expires : Int32
When the link expires, defaults to 1 day
-
#host_name : String?
Optionally set the host name to use.
-
#include_port : Bool
Optionally include the port in the presigned url
-
#object : String
The object key, it must start with '/'
-
#region : String
The Aws region
-
#scheme : String
The scheme attached to the given host.
- #signer
- #signer_version : Symbol
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, include_port : Bool = false, scheme : String = "https")
#