Class: AWS::CloudFront::Client

Inherits:
AWS::Core::RESTXMLClient show all
Defined in:
lib/aws/cloud_front/client.rb

Direct Known Subclasses

V20130512, V20130826, V20130927, V20131111, V20131122, V20140131, V20140531

Defined Under Namespace

Classes: V20130512, V20130826, V20130927, V20131111, V20131122, V20140131, V20140531

Constant Summary

API_VERSION =
'2014-05-31'

Instance Attribute Summary

Attributes inherited from AWS::Core::Client

#config

Instance Method Summary (collapse)

Methods inherited from AWS::Core::Client

#initialize, #log_warning, #operations, #with_http_handler, #with_options

Constructor Details

This class inherits a constructor from AWS::Core::Client

Instance Method Details

- (Core::Response) create_cloud_front_origin_access_identity(options = {})

Calls the POST CreateCloudFrontOriginAccessIdentity API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :cloud_front_origin_access_identity_config - required - (Hash) The origin access identity's configuration information.
      • :caller_reference - required - (String) A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.
      • :comment - required - (String) Any comments you want to include about the origin access identity.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :s3_canonical_user_id - (String)
    • :cloud_front_origin_access_identity_config - (Hash)
      • :caller_reference - (String)
      • :comment - (String)

- (Core::Response) create_distribution(options = {})

Calls the POST CreateDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :distribution_config - required - (Hash) The distribution's configuration information.
      • :caller_reference - required - (String) A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.
      • :aliases - required - (Hash) A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
        • :quantity - required - (Integer) The number of CNAMEs, if any, for this distribution.
        • :items - (Array<String>) Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items.
        • :CNAME - (String)
      • :default_root_object - required - (String) The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/index.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.
      • :origins - required - (Hash) A complex type that contains information about origins for this distribution.
        • :quantity - required - (Integer) The number of origins for this distribution.
        • :items - (Array<Hash>) A complex type that contains origins for this distribution.
        • :Origin - (Hash)
          • :id - required - (String) A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.
          • :domain_name - required - (String) Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.
          • :s3_origin_config - (Hash) A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.
            • :origin_access_identity - required - (String) The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. Use the format origin-access-identity/cloudfront/Id where Id is the value that CloudFront returned in the Id element when you created the origin access identity.
          • :custom_origin_config - (Hash) A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
            • :http_port - required - (Integer) The HTTP port the custom origin listens on.
            • :https_port - required - (Integer) The HTTPS port the custom origin listens on.
            • :origin_protocol_policy - required - (String) The origin protocol policy to apply to your origin. Valid values include:
              • http-only
              • match-viewer
      • :default_cache_behavior - required - (Hash) A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.
        • :target_origin_id - required - (String) The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
        • :forwarded_values - required - (Hash) A complex type that specifies how CloudFront handles query strings, cookies and headers.
          • :query_string - required - (Boolean) Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
          • :cookies - required - (Hash) A complex type that specifies how CloudFront handles cookies.
            • :forward - required - (String) Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses. Valid values include:
              • none
              • whitelist
              • all
            • :whitelisted_names - (Hash) A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.
              • :quantity - required - (Integer) The number of whitelisted cookies for this cache behavior.
              • :items - (Array<String>) Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.
              • :Name - (String)
          • :headers - (Hash) A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.
            • :quantity - required - (Integer) The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.
            • :items - (Array<String>) Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items.
            • :Name - (String)
        • :trusted_signers - required - (Hash) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false ), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
          • :enabled - required - (Boolean) Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.
          • :quantity - required - (Integer) The number of trusted signers for this cache behavior.
          • :items - (Array<String>) Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.
          • :AwsAccountNumber - (String)
        • :viewer_protocol_policy - required - (String) Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL. Valid values include:
          • allow-all
          • https-only
          • redirect-to-https
        • :min_ttl - required - (Integer) The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).
        • :allowed_methods - (Hash)
          • :quantity - required - (Integer) The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).
          • :items - (Array<String>) A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
          • :Method - (String)
        • :smooth_streaming - (Boolean) Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
      • :cache_behaviors - required - (Hash) A complex type that contains zero or more CacheBehavior elements.
        • :quantity - required - (Integer) The number of cache behaviors for this distribution.
        • :items - (Array<Hash>) Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items.
        • :CacheBehavior - (Hash)
          • :path_pattern - required - (String) The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.
          • :target_origin_id - required - (String) The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
          • :forwarded_values - required - (Hash) A complex type that specifies how CloudFront handles query strings, cookies and headers.
            • :query_string - required - (Boolean) Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
            • :cookies - required - (Hash) A complex type that specifies how CloudFront handles cookies.
              • :forward - required - (String) Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses. Valid values include:
                • none
                • whitelist
                • all
              • :whitelisted_names - (Hash) A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.
                • :quantity - required - (Integer) The number of whitelisted cookies for this cache behavior.
                • :items - (Array<String>) Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.
                • :Name - (String)
            • :headers - (Hash) A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.
              • :quantity - required - (Integer) The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.
              • :items - (Array<String>) Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items.
              • :Name - (String)
          • :trusted_signers - required - (Hash) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false ), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
            • :enabled - required - (Boolean) Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.
            • :quantity - required - (Integer) The number of trusted signers for this cache behavior.
            • :items - (Array<String>) Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.
            • :AwsAccountNumber - (String)
          • :viewer_protocol_policy - required - (String) Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL. Valid values include:
            • allow-all
            • https-only
            • redirect-to-https
          • :min_ttl - required - (Integer) The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).
          • :allowed_methods - (Hash)
            • :quantity - required - (Integer) The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).
            • :items - (Array<String>) A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
            • :Method - (String)
          • :smooth_streaming - (Boolean) Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
      • :custom_error_responses - (Hash) A complex type that contains zero or more CustomErrorResponse elements.
        • :quantity - required - (Integer) The number of custom error responses for this distribution.
        • :items - (Array<Hash>) Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.
        • :CustomErrorResponse - (Hash)
          • :error_code - required - (Integer) The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation.
          • :response_page_path - (String) The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer.
          • :response_code - (String) The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation.
          • :error_caching_min_ttl - (Integer) The minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.
      • :comment - required - (String) Any comments you want to include about the distribution.
      • :logging - required - (Hash) A complex type that controls whether access logs are written for the distribution.
        • :enabled - required - (Boolean) Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.
        • :include_cookies - required - (Boolean) Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.
        • :bucket - required - (String) The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
        • :prefix - required - (String) An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
      • :price_class - required - (String) A complex type that contains information about price class for this distribution. Valid values include:
        • PriceClass_100
        • PriceClass_200
        • PriceClass_All
      • :enabled - required - (Boolean) Whether the distribution is enabled to accept end user requests for content.
      • :viewer_certificate - (Hash)
        • :iam_certificate_id - (String) If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value or CloudFrontDefaultCertificate.
        • :cloud_front_default_certificate - (Boolean) If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true . Omit this value if you are setting an IAMCertificateId.
        • :ssl_support_method - (String) If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate. Valid values include:
          • sni-only
          • vip
      • :restrictions - (Hash)
        • :geo_restriction - required - (Hash)
          • :restriction_type - required - (String) The method that you want to use to restrict distribution of your content by country: - none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. - blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content. - whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content. Valid values include:
            • blacklist
            • whitelist
            • none
          • :quantity - required - (Integer) When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.
          • :items - (Array<String>) A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes.
          • :Location - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :last_modified_time - (Time)
    • :in_progress_invalidation_batches - (Integer)
    • :domain_name - (String)
    • :active_trusted_signers - (Hash)
      • :enabled - (Boolean)
      • :quantity - (Integer)
      • :items - (Array)
        • :aws_account_number - (String)
        • :key_pair_ids - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
    • :distribution_config - (Hash)
      • :caller_reference - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :default_root_object - (String)
      • :origins - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :id - (String)
          • :domain_name - (String)
          • :s3_origin_config - (Hash)
            • :origin_access_identity - (String)
          • :custom_origin_config - (Hash)
            • :http_port - (Integer)
            • :https_port - (Integer)
            • :origin_protocol_policy - (String)
      • :default_cache_behavior - (Hash)
        • :target_origin_id - (String)
        • :forwarded_values - (Hash)
          • :query_string - (Boolean)
          • :cookies - (Hash)
            • :forward - (String)
            • :whitelisted_names - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :headers - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
        • :trusted_signers - (Hash)
          • :enabled - (Boolean)
          • :quantity - (Integer)
          • :items - (Array)
        • :viewer_protocol_policy - (String)
        • :min_ttl - (Integer)
        • :allowed_methods - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
        • :smooth_streaming - (Boolean)
      • :cache_behaviors - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :path_pattern - (String)
          • :target_origin_id - (String)
          • :forwarded_values - (Hash)
            • :query_string - (Boolean)
            • :cookies - (Hash)
              • :forward - (String)
              • :whitelisted_names - (Hash)
                • :quantity - (Integer)
                • :items - (Array)
            • :headers - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :trusted_signers - (Hash)
            • :enabled - (Boolean)
            • :quantity - (Integer)
            • :items - (Array)
          • :viewer_protocol_policy - (String)
          • :min_ttl - (Integer)
          • :allowed_methods - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
          • :smooth_streaming - (Boolean)
      • :custom_error_responses - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :error_code - (Integer)
          • :response_page_path - (String)
          • :response_code - (String)
          • :error_caching_min_ttl - (Integer)
      • :comment - (String)
      • :logging - (Hash)
        • :enabled - (Boolean)
        • :include_cookies - (Boolean)
        • :bucket - (String)
        • :prefix - (String)
      • :price_class - (String)
      • :enabled - (Boolean)
      • :viewer_certificate - (Hash)
        • :iam_certificate_id - (String)
        • :cloud_front_default_certificate - (Boolean)
        • :ssl_support_method - (String)
      • :restrictions - (Hash)
        • :geo_restriction - (Hash)
          • :restriction_type - (String)
          • :quantity - (Integer)
          • :items - (Array)

- (Core::Response) create_invalidation(options = {})

Calls the POST CreateInvalidation API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :distribution_id - required - (String) The distribution's id.
    • :invalidation_batch - required - (Hash) The batch information for the invalidation.
      • :paths - required - (Hash) The path of the object to invalidate. The path is relative to the distribution and must begin with a slash (/). You must enclose each invalidation object with the Path element tags. If the path includes non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not invalidate the old version of the updated object.
        • :quantity - required - (Integer) The number of objects that you want to invalidate.
        • :items - (Array<String>) A complex type that contains a list of the objects that you want to invalidate.
        • :Path - (String)
      • :caller_reference - required - (String) A unique name that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the Path object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create an invalidation batch, and the content of each Path element is identical to the original request, the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :create_time - (Time)
    • :invalidation_batch - (Hash)
      • :paths - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :caller_reference - (String)

- (Core::Response) create_streaming_distribution(options = {})

Calls the POST CreateStreamingDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :streaming_distribution_config - required - (Hash) The streaming distribution's configuration information.
      • :caller_reference - required - (String) A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.
      • :s3_origin - required - (Hash) A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
        • :domain_name - required - (String) The DNS name of the S3 origin.
        • :origin_access_identity - required - (String) Your S3 origin's origin access identity.
      • :aliases - required - (Hash) A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
        • :quantity - required - (Integer) The number of CNAMEs, if any, for this distribution.
        • :items - (Array<String>) Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items.
        • :CNAME - (String)
      • :comment - required - (String) Any comments you want to include about the streaming distribution.
      • :logging - required - (Hash) A complex type that controls whether access logs are written for the streaming distribution.
        • :enabled - required - (Boolean) Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.
        • :bucket - required - (String) The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
        • :prefix - required - (String) An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
      • :trusted_signers - required - (Hash) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false ), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
        • :enabled - required - (Boolean) Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.
        • :quantity - required - (Integer) The number of trusted signers for this cache behavior.
        • :items - (Array<String>) Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.
        • :AwsAccountNumber - (String)
      • :price_class - required - (String) A complex type that contains information about price class for this streaming distribution. Valid values include:
        • PriceClass_100
        • PriceClass_200
        • PriceClass_All
      • :enabled - required - (Boolean) Whether the streaming distribution is enabled to accept end user requests for content.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :last_modified_time - (Time)
    • :domain_name - (String)
    • :active_trusted_signers - (Hash)
      • :enabled - (Boolean)
      • :quantity - (Integer)
      • :items - (Array)
        • :aws_account_number - (String)
        • :key_pair_ids - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
    • :streaming_distribution_config - (Hash)
      • :caller_reference - (String)
      • :s3_origin - (Hash)
        • :domain_name - (String)
        • :origin_access_identity - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :comment - (String)
      • :logging - (Hash)
        • :enabled - (Boolean)
        • :bucket - (String)
        • :prefix - (String)
      • :trusted_signers - (Hash)
        • :enabled - (Boolean)
        • :quantity - (Integer)
        • :items - (Array)
      • :price_class - (String)
      • :enabled - (Boolean)

- (Core::Response) delete_cloud_front_origin_access_identity(options = {})

Calls the DELETE DeleteCloudFrontOriginAccessIdentity API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The origin access identity's id.
    • :if_match - (String) The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.

Returns:

- (Core::Response) delete_distribution(options = {})

Calls the DELETE DeleteDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The distribution id.
    • :if_match - (String) The value of the ETag header you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.

Returns:

- (Core::Response) delete_streaming_distribution(options = {})

Calls the DELETE DeleteStreamingDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The distribution id.
    • :if_match - (String) The value of the ETag header you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.

Returns:

- (Core::Response) get_cloud_front_origin_access_identity(options = {})

Calls the GET GetCloudFrontOriginAccessIdentity API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The identity's id.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :s3_canonical_user_id - (String)
    • :cloud_front_origin_access_identity_config - (Hash)
      • :caller_reference - (String)
      • :comment - (String)

- (Core::Response) get_cloud_front_origin_access_identity_config(options = {})

Calls the GET GetCloudFrontOriginAccessIdentityConfig API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The identity's id.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :caller_reference - (String)
    • :comment - (String)

- (Core::Response) get_distribution(options = {})

Calls the GET GetDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The distribution's id.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :last_modified_time - (Time)
    • :in_progress_invalidation_batches - (Integer)
    • :domain_name - (String)
    • :active_trusted_signers - (Hash)
      • :enabled - (Boolean)
      • :quantity - (Integer)
      • :items - (Array)
        • :aws_account_number - (String)
        • :key_pair_ids - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
    • :distribution_config - (Hash)
      • :caller_reference - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :default_root_object - (String)
      • :origins - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :id - (String)
          • :domain_name - (String)
          • :s3_origin_config - (Hash)
            • :origin_access_identity - (String)
          • :custom_origin_config - (Hash)
            • :http_port - (Integer)
            • :https_port - (Integer)
            • :origin_protocol_policy - (String)
      • :default_cache_behavior - (Hash)
        • :target_origin_id - (String)
        • :forwarded_values - (Hash)
          • :query_string - (Boolean)
          • :cookies - (Hash)
            • :forward - (String)
            • :whitelisted_names - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :headers - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
        • :trusted_signers - (Hash)
          • :enabled - (Boolean)
          • :quantity - (Integer)
          • :items - (Array)
        • :viewer_protocol_policy - (String)
        • :min_ttl - (Integer)
        • :allowed_methods - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
        • :smooth_streaming - (Boolean)
      • :cache_behaviors - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :path_pattern - (String)
          • :target_origin_id - (String)
          • :forwarded_values - (Hash)
            • :query_string - (Boolean)
            • :cookies - (Hash)
              • :forward - (String)
              • :whitelisted_names - (Hash)
                • :quantity - (Integer)
                • :items - (Array)
            • :headers - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :trusted_signers - (Hash)
            • :enabled - (Boolean)
            • :quantity - (Integer)
            • :items - (Array)
          • :viewer_protocol_policy - (String)
          • :min_ttl - (Integer)
          • :allowed_methods - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
          • :smooth_streaming - (Boolean)
      • :custom_error_responses - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :error_code - (Integer)
          • :response_page_path - (String)
          • :response_code - (String)
          • :error_caching_min_ttl - (Integer)
      • :comment - (String)
      • :logging - (Hash)
        • :enabled - (Boolean)
        • :include_cookies - (Boolean)
        • :bucket - (String)
        • :prefix - (String)
      • :price_class - (String)
      • :enabled - (Boolean)
      • :viewer_certificate - (Hash)
        • :iam_certificate_id - (String)
        • :cloud_front_default_certificate - (Boolean)
        • :ssl_support_method - (String)
      • :restrictions - (Hash)
        • :geo_restriction - (Hash)
          • :restriction_type - (String)
          • :quantity - (Integer)
          • :items - (Array)

- (Core::Response) get_distribution_config(options = {})

Calls the GET GetDistributionConfig API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The distribution's id.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :caller_reference - (String)
    • :aliases - (Hash)
      • :quantity - (Integer)
      • :items - (Array)
    • :default_root_object - (String)
    • :origins - (Hash)
      • :quantity - (Integer)
      • :items - (Array)
        • :id - (String)
        • :domain_name - (String)
        • :s3_origin_config - (Hash)
          • :origin_access_identity - (String)
        • :custom_origin_config - (Hash)
          • :http_port - (Integer)
          • :https_port - (Integer)
          • :origin_protocol_policy - (String)
    • :default_cache_behavior - (Hash)
      • :target_origin_id - (String)
      • :forwarded_values - (Hash)
        • :query_string - (Boolean)
        • :cookies - (Hash)
          • :forward - (String)
          • :whitelisted_names - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
        • :headers - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
      • :trusted_signers - (Hash)
        • :enabled - (Boolean)
        • :quantity - (Integer)
        • :items - (Array)
      • :viewer_protocol_policy - (String)
      • :min_ttl - (Integer)
      • :allowed_methods - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :smooth_streaming - (Boolean)
    • :cache_behaviors - (Hash)
      • :quantity - (Integer)
      • :items - (Array)
        • :path_pattern - (String)
        • :target_origin_id - (String)
        • :forwarded_values - (Hash)
          • :query_string - (Boolean)
          • :cookies - (Hash)
            • :forward - (String)
            • :whitelisted_names - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :headers - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
        • :trusted_signers - (Hash)
          • :enabled - (Boolean)
          • :quantity - (Integer)
          • :items - (Array)
        • :viewer_protocol_policy - (String)
        • :min_ttl - (Integer)
        • :allowed_methods - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
        • :smooth_streaming - (Boolean)
    • :custom_error_responses - (Hash)
      • :quantity - (Integer)
      • :items - (Array)
        • :error_code - (Integer)
        • :response_page_path - (String)
        • :response_code - (String)
        • :error_caching_min_ttl - (Integer)
    • :comment - (String)
    • :logging - (Hash)
      • :enabled - (Boolean)
      • :include_cookies - (Boolean)
      • :bucket - (String)
      • :prefix - (String)
    • :price_class - (String)
    • :enabled - (Boolean)
    • :viewer_certificate - (Hash)
      • :iam_certificate_id - (String)
      • :cloud_front_default_certificate - (Boolean)
      • :ssl_support_method - (String)
    • :restrictions - (Hash)
      • :geo_restriction - (Hash)
        • :restriction_type - (String)
        • :quantity - (Integer)
        • :items - (Array)

- (Core::Response) get_invalidation(options = {})

Calls the GET GetInvalidation API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :distribution_id - required - (String) The distribution's id.
    • :id - required - (String) The invalidation's id.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :create_time - (Time)
    • :invalidation_batch - (Hash)
      • :paths - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :caller_reference - (String)

- (Core::Response) get_streaming_distribution(options = {})

Calls the GET GetStreamingDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The streaming distribution's id.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :last_modified_time - (Time)
    • :domain_name - (String)
    • :active_trusted_signers - (Hash)
      • :enabled - (Boolean)
      • :quantity - (Integer)
      • :items - (Array)
        • :aws_account_number - (String)
        • :key_pair_ids - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
    • :streaming_distribution_config - (Hash)
      • :caller_reference - (String)
      • :s3_origin - (Hash)
        • :domain_name - (String)
        • :origin_access_identity - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :comment - (String)
      • :logging - (Hash)
        • :enabled - (Boolean)
        • :bucket - (String)
        • :prefix - (String)
      • :trusted_signers - (Hash)
        • :enabled - (Boolean)
        • :quantity - (Integer)
        • :items - (Array)
      • :price_class - (String)
      • :enabled - (Boolean)

- (Core::Response) get_streaming_distribution_config(options = {})

Calls the GET GetStreamingDistributionConfig API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :id - required - (String) The streaming distribution's id.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :caller_reference - (String)
    • :s3_origin - (Hash)
      • :domain_name - (String)
      • :origin_access_identity - (String)
    • :aliases - (Hash)
      • :quantity - (Integer)
      • :items - (Array)
    • :comment - (String)
    • :logging - (Hash)
      • :enabled - (Boolean)
      • :bucket - (String)
      • :prefix - (String)
    • :trusted_signers - (Hash)
      • :enabled - (Boolean)
      • :quantity - (Integer)
      • :items - (Array)
    • :price_class - (String)
    • :enabled - (Boolean)

- (Core::Response) list_cloud_front_origin_access_identities(options = {})

Calls the GET ListCloudFrontOriginAccessIdentities API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :marker - (String) Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).
    • :max_items - (Integer) The maximum number of origin access identities you want in the response body.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :marker - (String)
    • :next_marker - (String)
    • :max_items - (Integer)
    • :is_truncated - (Boolean)
    • :quantity - (Integer)
    • :items - (Array)
      • :id - (String)
      • :s3_canonical_user_id - (String)
      • :comment - (String)

- (Core::Response) list_distributions(options = {})

Calls the GET ListDistributions API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :marker - (String) Use this when paginating results to indicate where to begin in your list of distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).
    • :max_items - (Integer) The maximum number of distributions you want in the response body.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :marker - (String)
    • :next_marker - (String)
    • :max_items - (Integer)
    • :is_truncated - (Boolean)
    • :quantity - (Integer)
    • :items - (Array)
      • :id - (String)
      • :status - (String)
      • :last_modified_time - (Time)
      • :domain_name - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :origins - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :id - (String)
          • :domain_name - (String)
          • :s3_origin_config - (Hash)
            • :origin_access_identity - (String)
          • :custom_origin_config - (Hash)
            • :http_port - (Integer)
            • :https_port - (Integer)
            • :origin_protocol_policy - (String)
      • :default_cache_behavior - (Hash)
        • :target_origin_id - (String)
        • :forwarded_values - (Hash)
          • :query_string - (Boolean)
          • :cookies - (Hash)
            • :forward - (String)
            • :whitelisted_names - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :headers - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
        • :trusted_signers - (Hash)
          • :enabled - (Boolean)
          • :quantity - (Integer)
          • :items - (Array)
        • :viewer_protocol_policy - (String)
        • :min_ttl - (Integer)
        • :allowed_methods - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
        • :smooth_streaming - (Boolean)
      • :cache_behaviors - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :path_pattern - (String)
          • :target_origin_id - (String)
          • :forwarded_values - (Hash)
            • :query_string - (Boolean)
            • :cookies - (Hash)
              • :forward - (String)
              • :whitelisted_names - (Hash)
                • :quantity - (Integer)
                • :items - (Array)
            • :headers - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :trusted_signers - (Hash)
            • :enabled - (Boolean)
            • :quantity - (Integer)
            • :items - (Array)
          • :viewer_protocol_policy - (String)
          • :min_ttl - (Integer)
          • :allowed_methods - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
          • :smooth_streaming - (Boolean)
      • :custom_error_responses - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :error_code - (Integer)
          • :response_page_path - (String)
          • :response_code - (String)
          • :error_caching_min_ttl - (Integer)
      • :comment - (String)
      • :price_class - (String)
      • :enabled - (Boolean)
      • :viewer_certificate - (Hash)
        • :iam_certificate_id - (String)
        • :cloud_front_default_certificate - (Boolean)
        • :ssl_support_method - (String)
      • :restrictions - (Hash)
        • :geo_restriction - (Hash)
          • :restriction_type - (String)
          • :quantity - (Integer)
          • :items - (Array)

- (Core::Response) list_invalidations(options = {})

Calls the GET ListInvalidations API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :distribution_id - required - (String) The distribution's id.
    • :marker - (String) Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.
    • :max_items - (Integer) The maximum number of invalidation batches you want in the response body.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :marker - (String)
    • :next_marker - (String)
    • :max_items - (Integer)
    • :is_truncated - (Boolean)
    • :quantity - (Integer)
    • :items - (Array)
      • :id - (String)
      • :create_time - (Time)
      • :status - (String)

- (Core::Response) list_streaming_distributions(options = {})

Calls the GET ListStreamingDistributions API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :marker - (String) Use this when paginating results to indicate where to begin in your list of streaming distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).
    • :max_items - (Integer) The maximum number of streaming distributions you want in the response body.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :marker - (String)
    • :next_marker - (String)
    • :max_items - (Integer)
    • :is_truncated - (Boolean)
    • :quantity - (Integer)
    • :items - (Array)
      • :id - (String)
      • :status - (String)
      • :last_modified_time - (Time)
      • :domain_name - (String)
      • :s3_origin - (Hash)
        • :domain_name - (String)
        • :origin_access_identity - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :trusted_signers - (Hash)
        • :enabled - (Boolean)
        • :quantity - (Integer)
        • :items - (Array)
      • :comment - (String)
      • :price_class - (String)
      • :enabled - (Boolean)

- (Core::Response) update_cloud_front_origin_access_identity(options = {})

Calls the PUT UpdateCloudFrontOriginAccessIdentity API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :cloud_front_origin_access_identity_config - required - (Hash) The identity's configuration information.
      • :caller_reference - required - (String) A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.
      • :comment - required - (String) Any comments you want to include about the origin access identity.
    • :id - required - (String) The identity's id.
    • :if_match - (String) The value of the ETag header you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :s3_canonical_user_id - (String)
    • :cloud_front_origin_access_identity_config - (Hash)
      • :caller_reference - (String)
      • :comment - (String)

- (Core::Response) update_distribution(options = {})

Calls the PUT UpdateDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :distribution_config - required - (Hash) The distribution's configuration information.
      • :caller_reference - required - (String) A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.
      • :aliases - required - (Hash) A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
        • :quantity - required - (Integer) The number of CNAMEs, if any, for this distribution.
        • :items - (Array<String>) Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items.
        • :CNAME - (String)
      • :default_root_object - required - (String) The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/index.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.
      • :origins - required - (Hash) A complex type that contains information about origins for this distribution.
        • :quantity - required - (Integer) The number of origins for this distribution.
        • :items - (Array<Hash>) A complex type that contains origins for this distribution.
        • :Origin - (Hash)
          • :id - required - (String) A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.
          • :domain_name - required - (String) Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.
          • :s3_origin_config - (Hash) A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.
            • :origin_access_identity - required - (String) The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. Use the format origin-access-identity/cloudfront/Id where Id is the value that CloudFront returned in the Id element when you created the origin access identity.
          • :custom_origin_config - (Hash) A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
            • :http_port - required - (Integer) The HTTP port the custom origin listens on.
            • :https_port - required - (Integer) The HTTPS port the custom origin listens on.
            • :origin_protocol_policy - required - (String) The origin protocol policy to apply to your origin. Valid values include:
              • http-only
              • match-viewer
      • :default_cache_behavior - required - (Hash) A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.
        • :target_origin_id - required - (String) The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
        • :forwarded_values - required - (Hash) A complex type that specifies how CloudFront handles query strings, cookies and headers.
          • :query_string - required - (Boolean) Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
          • :cookies - required - (Hash) A complex type that specifies how CloudFront handles cookies.
            • :forward - required - (String) Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses. Valid values include:
              • none
              • whitelist
              • all
            • :whitelisted_names - (Hash) A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.
              • :quantity - required - (Integer) The number of whitelisted cookies for this cache behavior.
              • :items - (Array<String>) Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.
              • :Name - (String)
          • :headers - (Hash) A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.
            • :quantity - required - (Integer) The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.
            • :items - (Array<String>) Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items.
            • :Name - (String)
        • :trusted_signers - required - (Hash) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false ), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
          • :enabled - required - (Boolean) Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.
          • :quantity - required - (Integer) The number of trusted signers for this cache behavior.
          • :items - (Array<String>) Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.
          • :AwsAccountNumber - (String)
        • :viewer_protocol_policy - required - (String) Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL. Valid values include:
          • allow-all
          • https-only
          • redirect-to-https
        • :min_ttl - required - (Integer) The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).
        • :allowed_methods - (Hash)
          • :quantity - required - (Integer) The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).
          • :items - (Array<String>) A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
          • :Method - (String)
        • :smooth_streaming - (Boolean) Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
      • :cache_behaviors - required - (Hash) A complex type that contains zero or more CacheBehavior elements.
        • :quantity - required - (Integer) The number of cache behaviors for this distribution.
        • :items - (Array<Hash>) Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items.
        • :CacheBehavior - (Hash)
          • :path_pattern - required - (String) The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.
          • :target_origin_id - required - (String) The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.
          • :forwarded_values - required - (Hash) A complex type that specifies how CloudFront handles query strings, cookies and headers.
            • :query_string - required - (Boolean) Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
            • :cookies - required - (Hash) A complex type that specifies how CloudFront handles cookies.
              • :forward - required - (String) Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses. Valid values include:
                • none
                • whitelist
                • all
              • :whitelisted_names - (Hash) A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.
                • :quantity - required - (Integer) The number of whitelisted cookies for this cache behavior.
                • :items - (Array<String>) Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items.
                • :Name - (String)
            • :headers - (Hash) A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.
              • :quantity - required - (Integer) The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.
              • :items - (Array<String>) Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items.
              • :Name - (String)
          • :trusted_signers - required - (Hash) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false ), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
            • :enabled - required - (Boolean) Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.
            • :quantity - required - (Integer) The number of trusted signers for this cache behavior.
            • :items - (Array<String>) Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.
            • :AwsAccountNumber - (String)
          • :viewer_protocol_policy - required - (String) Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL. Valid values include:
            • allow-all
            • https-only
            • redirect-to-https
          • :min_ttl - required - (Integer) The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).
          • :allowed_methods - (Hash)
            • :quantity - required - (Integer) The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests) and 7 (for DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT requests).
            • :items - (Array<String>) A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
            • :Method - (String)
          • :smooth_streaming - (Boolean) Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true ; if not, specify false .
      • :custom_error_responses - (Hash) A complex type that contains zero or more CustomErrorResponse elements.
        • :quantity - required - (Integer) The number of custom error responses for this distribution.
        • :items - (Array<Hash>) Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.
        • :CustomErrorResponse - (Hash)
          • :error_code - required - (Integer) The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation.
          • :response_page_path - (String) The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer.
          • :response_code - (String) The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation.
          • :error_caching_min_ttl - (Integer) The minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.
      • :comment - required - (String) Any comments you want to include about the distribution.
      • :logging - required - (Hash) A complex type that controls whether access logs are written for the distribution.
        • :enabled - required - (Boolean) Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.
        • :include_cookies - required - (Boolean) Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.
        • :bucket - required - (String) The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
        • :prefix - required - (String) An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
      • :price_class - required - (String) A complex type that contains information about price class for this distribution. Valid values include:
        • PriceClass_100
        • PriceClass_200
        • PriceClass_All
      • :enabled - required - (Boolean) Whether the distribution is enabled to accept end user requests for content.
      • :viewer_certificate - (Hash)
        • :iam_certificate_id - (String) If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value or CloudFrontDefaultCertificate.
        • :cloud_front_default_certificate - (Boolean) If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true . Omit this value if you are setting an IAMCertificateId.
        • :ssl_support_method - (String) If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate. Valid values include:
          • sni-only
          • vip
      • :restrictions - (Hash)
        • :geo_restriction - required - (Hash)
          • :restriction_type - required - (String) The method that you want to use to restrict distribution of your content by country: - none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. - blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content. - whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content. Valid values include:
            • blacklist
            • whitelist
            • none
          • :quantity - required - (Integer) When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.
          • :items - (Array<String>) A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes.
          • :Location - (String)
    • :id - required - (String) The distribution's id.
    • :if_match - (String) The value of the ETag header you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :last_modified_time - (Time)
    • :in_progress_invalidation_batches - (Integer)
    • :domain_name - (String)
    • :active_trusted_signers - (Hash)
      • :enabled - (Boolean)
      • :quantity - (Integer)
      • :items - (Array)
        • :aws_account_number - (String)
        • :key_pair_ids - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
    • :distribution_config - (Hash)
      • :caller_reference - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :default_root_object - (String)
      • :origins - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :id - (String)
          • :domain_name - (String)
          • :s3_origin_config - (Hash)
            • :origin_access_identity - (String)
          • :custom_origin_config - (Hash)
            • :http_port - (Integer)
            • :https_port - (Integer)
            • :origin_protocol_policy - (String)
      • :default_cache_behavior - (Hash)
        • :target_origin_id - (String)
        • :forwarded_values - (Hash)
          • :query_string - (Boolean)
          • :cookies - (Hash)
            • :forward - (String)
            • :whitelisted_names - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :headers - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
        • :trusted_signers - (Hash)
          • :enabled - (Boolean)
          • :quantity - (Integer)
          • :items - (Array)
        • :viewer_protocol_policy - (String)
        • :min_ttl - (Integer)
        • :allowed_methods - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
        • :smooth_streaming - (Boolean)
      • :cache_behaviors - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :path_pattern - (String)
          • :target_origin_id - (String)
          • :forwarded_values - (Hash)
            • :query_string - (Boolean)
            • :cookies - (Hash)
              • :forward - (String)
              • :whitelisted_names - (Hash)
                • :quantity - (Integer)
                • :items - (Array)
            • :headers - (Hash)
              • :quantity - (Integer)
              • :items - (Array)
          • :trusted_signers - (Hash)
            • :enabled - (Boolean)
            • :quantity - (Integer)
            • :items - (Array)
          • :viewer_protocol_policy - (String)
          • :min_ttl - (Integer)
          • :allowed_methods - (Hash)
            • :quantity - (Integer)
            • :items - (Array)
          • :smooth_streaming - (Boolean)
      • :custom_error_responses - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
          • :error_code - (Integer)
          • :response_page_path - (String)
          • :response_code - (String)
          • :error_caching_min_ttl - (Integer)
      • :comment - (String)
      • :logging - (Hash)
        • :enabled - (Boolean)
        • :include_cookies - (Boolean)
        • :bucket - (String)
        • :prefix - (String)
      • :price_class - (String)
      • :enabled - (Boolean)
      • :viewer_certificate - (Hash)
        • :iam_certificate_id - (String)
        • :cloud_front_default_certificate - (Boolean)
        • :ssl_support_method - (String)
      • :restrictions - (Hash)
        • :geo_restriction - (Hash)
          • :restriction_type - (String)
          • :quantity - (Integer)
          • :items - (Array)

- (Core::Response) update_streaming_distribution(options = {})

Calls the PUT UpdateStreamingDistribution API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :streaming_distribution_config - required - (Hash) The streaming distribution's configuration information.
      • :caller_reference - required - (String) A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.
      • :s3_origin - required - (Hash) A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
        • :domain_name - required - (String) The DNS name of the S3 origin.
        • :origin_access_identity - required - (String) Your S3 origin's origin access identity.
      • :aliases - required - (Hash) A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
        • :quantity - required - (Integer) The number of CNAMEs, if any, for this distribution.
        • :items - (Array<String>) Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items.
        • :CNAME - (String)
      • :comment - required - (String) Any comments you want to include about the streaming distribution.
      • :logging - required - (Hash) A complex type that controls whether access logs are written for the streaming distribution.
        • :enabled - required - (Boolean) Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.
        • :bucket - required - (String) The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
        • :prefix - required - (String) An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
      • :trusted_signers - required - (Hash) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false ), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
        • :enabled - required - (Boolean) Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.
        • :quantity - required - (Integer) The number of trusted signers for this cache behavior.
        • :items - (Array<String>) Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.
        • :AwsAccountNumber - (String)
      • :price_class - required - (String) A complex type that contains information about price class for this streaming distribution. Valid values include:
        • PriceClass_100
        • PriceClass_200
        • PriceClass_All
      • :enabled - required - (Boolean) Whether the streaming distribution is enabled to accept end user requests for content.
    • :id - required - (String) The streaming distribution's id.
    • :if_match - (String) The value of the ETag header you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :id - (String)
    • :status - (String)
    • :last_modified_time - (Time)
    • :domain_name - (String)
    • :active_trusted_signers - (Hash)
      • :enabled - (Boolean)
      • :quantity - (Integer)
      • :items - (Array)
        • :aws_account_number - (String)
        • :key_pair_ids - (Hash)
          • :quantity - (Integer)
          • :items - (Array)
    • :streaming_distribution_config - (Hash)
      • :caller_reference - (String)
      • :s3_origin - (Hash)
        • :domain_name - (String)
        • :origin_access_identity - (String)
      • :aliases - (Hash)
        • :quantity - (Integer)
        • :items - (Array)
      • :comment - (String)
      • :logging - (Hash)
        • :enabled - (Boolean)
        • :bucket - (String)
        • :prefix - (String)
      • :trusted_signers - (Hash)
        • :enabled - (Boolean)
        • :quantity - (Integer)
        • :items - (Array)
      • :price_class - (String)
      • :enabled - (Boolean)