AwsCloudfrontS3OriginArgs
interface AwsCloudfrontS3OriginArgs extends AwsCloudfrontOriginBaseArgs {
connectionAttempts?: Input<number | undefined>;
connectionTimeout?: Input<number | undefined>;
customHeaders?: Input<Input<DistributionOriginCustomHeader>[] | undefined>;
customOriginConfig?: undefined;
domainName: Input<string>;
originAccessControl: Input<AwsCloudfrontOriginAccessControlReference>;
originId: string;
originPath?: Input<string | undefined>;
originShield?: Input<DistributionOriginOriginShield | undefined>;
responseCompletionTimeout?: Input<number | undefined>;
s3Origin: true;
vpcOriginConfig?: Input<DistributionOriginVpcOriginConfig | undefined>;
}Private S3 origin protected by OAC.
Example
`const origin: AwsCloudfrontS3OriginArgs = { domainName: 'assets.s3.amazonaws.com', originId: 'assets', s3Origin: true, originAccessControl: { id: 'oac-id', kind: 'origin-access-control' } };`Hierarchy
AwsCloudfrontOriginBaseArgsAwsCloudfrontS3OriginArgs
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: undefined
domainName: Input<string>
Inherited from domainName
Domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.
originAccessControl: Input<AwsCloudfrontOriginAccessControlReference>
Required OAC reference.
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: true
Marks an S3 origin.
vpcOriginConfig: Input<DistributionOriginVpcOriginConfig | undefined>
Inherited from vpcOriginConfig
The VPC origin configuration.