Parent

Class/Module Index [+]

Quicksearch

Fog::CDN::AWS::Distribution

Constants

CONFIG

items part of DistributionConfig

Public Class Methods

new(new_attributes = {}) click to toggle source
# File lib/fog/aws/models/cdn/distribution.rb, line 32
def initialize(new_attributes = {})
  super(distribution_config_to_attributes(new_attributes))
end

Public Instance Methods

invalidations() click to toggle source
# File lib/fog/aws/models/cdn/distribution.rb, line 36
def invalidations
  @invalidations ||= begin
    Fog::CDN::AWS::Invalidations.new(
      :distribution => self,
      :service => service
    )
  end
end
save() click to toggle source
# File lib/fog/aws/models/cdn/distribution.rb, line 45
def save
  requires_one :s3_origin, :custom_origin
  options = attributes_to_options
  response = identity ? put_distribution_config(identity, etag, options) : post_distribution(options)
  etag = response.headers['ETag']
  merge_attributes(response.body)
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.