AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFront::CloudFrontOriginAccessIdentity

CfnCloudFrontOriginAccessIdentity

The request to create a new origin access identity (OAI). 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. For more information, see [Restricting Access to Amazon S3 Content by Using an Origin Access Identity](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide* .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnCloudFrontOriginAccessIdentityProps.

cloudFrontOriginAccessIdentityConfigRequired
IResolvable | CloudFrontOriginAccessIdentityConfigProperty

The current configuration information for the identity.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon CloudFront Cheat Sheet

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

Download Free Infographic