Class CfnDistribution.VpcOriginConfigProperty
An Amazon CloudFront VPC origin configuration.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution.VpcOriginConfigProperty : CfnDistribution.IVpcOriginConfigProperty
Syntax (vb)
Public Class CfnDistribution.VpcOriginConfigProperty Implements CfnDistribution.IVpcOriginConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var vpcOriginConfigProperty = new VpcOriginConfigProperty {
VpcOriginId = "vpcOriginId",
// the properties below are optional
OriginKeepaliveTimeout = 123,
OriginReadTimeout = 123,
OwnerAccountId = "ownerAccountId"
};
Synopsis
Constructors
| VpcOriginConfigProperty() | An Amazon CloudFront VPC origin configuration. |
Properties
| OriginKeepaliveTimeout | Specifies how long, in seconds, CloudFront persists its connection to the origin. |
| OriginReadTimeout | Specifies how long, in seconds, CloudFront waits for a response from the origin. |
| OwnerAccountId | The account ID of the AWS account that owns the VPC origin. |
| VpcOriginId | The VPC origin ID. |
Constructors
VpcOriginConfigProperty()
An Amazon CloudFront VPC origin configuration.
public VpcOriginConfigProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var vpcOriginConfigProperty = new VpcOriginConfigProperty {
VpcOriginId = "vpcOriginId",
// the properties below are optional
OriginKeepaliveTimeout = 123,
OriginReadTimeout = 123,
OwnerAccountId = "ownerAccountId"
};
Properties
OriginKeepaliveTimeout
Specifies how long, in seconds, CloudFront persists its connection to the origin.
public double? OriginKeepaliveTimeout { get; set; }
Property Value
Remarks
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 .
Default: - 5
OriginReadTimeout
Specifies how long, in seconds, CloudFront waits for a response from the origin.
public double? OriginReadTimeout { get; set; }
Property Value
Remarks
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 .
Default: - 30
OwnerAccountId
The account ID of the AWS account that owns the VPC origin.
public string? OwnerAccountId { get; set; }
Property Value
Remarks
VpcOriginId
The VPC origin ID.
public string VpcOriginId { get; set; }