Class: Aws::CloudFront::Types::CustomOriginConfig
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::CustomOriginConfig
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
Overview
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.
Instance Attribute Summary collapse
-
#http_port ⇒ Integer
The HTTP port the custom origin listens on.
-
#https_port ⇒ Integer
The HTTPS port the custom origin listens on.
-
#origin_keepalive_timeout ⇒ Integer
You can create a custom keep-alive timeout.
-
#origin_protocol_policy ⇒ String
The origin protocol policy to apply to your origin.
-
#origin_read_timeout ⇒ Integer
You can create a custom origin read timeout.
-
#origin_ssl_protocols ⇒ Types::OriginSslProtocols
The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
Instance Attribute Details
#http_port ⇒ Integer
The HTTP port the custom origin listens on.
1792 1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 1792 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_port ⇒ Integer
The HTTPS port the custom origin listens on.
1792 1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 1792 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_timeout ⇒ Integer
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].
1792 1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 1792 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_policy ⇒ String
The origin protocol policy to apply to your origin.
1792 1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 1792 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_timeout ⇒ Integer
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].
1792 1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 1792 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_protocols ⇒ Types::OriginSslProtocols
The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
1792 1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 1792 class CustomOriginConfig < Struct.new( :http_port, :https_port, :origin_protocol_policy, :origin_ssl_protocols, :origin_read_timeout, :origin_keepalive_timeout) include Aws::Structure end |