View a markdown version of this page

AWS::CloudFront::Distribution VpcOriginConfig - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::CloudFront::Distribution VpcOriginConfig

An Amazon CloudFront VPC origin configuration.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "OriginHttpVersion" : String, "OriginKeepaliveTimeout" : Integer, "OriginReadTimeout" : Integer, "OwnerAccountId" : String, "VpcOriginId" : String }

Properties

OriginHttpVersion

The HTTP version that CloudFront uses for connections to your VPC origin. Valid values are http1.1 and http2. With http2, CloudFront negotiates HTTP/2 with the origin and falls back to HTTP/1.1 if the origin doesn't support HTTP/2. CloudFront uses HTTP/2 only over TLS 1.2 or later. If you don't specify a value, CloudFront uses HTTP/1.1.

Required: No

Type: String

Allowed values: http1.1 | http2

Update requires: No interruption

OriginKeepaliveTimeout

Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 300 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.

Required: No

Type: Integer

Update requires: No interruption

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.

Required: No

Type: Integer

Update requires: No interruption

OwnerAccountId

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

Required: No

Type: String

Update requires: No interruption

VpcOriginId

The VPC origin ID.

Required: Yes

Type: String

Update requires: No interruption