S3OriginConfig

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

Bases: object

__init__(*, s3_bucket_source, origin_access_identity=None)

S3 origin configuration for CloudFront.

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

  • origin_access_identity (Optional[IOriginAccessIdentity]) – The optional Oriagin 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 :stability: experimental

Attributes

origin_access_identity

The optional Oriagin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.

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

stability :stability: experimental

Return type

Optional[IOriginAccessIdentity]

s3_bucket_source

The source bucket to serve content from.

stability :stability: experimental

Return type

IBucket