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

Class: Aws::CloudFront::Types::CustomOriginConfig

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 CustomOriginConfig data as a hash:

{
  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 customer origin or an Amazon S3 bucket configured as a website endpoint.

Instance Attribute Summary collapse

Instance Attribute Details

#http_portInteger

The HTTP port the custom origin listens on.

Returns:

  • (Integer)


2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2097

class CustomOriginConfig < Struct.new(
  :http_port,
  :https_port,
  :origin_protocol_policy,
  :origin_ssl_protocols,
  :origin_read_timeout,
  :origin_keepalive_timeout)
  include Aws::Structure
end

#https_portInteger

The HTTPS port the custom origin listens on.

Returns:

  • (Integer)


2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2097

class CustomOriginConfig < Struct.new(
  :http_port,
  :https_port,
  :origin_protocol_policy,
  :origin_ssl_protocols,
  :origin_read_timeout,
  :origin_keepalive_timeout)
  include Aws::Structure
end

#origin_keepalive_timeoutInteger

You can create a custom keep-alive timeout. All timeout units are in seconds. The default keep-alive timeout is 5 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 1 second; the maximum is 60 seconds.

If you need to increase the maximum time limit, contact the AWS Support Center.

Returns:

  • (Integer)


2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2097

class CustomOriginConfig < Struct.new(
  :http_port,
  :https_port,
  :origin_protocol_policy,
  :origin_ssl_protocols,
  :origin_read_timeout,
  :origin_keepalive_timeout)
  include Aws::Structure
end

#origin_protocol_policyString

The origin protocol policy to apply to your origin.

Returns:

  • (String)


2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2097

class CustomOriginConfig < Struct.new(
  :http_port,
  :https_port,
  :origin_protocol_policy,
  :origin_ssl_protocols,
  :origin_read_timeout,
  :origin_keepalive_timeout)
  include Aws::Structure
end

#origin_read_timeoutInteger

You can create a custom origin read timeout. All timeout units are in seconds. The default origin read timeout is 30 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 4 seconds; the maximum is 60 seconds.

If you need to increase the maximum time limit, contact the AWS Support Center.

Returns:

  • (Integer)


2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2097

class CustomOriginConfig < Struct.new(
  :http_port,
  :https_port,
  :origin_protocol_policy,
  :origin_ssl_protocols,
  :origin_read_timeout,
  :origin_keepalive_timeout)
  include Aws::Structure
end

#origin_ssl_protocolsTypes::OriginSslProtocols

The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.



2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2097

class CustomOriginConfig < Struct.new(
  :http_port,
  :https_port,
  :origin_protocol_policy,
  :origin_ssl_protocols,
  :origin_read_timeout,
  :origin_keepalive_timeout)
  include Aws::Structure
end