Interface VpcOriginConfig.Builder

  • Method Details

    • vpcOriginId

      VpcOriginConfig.Builder vpcOriginId(String vpcOriginId)

      The VPC origin ID.

      Parameters:
      vpcOriginId - The VPC origin ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ownerAccountId

      VpcOriginConfig.Builder ownerAccountId(String ownerAccountId)

      The account ID of the Amazon Web Services account that owns the VPC origin.

      Parameters:
      ownerAccountId - The account ID of the Amazon Web Services account that owns the VPC origin.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originReadTimeout

      VpcOriginConfig.Builder originReadTimeout(Integer originReadTimeout)

      Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the origin response timeout. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.

      For more information, see Response timeout in the Amazon CloudFront Developer Guide.

      Parameters:
      originReadTimeout - Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the origin response timeout. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.

      For more information, see Response timeout in the Amazon CloudFront Developer Guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originKeepaliveTimeout

      VpcOriginConfig.Builder originKeepaliveTimeout(Integer originKeepaliveTimeout)

      Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 5 seconds.

      For more information, see Keep-alive timeout (custom origins only) in the Amazon CloudFront Developer Guide.

      Parameters:
      originKeepaliveTimeout - Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 5 seconds.

      For more information, see Keep-alive timeout (custom origins only) in the Amazon CloudFront Developer Guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originHttpVersion

      VpcOriginConfig.Builder originHttpVersion(String originHttpVersion)

      The HTTP version that CloudFront uses for requests to the VPC origin for this distribution. Valid values are http1.1 and http2. If you don't specify a value, CloudFront uses HTTP/1.1.

      When you specify http2, CloudFront offers HTTP/2 to the origin by using ALPN. If the origin doesn't negotiate HTTP/2, CloudFront uses HTTP/1.1. CloudFront uses HTTP/2 only over Transport Layer Security (TLS) 1.2 or later. Otherwise, it uses HTTP/1.1.

      If you use a version of an AWS SDK or the AWS CLI that doesn't support this field, an update that sends back a configuration you got from CloudFront removes the value, and CloudFront then uses HTTP/1.1.

      For more information, see Origin HTTP version in the Amazon CloudFront Developer Guide.

      Parameters:
      originHttpVersion - The HTTP version that CloudFront uses for requests to the VPC origin for this distribution. Valid values are http1.1 and http2. If you don't specify a value, CloudFront uses HTTP/1.1.

      When you specify http2, CloudFront offers HTTP/2 to the origin by using ALPN. If the origin doesn't negotiate HTTP/2, CloudFront uses HTTP/1.1. CloudFront uses HTTP/2 only over Transport Layer Security (TLS) 1.2 or later. Otherwise, it uses HTTP/1.1.

      If you use a version of an AWS SDK or the AWS CLI that doesn't support this field, an update that sends back a configuration you got from CloudFront removes the value, and CloudFront then uses HTTP/1.1.

      For more information, see Origin HTTP version in the Amazon CloudFront Developer Guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • originHttpVersion

      VpcOriginConfig.Builder originHttpVersion(OriginHttpVersion originHttpVersion)

      The HTTP version that CloudFront uses for requests to the VPC origin for this distribution. Valid values are http1.1 and http2. If you don't specify a value, CloudFront uses HTTP/1.1.

      When you specify http2, CloudFront offers HTTP/2 to the origin by using ALPN. If the origin doesn't negotiate HTTP/2, CloudFront uses HTTP/1.1. CloudFront uses HTTP/2 only over Transport Layer Security (TLS) 1.2 or later. Otherwise, it uses HTTP/1.1.

      If you use a version of an AWS SDK or the AWS CLI that doesn't support this field, an update that sends back a configuration you got from CloudFront removes the value, and CloudFront then uses HTTP/1.1.

      For more information, see Origin HTTP version in the Amazon CloudFront Developer Guide.

      Parameters:
      originHttpVersion - The HTTP version that CloudFront uses for requests to the VPC origin for this distribution. Valid values are http1.1 and http2. If you don't specify a value, CloudFront uses HTTP/1.1.

      When you specify http2, CloudFront offers HTTP/2 to the origin by using ALPN. If the origin doesn't negotiate HTTP/2, CloudFront uses HTTP/1.1. CloudFront uses HTTP/2 only over Transport Layer Security (TLS) 1.2 or later. Otherwise, it uses HTTP/1.1.

      If you use a version of an AWS SDK or the AWS CLI that doesn't support this field, an update that sends back a configuration you got from CloudFront removes the value, and CloudFront then uses HTTP/1.1.

      For more information, see Origin HTTP version in the Amazon CloudFront Developer Guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: