# OriginBindOptions

Options passed to Origin.bind().

- Source: [`aws-cloudfront/lib/origin.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudfront/lib/origin.ts#L184)
- Type last changed: v2.156.0 · 6 Sep 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const originBindOptions: cloudfront.OriginBindOptions = {
  originId: 'originId',

  // the properties below are optional
  distributionId: 'distributionId',
};
```

## Properties

- `distributionId`: string — The identifier of the Distribution this Origin is used for.

  **Default:** no distribution id

  This is used to grant origin access permissions to the distribution for origin access control.

- `originId`: string (required) — The identifier of this Origin, as assigned by the Distribution this Origin has been used added to.
