class Awscr::S3::Presigned::Policy

Defined in:

awscr-s3/presigned/post_policy.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def condition(key : String, value : String | Int32) #

Adds a Condition to the Policy.


[View source]
def expiration(time : Time?) #

The expiration time of the Policy.


[View source]
def expiration : Time? #

The expiration time of this policy


[View source]

The policy fields


[View source]
def to_hash #

Returns the hash Representation of the Policy. Returns an empty hash if the Policy is not valid.


[View source]
def to_s(io : IO) #

Returns the Policy has Base64 encoded JSON.


[View source]
def valid? #

Returns true if the Policy is valid, false otherwise.


[View source]