interface VpcOriginProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudFront.VpcOriginProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#VpcOriginProps |
Java | software.amazon.awscdk.services.cloudfront.VpcOriginProps |
Python | aws_cdk.aws_cloudfront.VpcOriginProps |
TypeScript (source) | aws-cdk-lib » aws_cloudfront » VpcOriginProps |
VPC origin endpoint configuration.
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 vpcOriginEndpoint: cloudfront.VpcOriginEndpoint;
const vpcOriginProps: cloudfront.VpcOriginProps = {
endpoint: vpcOriginEndpoint,
// the properties below are optional
httpPort: 123,
httpsPort: 123,
originSslProtocols: [cloudfront.OriginSslPolicy.SSL_V3],
protocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,
vpcOriginName: 'vpcOriginName',
};
Properties
| Name | Type | Description |
|---|---|---|
| endpoint | Vpc | The VPC origin endpoint. |
| http | number | The HTTP port for the CloudFront VPC origin endpoint configuration. |
| https | number | The HTTPS port of the CloudFront VPC origin endpoint configuration. |
| origin | Origin[] | A list that contains allowed SSL/TLS protocols for this distribution. |
| protocol | Origin | The origin protocol policy for the CloudFront VPC origin endpoint configuration. |
| vpc | string | The name of the CloudFront VPC origin endpoint configuration. |
endpoint
Type:
Vpc
The VPC origin endpoint.
httpPort?
Type:
number
(optional, default: 80)
The HTTP port for the CloudFront VPC origin endpoint configuration.
httpsPort?
Type:
number
(optional, default: 443)
The HTTPS port of the CloudFront VPC origin endpoint configuration.
originSslProtocols?
Type:
Origin[]
(optional, default: TLSv1.2)
A list that contains allowed SSL/TLS protocols for this distribution.
protocolPolicy?
Type:
Origin
(optional, default: OriginProtocolPolicy.MATCH_VIEWER)
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
vpcOriginName?
Type:
string
(optional, default: generated from the id)
The name of the CloudFront VPC origin endpoint configuration.

.NET
Go
Java
Python
TypeScript (