lib/acf/right_acf_invalidations.rb
# Create a new Invalidation batch.
#
#  acf.create_invalidation('E3LTBMK4EAQS7D', :path => ['/boot.jpg', '/kd/boot.public.1.jpg']) #=>
#    {:status=>"InProgress",
#     :create_time=>"2010-12-08T14:03:38.449Z",
#     :location=> "https://cloudfront.amazonaws.com/2010-11-01/distribution/E3LTBMK4EAQS7D/invalidation/I3AW9PPQS0CBKV",
#     :aws_id=>"I3AW9PPQS0CBKV",
#     :invalidation_batch=>
#      {:caller_reference=>"201012081703372555972012",
#       :path=>["/boot.jpg", "/kd/boot.public.1.jpg"]}}
#
Create a new Invalidation batch.
Create a new Invalidation batch .
def create_invalidation(distribution_aws_id, invalidation_batch)
      invalidation_batch[:caller_reference] ||= generate_call_reference
      link = generate_request('POST', "/distribution/#{distribution_aws_id}/invalidation", {}, invalidation_batch_to_xml(invalidation_batch))
      merge_headers(request_info(link, AcfInvalidationsListParser.new(:logger => @logger))[:invalidations].first)
    end
def create_invalidation ( distribution_aws_id , invalidation_batch ) invalidation_batch [ :caller_reference ] ||= generate_call_reference link = generate_request ( 'POST' , "/distribution/#{distribution_aws_id}/invalidation" , { } , invalidation_batch_to_xml ( invalidation_batch ) ) merge_headers ( request_info ( link , AcfInvalidationsListParser . new ( :logger => @logger ) ) [ :invalidations ] . first ) end
Create a new Invalidation batch.
Create a new Invalidation batch .
distribution_aws_id
<not_specific>
invalidation_batch
<not_specific>