def add_to(s3)
      s3_template = s3.template
      @instance_name = s3.name
      cloud_front_template = template
      s3.template.inner_merge(cloud_front_template)
    end
def add_to(s3)
      s3_template = s3.template
      @instance_name = s3.name
      cloud_front_template = template
      s3.template.inner_merge(cloud_front_template)
    end
Initialize CloudFront

 ==== Notes
 options parameter must include values for :name

 ==== Examples
   cloud_front = Cloudster::CloudFront.new(:name => 'CloudFront')

 ==== Parameters
 * options<~Hash> -
     * :name: String containing the name of CloudFront resource
 Merges the required CloudFormation template for adding an CloudFront to an s3 instance


 ==== Examples
   cloud_front = Cloudster::CloudFront.new(:name => 'CloudFrontDistribution')
   s3 = Cloudster::S3.new(
    :name => 'S3Resource',
    :access_control => 'PublicRead'
   )

   cloud_front.add_to s3

 ==== Parameters
 * instance of s3