Class AWS::S3::PresignedPost::ConditionBuilder
In: lib/aws/s3/presigned_post.rb
Parent: Object

Lets you specify conditions on a field. See {PresignedPost#where} for usage examples.

Methods

in   is   new   starts_with  

Public Class methods

Public Instance methods

Specifies that the value of the field must be in the given range. This may only be used to constrain the +:content_length+ field, e.g. presigned_post.with(:conent_length).in(1..4).

Specifies that the value of the field must equal the provided value.

Specifies that the value of the field must begin with the provided value. If you are specifying a condition on the "key" field, note that this check takes place after the +${filename}+ variable is expanded. This is only valid for the following fields:

  • +:key+
  • +:cache_control+
  • +:content_type+
  • +:content_disposition+
  • +:content_encoding+
  • +:expires_header+
  • +:acl+
  • +:success_action_redirect+
  • metadata fields (see {where_metadata})

[Validate]