Class VpcOriginProps
VPC origin endpoint configuration.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpcOriginProps : Object, IVpcOriginProps, IVpcOriginOptions
Syntax (vb)
Public Class VpcOriginProps
Inherits Object
Implements IVpcOriginProps, IVpcOriginOptions
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;
VpcOriginEndpoint vpcOriginEndpoint;
var vpcOriginProps = new VpcOriginProps {
Endpoint = vpcOriginEndpoint,
// the properties below are optional
HttpPort = 123,
HttpsPort = 123,
OriginSslProtocols = new [] { OriginSslPolicy.SSL_V3 },
ProtocolPolicy = OriginProtocolPolicy.HTTP_ONLY,
VpcOriginName = "vpcOriginName"
};
Synopsis
Constructors
Vpc |
Properties
Endpoint | The VPC origin endpoint. |
Http |
The HTTP port for the CloudFront VPC origin endpoint configuration. |
Https |
The HTTPS port of the CloudFront VPC origin endpoint configuration. |
Origin |
A list that contains allowed SSL/TLS protocols for this distribution. |
Protocol |
The origin protocol policy for the CloudFront VPC origin endpoint configuration. |
Vpc |
The name of the CloudFront VPC origin endpoint configuration. |
Constructors
VpcOriginProps()
public VpcOriginProps()
Properties
Endpoint
The VPC origin endpoint.
public VpcOriginEndpoint Endpoint { get; set; }
Property Value
HttpPort
The HTTP port for the CloudFront VPC origin endpoint configuration.
public Nullable<double> HttpPort { get; set; }
Property Value
System.
Remarks
Default: 80
HttpsPort
The HTTPS port of the CloudFront VPC origin endpoint configuration.
public Nullable<double> HttpsPort { get; set; }
Property Value
System.
Remarks
Default: 443
OriginSslProtocols
A list that contains allowed SSL/TLS protocols for this distribution.
public OriginSslPolicy[] OriginSslProtocols { get; set; }
Property Value
Remarks
Default: - TLSv1.2
ProtocolPolicy
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
public Nullable<OriginProtocolPolicy> ProtocolPolicy { get; set; }
Property Value
System.
Remarks
Default: OriginProtocolPolicy.MATCH_VIEWER
VpcOriginName
The name of the CloudFront VPC origin endpoint configuration.
public string VpcOriginName { get; set; }
Property Value
System.
Remarks
Default: - generated from the id