Class: Cloudfront
- Inherits:
-
Object
- Object
- Cloudfront
- Includes:
- Connection, Distribution::DownloadDistribution, Distribution::StreamingDistribution, Invalidation::Invalidations, OriginAccessIdentity
- Defined in:
- lib/cloudfront.rb,
lib/cloudfront/utils/api.rb,
lib/cloudfront/connection.rb,
lib/cloudfront/utils/util.rb,
lib/cloudfront/helpers/origin.rb,
lib/cloudfront/helpers/aliases.rb,
lib/cloudfront/helpers/logging.rb,
lib/cloudfront/helpers/origins.rb,
lib/cloudfront/helpers/s3_origin.rb,
lib/cloudfront/helpers/invalidation.rb,
lib/cloudfront/utils/xml_serializer.rb,
lib/cloudfront/helpers/cache_behavior.rb,
lib/cloudfront/errors/cloudfront_error.rb,
lib/cloudfront/helpers/cache_behaviors.rb,
lib/cloudfront/helpers/trusted_signers.rb,
lib/cloudfront/distribution/distribution.rb,
lib/cloudfront/errors/missing_body_error.rb,
lib/cloudfront/invalidation/invalidations.rb,
lib/cloudfront/errors/illegal_update_error.rb,
lib/cloudfront/errors/invalid_origin_error.rb,
lib/cloudfront/utils/configuration_checker.rb,
lib/cloudfront/helpers/download_distribution.rb,
lib/cloudfront/helpers/origin_access_identity.rb,
lib/cloudfront/helpers/streaming_distribution.rb,
lib/cloudfront/errors/precondition_failed_error.rb,
lib/cloudfront/errors/cname_already_exists_error.rb,
lib/cloudfront/exceptions/missing_etag_exception.rb,
lib/cloudfront/distribution/download_distribution.rb,
lib/cloudfront/distribution/streaming_distribution.rb,
lib/cloudfront/errors/too_many_distributions_error.rb,
lib/cloudfront/errors/too_many_trusted_signers_error.rb,
lib/cloudfront/errors/invalid_required_protocol_error.rb,
lib/cloudfront/errors/distribution_already_exists_error.rb,
lib/cloudfront/errors/too_many_distribution_cnames_error.rb,
lib/cloudfront/errors/trusted_signer_does_not_exist_error.rb,
lib/cloudfront/errors/invalid_origin_access_identity_error.rb,
lib/cloudfront/origin_access_identity/origin_access_identity.rb,
lib/cloudfront/exceptions/distribution_configuration_exception.rb,
lib/cloudfront/exceptions/delete_enabled_distribution_exception.rb,
lib/cloudfront/exceptions/distribution_already_enabled_exception.rb,
lib/cloudfront/exceptions/distribution_already_disabled_exception.rb
Defined Under Namespace
Modules: Connection, Distribution, Errors, Exceptions, Helpers, Invalidation, OriginAccessIdentity, Utils
Constant Summary
Constants included from OriginAccessIdentity
Constants included from Invalidation::Invalidations
Invalidation::Invalidations::INVALIDATION_URL
Constants included from Connection
Instance Attribute Summary collapse
Instance Method Summary collapse
- #credentials_test ⇒ Object
-
#initialize(key_id, key_secret) ⇒ Cloudfront
constructor
A new instance of Cloudfront.
Methods included from OriginAccessIdentity
#get_origin_access_identity_wrapper, #origin_access_identity_create, #origin_access_identity_delete, #origin_access_identity_get, #origin_access_identity_get_config, #origin_access_identity_list, #origin_access_identity_put_config
Methods included from Invalidation::Invalidations
#invalidation_get, #invalidation_list, #invalidation_send
Methods included from Distribution::StreamingDistribution
#streaming_distribution_create, #streaming_distribution_delete, #streaming_distribution_disable, #streaming_distribution_enable, #streaming_distribution_get, #streaming_distribution_get_config, #streaming_distribution_list, #streaming_distribution_put_config
Methods included from Distribution::DownloadDistribution
#download_distribution_create, #download_distribution_delete, #download_distribution_disable, #download_distribution_enable, #download_distribution_get, #download_distribution_get_config, #download_distribution_list, #download_distribution_put_config
Methods included from Connection
Constructor Details
#initialize(key_id, key_secret) ⇒ Cloudfront
Returns a new instance of Cloudfront.
28 29 30 |
# File 'lib/cloudfront.rb', line 28 def initialize(key_id, key_secret) @connection = build_connection(key_id, key_secret) end |
Instance Attribute Details
#connection ⇒ Object
27 28 29 |
# File 'lib/cloudfront.rb', line 27 def connection @connection end |
Instance Method Details
#credentials_test ⇒ Object
32 33 34 |
# File 'lib/cloudfront.rb', line 32 def credentials_test download_distribution_list.status == 200 end |