interface VpcOriginConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.VpcOriginConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_VpcOriginConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.VpcOriginConfigProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.VpcOriginConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnDistributionPropsMixin » VpcOriginConfigProperty |
An Amazon CloudFront VPC origin configuration.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const vpcOriginConfigProperty: cloudfront_mixins.CfnDistributionPropsMixin.VpcOriginConfigProperty = {
originKeepaliveTimeout: 123,
originReadTimeout: 123,
ownerAccountId: 'ownerAccountId',
vpcOriginId: 'vpcOriginId',
};
Properties
| Name | Type | Description |
|---|---|---|
| origin | number | Specifies how long, in seconds, CloudFront persists its connection to the origin. |
| origin | number | Specifies how long, in seconds, CloudFront waits for a response from the origin. |
| owner | string | The account ID of the AWS account that owns the VPC origin. |
| vpc | string | The VPC origin ID. |
originKeepaliveTimeout?
Type:
number
(optional, default: 5)
Specifies how long, in seconds, CloudFront persists its connection to the origin.
The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 5 seconds.
For more information, see Keep-alive timeout (custom origins only) in the Amazon CloudFront Developer Guide .
originReadTimeout?
Type:
number
(optional, default: 30)
Specifies how long, in seconds, CloudFront waits for a response from the origin.
This is also known as the origin response timeout . The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.
For more information, see Response timeout in the Amazon CloudFront Developer Guide .
ownerAccountId?
Type:
string
(optional)
The account ID of the AWS account that owns the VPC origin.
vpcOriginId?
Type:
string
(optional)
The VPC origin ID.

.NET
Go
Java
Python
TypeScript