Skip to content

Commit

Permalink
Add missing documentation for PresignedPost (#2664)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss authored Feb 17, 2022
1 parent 02effe9 commit 26157a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build_tools/spec/region_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def whitelist
's3' => {
'location_constraint.rb' => 14,
'bucket.rb' => 155,
'presigned_post.rb' => 635,
'presigned_post.rb' => 642,
'iad_regional_endpoint.rb' => 'SKIP_FILE'
}
}
Expand Down
7 changes: 7 additions & 0 deletions gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ class PresignedPost
# the post policy.
# @param [String] bucket_region Region of the target bucket.
# @param [String] bucket_name Name of the target bucket.
# @option options [Boolean] :use_accelerate_endpoint (false) When `true`,
# PresignedPost will attempt to use accelerated endpoint.
# @option options [String] :url See {PresignedPost#url}.
# @option options [Sting, Array<String>] :allow_any
# See {PresignedPost#allow_any}.
# @option options [Time] :signature_expiration Specify when the signature on
# the post will expire. Defaults to one hour from creation of the
# presigned post. May not exceed one week from creation time.
Expand Down Expand Up @@ -233,6 +238,8 @@ class PresignedPost
# See {PresignedPost#server_side_encryption_customer_algorithm}.
# @option options [String] :server_side_encryption_customer_key
# See {PresignedPost#server_side_encryption_customer_key}.
# @option options [String] :server_side_encryption_customer_key_starts_with
# See {PresignedPost#server_side_encryption_customer_key_starts_with}.
def initialize(credentials, bucket_region, bucket_name, options = {})
@credentials = credentials.credentials
@bucket_region = bucket_region
Expand Down

0 comments on commit 26157a9

Please sign in to comment.