interface OriginBindConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.OriginBindConfig |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#OriginBindConfig |
![]() | software.amazon.awscdk.services.cloudfront.OriginBindConfig |
![]() | aws_cdk.aws_cloudfront.OriginBindConfig |
![]() | aws-cdk-lib » aws_cloudfront » OriginBindConfig |
Obtainable from
Origin
.bind()
, Origin
.bind()
, S3
.bind()
The struct returned from IOrigin.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';
declare const origin: cloudfront.IOrigin;
const originBindConfig: cloudfront.OriginBindConfig = {
failoverConfig: {
failoverOrigin: origin,
// the properties below are optional
statusCodes: [123],
},
originProperty: {
domainName: 'domainName',
id: 'id',
// the properties below are optional
connectionAttempts: 123,
connectionTimeout: 123,
customOriginConfig: {
originProtocolPolicy: 'originProtocolPolicy',
// the properties below are optional
httpPort: 123,
httpsPort: 123,
originKeepaliveTimeout: 123,
originReadTimeout: 123,
originSslProtocols: ['originSslProtocols'],
},
originAccessControlId: 'originAccessControlId',
originCustomHeaders: [{
headerName: 'headerName',
headerValue: 'headerValue',
}],
originPath: 'originPath',
originShield: {
enabled: false,
originShieldRegion: 'originShieldRegion',
},
s3OriginConfig: {
originAccessIdentity: 'originAccessIdentity',
},
vpcOriginConfig: {
vpcOriginId: 'vpcOriginId',
// the properties below are optional
originKeepaliveTimeout: 123,
originReadTimeout: 123,
},
},
selectionCriteria: cloudfront.OriginSelectionCriteria.DEFAULT,
};
Properties
Name | Type | Description |
---|---|---|
failover | Origin | The failover configuration for this Origin. |
origin | Origin | The CloudFormation OriginProperty configuration for this Origin. |
selection | Origin | The selection criteria for how your origins are selected. |
failoverConfig?
Type:
Origin
(optional, default: nothing is returned)
The failover configuration for this Origin.
originProperty?
Type:
Origin
(optional, default: nothing is returned)
The CloudFormation OriginProperty configuration for this Origin.
selectionCriteria?
Type:
Origin
(optional, default: OriginSelectionCriteria.DEFAULT)
The selection criteria for how your origins are selected.