S3OriginConfig

class aws_cdk.aws_cloudfront.S3OriginConfig(*, s3_bucket_source, origin_access_identity=None, origin_headers=None, origin_path=None)

Bases: object

(experimental) S3 origin configuration for CloudFront.

Parameters
  • s3_bucket_source (IBucket) – (experimental) The source bucket to serve content from.

  • origin_access_identity (Optional[IOriginAccessIdentity]) – (experimental) The optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket. Default: No Origin Access Identity which requires the S3 bucket to be public accessible

  • origin_headers (Optional[Mapping[str, str]]) – (experimental) Any additional headers to pass to the origin. Default: - No additional headers are passed.

  • origin_path (Optional[str]) – (experimental) The relative path to the origin root to use for sources. Default: /

Stability

experimental

Attributes

origin_access_identity

(experimental) The optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.

Default

No Origin Access Identity which requires the S3 bucket to be public accessible

Stability

experimental

Return type

Optional[IOriginAccessIdentity]

origin_headers

(experimental) Any additional headers to pass to the origin.

Default
  • No additional headers are passed.

Stability

experimental

Return type

Optional[Mapping[str, str]]

origin_path

(experimental) The relative path to the origin root to use for sources.

Default

/

Stability

experimental

Return type

Optional[str]

s3_bucket_source

(experimental) The source bucket to serve content from.

Stability

experimental

Return type

IBucket