class OriginBase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudFront.OriginBase |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#OriginBase |
Java | software.amazon.awscdk.services.cloudfront.OriginBase |
Python | aws_cdk.aws_cloudfront.OriginBase |
TypeScript (source) | aws-cdk-lib » aws_cloudfront » OriginBase |
Implements
IOrigin
Implemented by
Function, Http, Load, Rest, S3
Represents a distribution origin, that describes the Amazon S3 bucket, HTTP server (for example, a web server), Amazon MediaStore, or other server from which CloudFront gets your files.
Initializer (protected)
super(domainName: string, props?: OriginProps)
Parameters
- domainName
string - props
OriginProps
Methods
| Name | Description |
|---|---|
| bind(scope, options) | Binds the origin to the associated Distribution. |
| protected render | |
| protected render | |
| protected render | |
| protected validate | Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified. |
bind(scope, options)
public bind(scope: Construct, options: OriginBindOptions): OriginBindConfig
Parameters
- scope
Construct - options
OriginBind Options
Returns
Binds the origin to the associated Distribution.
Can be used to grant permissions, create dependent resources, etc.
protected renderCustomOriginConfig()
protected renderCustomOriginConfig(): CustomOriginConfigProperty
Returns
protected renderS3OriginConfig()
protected renderS3OriginConfig(): S3OriginConfigProperty
Returns
protected renderVpcOriginConfig()
protected renderVpcOriginConfig(): VpcOriginConfigProperty
Returns
protected validateResponseCompletionTimeoutWithReadTimeout(responseCompletionTimeout?, readTimeout?)
protected validateResponseCompletionTimeoutWithReadTimeout(responseCompletionTimeout?: Duration, readTimeout?: Duration): void
Parameters
Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.
This method should be called by subclasses that support readTimeout.

.NET
Go
Java
Python
TypeScript (