lib/acf/right_acf_streaming_interface.rb
# Create a new streaming distribution.
# Returns the just created distribution or RightAws::AwsError exception.
#
#  acf.create_streaming_distribution('bucket-for-konstantin-00.s3.amazonaws.com', 'Woo-Hoo!', true,
#                                    ['stream-1.web.my-awesome-site.net']) #=>
#    {:status=>"InProgress",
#     :caller_reference=>"201004191254412191173215",
#     :cnames=>["stream-1.web.my-awesome-site.net"],
#     :aws_id=>"E1M5LERJLU636F",
#     :e_tag=>"E2588L5QL4BLXH",
#     :enabled=>true,
#     :domain_name=>"s1di8imd85wgld.cloudfront.net",
#     :s3_origin=> {:dns_name=>"bucket-for-konstantin-00.s3.amazonaws.com"},
#     :last_modified_time=>Mon Apr 19 08:54:42 UTC 2010,
#     :location=>
#      "https://cloudfront.amazonaws.com/streaming-distribution/E1M5LERJLU636F",
#     :comment=>"Woo-Hoo!"}
#
Create a new streaming distribution.
Returns the just created distribution or RightAws::AwsError exception.


Create a new streaming distribution . Returns the just created distribution or RightAws :: AwsError exception .
def create_streaming_distribution(config)
      config[:caller_reference] ||= generate_call_reference
      link = generate_request('POST', 'streaming-distribution', {}, streaming_distribution_config_to_xml(config))
      merge_headers(request_info(link, AcfDistributionListParser.new(:logger => @logger))[:distributions].first)
    end
def create_streaming_distribution ( config ) config [ :caller_reference ] ||= generate_call_reference link = generate_request ( 'POST' , 'streaming-distribution' , { } , streaming_distribution_config_to_xml ( config ) ) merge_headers ( request_info ( link , AcfDistributionListParser . new ( :logger => @logger ) ) [ :distributions ] . first ) end
Create a new streaming distribution.
Create a new streaming distribution .
config
<not_specific>