aws-cdk-lib.aws_cloudfront.OriginBindConfig

interface OriginBindConfig

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.OriginBindConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#OriginBindConfig
Javasoftware.amazon.awscdk.services.cloudfront.OriginBindConfig
Pythonaws_cdk.aws_cloudfront.OriginBindConfig
TypeScript (source)aws-cdk-lib » aws_cloudfront » OriginBindConfig

Obtainable from OriginBase.bind(), OriginGroup.bind(), S3Origin.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',
    },
  },
};

Properties

NameTypeDescription
failoverConfig?OriginFailoverConfigThe failover configuration for this Origin.
originProperty?OriginPropertyThe CloudFormation OriginProperty configuration for this Origin.

failoverConfig?

Type: OriginFailoverConfig (optional, default: nothing is returned)

The failover configuration for this Origin.


originProperty?

Type: OriginProperty (optional, default: nothing is returned)

The CloudFormation OriginProperty configuration for this Origin.