aws-cdk-lib.aws_cloudfront.OriginBase

class OriginBase

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.OriginBase
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#OriginBase
Javasoftware.amazon.awscdk.services.cloudfront.OriginBase
Pythonaws_cdk.aws_cloudfront.OriginBase
TypeScript (source)aws-cdk-lib » aws_cloudfront » OriginBase

Implements IOrigin

Implemented by HttpOrigin, LoadBalancerV2Origin, RestApiOrigin

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

NameDescription
bind(_scope, options)Binds the origin to the associated Distribution.
protected renderCustomOriginConfig()
protected renderS3OriginConfig()

bind(_scope, options)

public bind(_scope: Construct, options: OriginBindOptions): OriginBindConfig

Parameters

  • _scope Construct
  • options OriginBindOptions

Returns

  • OriginBindConfig

Binds the origin to the associated Distribution.

Can be used to grant permissions, create dependent resources, etc.


protected renderCustomOriginConfig()

protected renderCustomOriginConfig(): CustomOriginConfigProperty

Returns

  • CustomOriginConfigProperty

protected renderS3OriginConfig()

protected renderS3OriginConfig(): S3OriginConfigProperty

Returns

  • S3OriginConfigProperty