You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Module: Aws::CloudFront
- Defined in:
- aws-sdk-core/lib/aws-sdk-core/cloudfront.rb,
aws-sdk-core/lib/aws-sdk-core/cloudfront/signer.rb,
aws-sdk-core/lib/aws-sdk-core/cloudfront/url_signer.rb,
aws-sdk-core/lib/aws-sdk-core/cloudfront/cookie_signer.rb
Overview
This module provides a client for making API requests to Amazon CloudFront.
Aws::CloudFront::Client
The Client class provides one-to-one mapping for each API operation.
cloudfront = Aws::CloudFront::Client.new(region: 'us-east-1')
cloudfront.operation_names
#=> [:create_cache_policy, :create_cloud_front_origin_access_identity, :create_distribution, :create_distribution_with_tags, ...]
Each API operation method accepts a hash of request parameters and returns a response object.
resp = cloudfront.create_cache_policy(params)
See Client for more information.
Aws::CloudFront::Errors
Errors returned from Amazon CloudFront are defined in the Errors module and extend Errors::ServiceError.
begin
# do stuff
rescue Aws::CloudFront::Errors::ServiceError
# rescues all errors returned by Amazon CloudFront
end
See Errors for more information.
Defined Under Namespace
Modules: Errors, Signer, Types Classes: Client, CookieSigner, UrlSigner