VpcOriginOptions Struct
VPC origin endpoint configuration.
Example
ts
// 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';
const vpcOriginOptions: cloudfront.VpcOriginOptions = {
httpPort: 123,
httpsPort: 123,
originSslProtocols: [cloudfront.OriginSslPolicy.SSL_V3],
protocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,
vpcOriginName: 'vpcOriginName',
};
Properties
The HTTP port for the CloudFront VPC origin endpoint configuration.
The HTTPS port of the CloudFront VPC origin endpoint configuration.
originSslProtocolsOriginSslPolicy[]origin_ssl_protocolstyping.List[OriginSslPolicy]originSslProtocolsList<OriginSslPolicy>OriginSslProtocolsOriginSslPolicy[]OriginSslProtocols*[]OriginSslPolicy= TLSv1.2#A list that contains allowed SSL/TLS protocols for this distribution.
protocolPolicyOriginProtocolPolicyprotocol_policyOriginProtocolPolicyprotocolPolicyOriginProtocolPolicyProtocolPolicyOriginProtocolPolicyProtocolPolicyOriginProtocolPolicy= OriginProtocolPolicy.MATCH_VIEWE…#The origin protocol policy for the CloudFront VPC origin endpoint configuration.
default
Default: OriginProtocolPolicy.MATCH_VIEWER
vpcOriginNamestringvpc_origin_namestrvpcOriginNameStringVpcOriginNamestringVpcOriginName*string= generated from the `id`#The name of the CloudFront VPC origin endpoint configuration.