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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CustomOriginConfig as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#http_portInteger

The HTTP port the custom origin listens on.

Returns:

  • (Integer)

    The HTTP port the custom origin listens on.

#https_portInteger

The HTTPS port the custom origin listens on.

Returns:

  • (Integer)

    The HTTPS port the custom origin listens on.

#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)

    You can create a custom keep-alive timeout.

#origin_protocol_policyString

The origin protocol policy to apply to your origin.

Possible values:

  • http-only
  • match-viewer
  • https-only

Returns:

  • (String)

    The origin protocol policy to apply to your origin.

#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)

    You can create a custom origin read timeout.

#origin_ssl_protocolsTypes::OriginSslProtocols

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

Returns:

  • (Types::OriginSslProtocols)

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