Skip to content
v2.274.0

OriginBindOptions Struct ​

Options passed to Origin.bind().

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 ​

distributionIdoptionalstringdistribution_idoptionalstrdistributionIdoptionalStringDistributionIdoptionalstringDistributionIdoptional*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.

originIdstringorigin_idstroriginIdStringOriginIdstringOriginId*stringrequired#
The identifier of this Origin, as assigned by the Distribution this Origin has been used added to.