Module: Cloudfront::Distribution::DownloadDistribution
- Includes:
- Distribution
- Included in:
- Cloudfront
- Defined in:
- lib/cloudfront/distribution/download_distribution.rb
Instance Method Summary collapse
-
#download_distribution_create(distribution) ⇒ Faraday::Response
Creates a download distribution.
-
#download_distribution_delete(distribution_id) ⇒ Faraday::Response
Deletes a download distribution.
-
#download_distribution_disable(distribution_id) ⇒ Faraday::Response
Disables a download distribution.
-
#download_distribution_enable(distribution_id) ⇒ Faraday::Response
Enables a download distribution.
-
#download_distribution_get(distribution_id) ⇒ Faraday::Response
Gets the download distribution information.
-
#download_distribution_get_config(distribution_id) ⇒ Faraday::Response
Returns the download distribution configuration.
-
#download_distribution_list(max_items = 0, marker = "") ⇒ Faraday::Response
Lists all the download distributions.
-
#download_distribution_put_config(distribution_id, distribution, etag) ⇒ Faraday::Response
Puts the download distribution configuration.
Instance Method Details
#download_distribution_create(distribution) ⇒ Faraday::Response
Creates a download distribution.
16 17 18 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 16 def download_distribution_create(distribution) distribution_create(DOWNLOAD_DISTRIBUTION_URL, distribution) end |
#download_distribution_delete(distribution_id) ⇒ Faraday::Response
Deletes a download distribution.
70 71 72 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 70 def download_distribution_delete(distribution_id) distribution_delete(DOWNLOAD_DISTRIBUTION_URL, distribution_id) end |
#download_distribution_disable(distribution_id) ⇒ Faraday::Response
Disables a download distribution.
63 64 65 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 63 def download_distribution_disable(distribution_id) distribution_disable(DOWNLOAD_DISTRIBUTION_URL, distribution_id) end |
#download_distribution_enable(distribution_id) ⇒ Faraday::Response
Enables a download distribution.
56 57 58 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 56 def download_distribution_enable(distribution_id) distribution_enable(DOWNLOAD_DISTRIBUTION_URL, distribution_id) end |
#download_distribution_get(distribution_id) ⇒ Faraday::Response
Gets the download distribution information.
31 32 33 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 31 def download_distribution_get(distribution_id) distribution_get(DOWNLOAD_DISTRIBUTION_URL, distribution_id) end |
#download_distribution_get_config(distribution_id) ⇒ Faraday::Response
Returns the download distribution configuration.
38 39 40 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 38 def download_distribution_get_config(distribution_id) distribution_get_config(DOWNLOAD_DISTRIBUTION_URL, distribution_id) end |
#download_distribution_list(max_items = 0, marker = "") ⇒ Faraday::Response
Lists all the download distributions.
24 25 26 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 24 def download_distribution_list(max_items = 0, marker = "") distribution_list(DOWNLOAD_DISTRIBUTION_URL, max_items, marker) end |
#download_distribution_put_config(distribution_id, distribution, etag) ⇒ Faraday::Response
Puts the download distribution configuration. To put a distribution config we must follow a certain process defined in docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToUpdateDistribution.html
49 50 51 |
# File 'lib/cloudfront/distribution/download_distribution.rb', line 49 def download_distribution_put_config(distribution_id, distribution, etag) distribution_put_config(DOWNLOAD_DISTRIBUTION_URL, distribution_id, distribution, etag) end |