Show / Hide Table of Contents

Class VpcOriginProps

VPC origin endpoint configuration.

Inheritance
object
VpcOriginProps
Implements
IVpcOriginProps
IVpcOriginOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

VpcOriginEndpoint

Remarks

ExampleMetadata: fixture=_generated

HttpPort

The HTTP port for the CloudFront VPC origin endpoint configuration.

public double? HttpPort { get; set; }
Property Value

double?

Remarks

Default: 80

HttpsPort

The HTTPS port of the CloudFront VPC origin endpoint configuration.

public double? HttpsPort { get; set; }
Property Value

double?

Remarks

Default: 443

OriginSslProtocols

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

public OriginSslPolicy[]? OriginSslProtocols { get; set; }
Property Value

OriginSslPolicy[]

Remarks

Default: - TLSv1.2

ProtocolPolicy

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

public OriginProtocolPolicy? ProtocolPolicy { get; set; }
Property Value

OriginProtocolPolicy?

Remarks

Default: OriginProtocolPolicy.MATCH_VIEWER

VpcOriginName

The name of the CloudFront VPC origin endpoint configuration.

public string? VpcOriginName { get; set; }
Property Value

string

Remarks

Default: - generated from the id

Implements

IVpcOriginProps
IVpcOriginOptions
Back to top Generated by DocFX