# OriginAccessIdentityProps

Properties of CloudFront OriginAccessIdentity.

Extends: OriginAccessIdentityProps
Used as props by: OriginAccessIdentity

- Source: [`aws-cloudfront/lib/origin-access-identity.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudfront/lib/origin-access-identity.ts#L18)

## Example

```ts
const myBucket = new s3.Bucket(this, 'myBucket');
const myOai = new cloudfront.OriginAccessIdentity(this, 'myOAI', {
  comment: 'My custom OAI'
});
const s3Origin = origins.S3BucketOrigin.withOriginAccessIdentity(myBucket, {
  originAccessIdentity: myOai
});
new cloudfront.Distribution(this, 'myDist', {
  defaultBehavior: {
    origin: s3Origin
  },
});
```

## Properties

- `comment`: string — Any comments you want to include about the origin access identity.

  **Default:** "Allows CloudFront to reach the bucket"
