An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content.
import { OriginAccessIdentity } from 'aws-cdk-lib/aws-cloudfront';Or use the module namespace:
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.OriginAccessIdentityConfiguration passed to the constructor as OriginAccessIdentityProps.
commentOptionalstringAny comments you want to include about the origin access identity.
Default: "Allows CloudFront to reach the bucket"
Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.
Download Free Infographicaws-cloudfront