class OriginBase
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.OriginBase |
![]() | software.amazon.awscdk.services.cloudfront.OriginBase |
![]() | aws_cdk.aws_cloudfront.OriginBase |
![]() | @aws-cdk/aws-cloudfront » OriginBase |
Implements
IOrigin
Implemented by
Http
, Load
, Rest
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
Origin
Props
Methods
Name | Description |
---|---|
bind(_scope, options) | Binds the origin to the associated Distribution. |
protected render | |
protected render |
bind(_scope, options)
public bind(_scope: Construct, options: OriginBindOptions): OriginBindConfig
Parameters
- _scope
Construct
- options
Origin
Bind 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