CloudFrontOriginSchema
Index
Properties
optionalconnectionAttempts
How many times CloudFront retries the origin before giving up. Between 1 and 3.
optionalconnectionTimeout
How long CloudFront waits to establish a connection to the origin, in seconds. Between 1 and 10.
optionalcustomHeaders
Headers CloudFront adds to every request it sends to this origin. This is how a load balancer rejects anything that did not arrive through the distribution.
Type declaration
[key string]: string
kind
What kind of origin this is, and the settings that only apply to that kind.
s3is a bucket reached privately, through an origin access control the distribution creates. Read access on the bucket is granted by the bucket, not here.lambdais the URL of a Lambda function, reached over HTTPS through an origin access control the distribution creates. The function admits the distribution, not this origin.resourceIdis the function's, set byCloudFrontDistribution.addLambdaOrigin()when it attaches the function.albis an internet-facing ALB, reached over HTTP on port 80, the only listener octo's ALB has.resourceIdis the ALB's, set byCloudFrontDistribution.addAlbOrigin()when it attaches the ALB.customis a hostname octo does not manage - a legacy origin, or a third party.
originId
A name you choose for this origin, e.g. website. Behaviors and origin groups refer to it.
Unique across origins and origin groups.
optionaloriginPath
A prefix CloudFront prepends to the path before asking the origin for it. Empty asks the origin for the path the viewer requested.
One origin the distribution can serve from.
Resources/CloudFrontDistribution