AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

OriginAccessIdentity

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

import { OriginAccessIdentity } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.OriginAccessIdentity

Properties

Configuration passed to the constructor as OriginAccessIdentityProps.

commentOptional
string

Any comments you want to include about the origin access identity.

Default: "Allows CloudFront to reach the bucket"

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic