AwsCloudfrontCustomOriginArgs

interface AwsCloudfrontCustomOriginArgs extends AwsCloudfrontOriginBaseArgs { connectionAttempts?: Input<number | undefined>; connectionTimeout?: Input<number | undefined>; customHeaders?: Input<Input<DistributionOriginCustomHeader>[] | undefined>; customOriginConfig: AwsCloudfrontCustomOriginConfigArgs; domainName: Input<string>; originAccessControl?: undefined; originId: string; originPath?: Input<string | undefined>; originShield?: Input<DistributionOriginOriginShield | undefined>; responseCompletionTimeout?: Input<number | undefined>; s3Origin?: undefined; vpcOriginConfig?: Input<DistributionOriginVpcOriginConfig | undefined>; }

HTTPS custom origin.

Example

CODE
`const origin: AwsCloudfrontCustomOriginArgs = { domainName: 'origin.example.com', originId: 'application', customOriginConfig: { httpPort: 80, httpsPort: 443 } };`

Hierarchy

  • AwsCloudfrontOriginBaseArgs
  • AwsCloudfrontCustomOriginArgs

Properties

connectionAttempts: Input<number | undefined>

Inherited from connectionAttempts

Number of times that CloudFront attempts to connect to the origin. Must be between 1-3. Defaults to 3.

connectionTimeout: Input<number | undefined>

Inherited from connectionTimeout

Number of seconds that CloudFront waits when trying to establish a connection to the origin. Must be between 1-10. Defaults to 10.

customHeaders: Input<Input<DistributionOriginCustomHeader>[] | undefined>

Inherited from customHeaders

One or more sub-resources with name and value parameters that specify header data that will be sent to the origin (multiples allowed).

customOriginConfig: AwsCloudfrontCustomOriginConfigArgs

Custom-origin settings.

domainName: Input<string>

Inherited from domainName

Domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.

originAccessControl: undefined

originId: string

Inherited from originId

Stable, plain-string origin identifier.

originPath: Input<string | undefined>

Inherited from originPath

Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin.

originShield: Input<DistributionOriginOriginShield | undefined>

Inherited from originShield

CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield in the Amazon CloudFront Developer Guide.

responseCompletionTimeout: Input<number | undefined>

Inherited from responseCompletionTimeout

Time (in seconds) that a request from CloudFront to the origin can stay open and wait for a response. Must be integer greater than or equal to the value of originReadTimeout. If omitted or explicitly set to 0, no maximum value is enforced.

s3Origin: undefined

vpcOriginConfig: Input<DistributionOriginVpcOriginConfig | undefined>

Inherited from vpcOriginConfig

The VPC origin configuration.