Skip to content

Commit

Permalink
Document the :expires_in type
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl committed Mar 20, 2024
1 parent bd5feea commit 5904465
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ex_aws/s3.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ defmodule ExAws.S3 do
| [aws_kms_key_id: binary]
| customer_encryption_opts

@type expires_in_seconds :: non_neg_integer

@type presigned_url_opts :: [
{:expires_in, integer}
{:expires_in, expires_in_seconds}
| {:virtual_host, boolean}
| {:s3_accelerate, boolean}
| {:query_params, [{binary, binary}]}
Expand All @@ -62,7 +64,7 @@ defmodule ExAws.S3 do
]

@type presigned_post_opts :: [
{:expires_in, integer}
{:expires_in, expires_in_seconds}
| {:acl, binary | {:starts_with, binary}}
| {:content_length_range, [integer]}
| {:key, binary | {:starts_with, binary}}
Expand Down

0 comments on commit 5904465

Please sign in to comment.