You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudFront::Types::Origins

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb

Overview

Note:

When making an API call, you may pass Origins data as a hash:

{
  quantity: 1, # required
  items: [
    {
      id: "string", # required
      domain_name: "string", # required
      origin_path: "string",
      custom_headers: {
        quantity: 1, # required
        items: [
          {
            header_name: "string", # required
            header_value: "string", # required
          },
        ],
      },
      s3_origin_config: {
        origin_access_identity: "string", # required
      },
      custom_origin_config: {
        http_port: 1, # required
        https_port: 1, # required
        origin_protocol_policy: "http-only", # required, accepts http-only, match-viewer, https-only
        origin_ssl_protocols: {
          quantity: 1, # required
          items: ["SSLv3"], # required, accepts SSLv3, TLSv1, TLSv1.1, TLSv1.2
        },
        origin_read_timeout: 1,
        origin_keepalive_timeout: 1,
      },
    },
  ],
}

A complex type that contains information about origins for this distribution.

Instance Attribute Summary collapse

Instance Attribute Details

#itemsArray<Types::Origin>

A complex type that contains origins for this distribution.

Returns:



4410
4411
4412
4413
4414
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 4410

class Origins < Struct.new(
  :quantity,
  :items)
  include Aws::Structure
end

#quantityInteger

The number of origins for this distribution.

Returns:

  • (Integer)


4410
4411
4412
4413
4414
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 4410

class Origins < Struct.new(
  :quantity,
  :items)
  include Aws::Structure
end