Class VpcOriginProps
VPC origin endpoint configuration.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpcOriginProps : IVpcOriginProps, IVpcOriginOptions
Syntax (vb)
Public Class VpcOriginProps 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
VpcOriginProps() | VPC origin endpoint configuration. |
Properties
Endpoint | The VPC origin endpoint. |
HttpPort | The HTTP port for the CloudFront VPC origin endpoint configuration. |
HttpsPort | The HTTPS port of the CloudFront VPC origin endpoint configuration. |
OriginSslProtocols | A list that contains allowed SSL/TLS protocols for this distribution. |
ProtocolPolicy | The origin protocol policy for the CloudFront VPC origin endpoint configuration. |
VpcOriginName | The name of the CloudFront VPC origin endpoint configuration. |
Constructors
VpcOriginProps()
VPC origin endpoint configuration.
public VpcOriginProps()
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"
};
Properties
Endpoint
The VPC origin endpoint.
public VpcOriginEndpoint Endpoint { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
HttpPort
The HTTP port for the CloudFront VPC origin endpoint configuration.
public double? HttpPort { get; set; }
Property Value
Remarks
Default: 80
HttpsPort
The HTTPS port of the CloudFront VPC origin endpoint configuration.
public double? HttpsPort { get; set; }
Property Value
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 OriginProtocolPolicy? ProtocolPolicy { get; set; }
Property Value
Remarks
Default: OriginProtocolPolicy.MATCH_VIEWER
VpcOriginName
The name of the CloudFront VPC origin endpoint configuration.
public string? VpcOriginName { get; set; }
Property Value
Remarks
Default: - generated from the id