Sha256: 7e7fa9bfffc8e10ce3d774df210317f6a8fb4faf60490f0671f22b7d598f7d67

Contents?: true

Size: 916 Bytes

Versions: 30

Compression:

Stored size: 916 Bytes

Contents

module Fog
  module AWS
    class CDN
      class Real

        # Delete a distribution from CloudFront
        #
        # ==== Parameters
        # * distribution_id<~String> - Id of distribution to delete
        # * etag<~String> - etag of that distribution from earlier get or put
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/DeleteDistribution.html

        def delete_distribution(distribution_id, etag)
          request({
            :expects    => 204,
            :headers    => { 'If-Match' => etag },
            :idempotent => true,
            :method     => 'DELETE',
            :path       => "/distribution/#{distribution_id}"
          })
        end

      end

      class Mock # :nodoc:all

        def delete_distribution(distribution_id, etag)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/cdn/requests/aws/delete_distribution.rb
fog-0.5.0 lib/fog/cdn/requests/aws/delete_distribution.rb
phpfog-fog-0.4.1.3 lib/fog/cdn/requests/aws/delete_distribution.rb
phpfog-fog-0.4.1.2 lib/fog/cdn/requests/aws/delete_distribution.rb
phpfog-fog-0.4.1.1 lib/fog/cdn/requests/aws/delete_distribution.rb
phpfog-fog-0.4.1 lib/fog/cdn/requests/aws/delete_distribution.rb
fog-0.4.1 lib/fog/cdn/requests/aws/delete_distribution.rb
fog-0.4.0 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.34 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.33 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.32 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.31 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.30 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.29 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.28 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.27 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.26 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.25 lib/fog/aws/requests/cdn/delete_distribution.rb
fog-0.3.24 lib/fog/aws/requests/cdn/delete_distribution.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/aws/requests/cdn/delete_distribution.rb