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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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 custom 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)


2266
2267
2268
2269
2270
2271
2272
2273
2274
# File 'lib/aws-sdk-cloudfront/types.rb', line 2266

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)


2266
2267
2268
2269
2270
2271
2272
2273
2274
# File 'lib/aws-sdk-cloudfront/types.rb', line 2266

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].

[1]: console.aws.amazon.com/support/home#/

Returns:

  • (Integer)


2266
2267
2268
2269
2270
2271
2272
2273
2274
# File 'lib/aws-sdk-cloudfront/types.rb', line 2266

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)


2266
2267
2268
2269
2270
2271
2272
2273
2274
# File 'lib/aws-sdk-cloudfront/types.rb', line 2266

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].

[1]: console.aws.amazon.com/support/home#/

Returns:

  • (Integer)


2266
2267
2268
2269
2270
2271
2272
2273
2274
# File 'lib/aws-sdk-cloudfront/types.rb', line 2266

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.



2266
2267
2268
2269
2270
2271
2272
2273
2274
# File 'lib/aws-sdk-cloudfront/types.rb', line 2266

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