AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

VpcOrigin

A CloudFront VPC Origin configuration.

Import

import { VpcOrigin } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.VpcOrigin

Properties

Configuration passed to the constructor as VpcOriginProps.

endpointRequired
VpcOriginEndpoint

The VPC origin endpoint.

5 properties inherited from VpcOriginOptions
httpPortOptionalinherited from VpcOriginOptions
number

The HTTP port for the CloudFront VPC origin endpoint configuration.

Default: 80

httpsPortOptionalinherited from VpcOriginOptions
number

The HTTPS port of the CloudFront VPC origin endpoint configuration.

Default: 443

originSslProtocolsOptionalinherited from VpcOriginOptions
OriginSslPolicy[]

A list that contains allowed SSL/TLS protocols for this distribution.

Default: - TLSv1.2

protocolPolicyOptionalinherited from VpcOriginOptions
OriginProtocolPolicy

The origin protocol policy for the CloudFront VPC origin endpoint configuration.

Default: OriginProtocolPolicy.MATCH_VIEWER

vpcOriginNameOptionalinherited from VpcOriginOptions
string

The name of the CloudFront VPC origin endpoint configuration.

Default: - generated from the `id`

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic