interface OriginBindOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.OriginBindOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#OriginBindOptions |
Java | software.amazon.awscdk.services.cloudfront.OriginBindOptions |
Python | aws_cdk.aws_cloudfront.OriginBindOptions |
TypeScript (source) | aws-cdk-lib » aws_cloudfront » OriginBindOptions |
Options passed to Origin.bind().
Example
// 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
Name | Type | Description |
---|---|---|
origin | string | The identifier of this Origin, as assigned by the Distribution this Origin has been used added to. |
distribution | string | The identifier of the Distribution this Origin is used for. |
originId
Type:
string
The identifier of this Origin, as assigned by the Distribution this Origin has been used added to.
distributionId?
Type:
string
(optional, default: no distribution id)
The identifier of the Distribution this Origin is used for.
This is used to grant origin access permissions to the distribution for origin access control.