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.
Inheritance
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
OriginBase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
OriginBase(String, IOriginProps) |
Methods
Bind(Construct, IOriginBindOptions) | Binds the origin to the associated Distribution. |
RenderCustomOriginConfig() | |
RenderS3OriginConfig() | |
RenderVpcOriginConfig() |
Constructors
OriginBase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected OriginBase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
OriginBase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected OriginBase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
OriginBase(String, IOriginProps)
protected OriginBase(string domainName, IOriginProps props = null)
Parameters
- domainName System.String
- props IOriginProps
Methods
Bind(Construct, IOriginBindOptions)
Binds the origin to the associated Distribution.
public virtual IOriginBindConfig Bind(Construct scope, IOriginBindOptions options)
Parameters
- scope Constructs.Construct
- options IOriginBindOptions
Returns
Remarks
Can be used to grant permissions, create dependent resources, etc.
RenderCustomOriginConfig()
protected virtual CfnDistribution.ICustomOriginConfigProperty RenderCustomOriginConfig()
Returns
CfnDistribution.ICustomOriginConfigProperty
RenderS3OriginConfig()
protected virtual CfnDistribution.IS3OriginConfigProperty RenderS3OriginConfig()
Returns
CfnDistribution.IS3OriginConfigProperty
RenderVpcOriginConfig()
protected virtual CfnDistribution.IVpcOriginConfigProperty RenderVpcOriginConfig()
Returns
CfnDistribution.IVpcOriginConfigProperty