Class OriginBase
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.
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class OriginBase : DeputyBase, IOrigin
Syntax (vb)
Public MustInherit Class OriginBase Inherits DeputyBase Implements IOrigin
Synopsis
Constructors
| OriginBase(string, IOriginProps?) | 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. |
Methods
| Bind(Construct, IOriginBindOptions) | Binds the origin to the associated Distribution. |
| RenderCustomOriginConfig() | 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. |
| RenderS3OriginConfig() | 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. |
| RenderVpcOriginConfig() | 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. |
| ValidateResponseCompletionTimeoutWithReadTimeout(Duration?, Duration?) | Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified. |
Constructors
OriginBase(string, IOriginProps?)
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.
protected OriginBase(string domainName, IOriginProps? props = null)
Parameters
- domainName string
- props IOriginProps
Methods
Bind(Construct, IOriginBindOptions)
Binds the origin to the associated Distribution.
public virtual IOriginBindConfig Bind(Construct scope, IOriginBindOptions options)
Parameters
- scope Construct
- options IOriginBindOptions
Returns
Remarks
Can be used to grant permissions, create dependent resources, etc.
RenderCustomOriginConfig()
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.
protected virtual CfnDistribution.ICustomOriginConfigProperty? RenderCustomOriginConfig()
Returns
RenderS3OriginConfig()
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.
protected virtual CfnDistribution.IS3OriginConfigProperty? RenderS3OriginConfig()
Returns
RenderVpcOriginConfig()
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.
protected virtual CfnDistribution.IVpcOriginConfigProperty? RenderVpcOriginConfig()
Returns
ValidateResponseCompletionTimeoutWithReadTimeout(Duration?, Duration?)
Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.
protected virtual void ValidateResponseCompletionTimeoutWithReadTimeout(Duration? responseCompletionTimeout = null, Duration? readTimeout = null)
Parameters
Remarks
This method should be called by subclasses that support readTimeout.