Show / Hide Table of Contents

Interface CfnDistribution.ICustomOriginConfigProperty

A custom origin.

Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnDistribution.ICustomOriginConfigProperty
Syntax (vb)
Public Interface CfnDistribution.ICustomOriginConfigProperty
Remarks

A custom origin is any origin that is not an Amazon S3 bucket, with one exception. An Amazon S3 bucket that is configured with static website hosting is a custom origin.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html

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;

             var customOriginConfigProperty = new CustomOriginConfigProperty {
                 OriginProtocolPolicy = "originProtocolPolicy",

                 // the properties below are optional
                 HttpPort = 123,
                 HttpsPort = 123,
                 IpAddressType = "ipAddressType",
                 OriginKeepaliveTimeout = 123,
                 OriginReadTimeout = 123,
                 OriginSslProtocols = new [] { "originSslProtocols" }
             };

Synopsis

Properties

HttpPort

The HTTP port that CloudFront uses to connect to the origin.

HttpsPort

The HTTPS port that CloudFront uses to connect to the origin.

IpAddressType

Specifies which IP protocol CloudFront uses when connecting to your origin.

OriginKeepaliveTimeout

Specifies how long, in seconds, CloudFront persists its connection to the origin.

OriginProtocolPolicy

Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:.

OriginReadTimeout

Specifies how long, in seconds, CloudFront waits for a response from the origin.

OriginSslProtocols

Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.

Properties

HttpPort

The HTTP port that CloudFront uses to connect to the origin.

double? HttpPort { get; }
Property Value

double?

Remarks

Specify the HTTP port that the origin listens on.

Default: - 80

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpport

HttpsPort

The HTTPS port that CloudFront uses to connect to the origin.

double? HttpsPort { get; }
Property Value

double?

Remarks

Specify the HTTPS port that the origin listens on.

Default: - 443

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpsport

IpAddressType

Specifies which IP protocol CloudFront uses when connecting to your origin.

string? IpAddressType { get; }
Property Value

string

Remarks

If your origin uses both IPv4 and IPv6 protocols, you can choose dualstack to help optimize reliability.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-ipaddresstype

OriginKeepaliveTimeout

Specifies how long, in seconds, CloudFront persists its connection to the origin.

double? OriginKeepaliveTimeout { get; }
Property Value

double?

Remarks

The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 5 seconds.

For more information, see Keep-alive timeout (custom origins only) in the Amazon CloudFront Developer Guide .

Default: - 5

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originkeepalivetimeout

OriginProtocolPolicy

Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:.

string OriginProtocolPolicy { get; }
Property Value

string

Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originprotocolpolicy

    OriginReadTimeout

    Specifies how long, in seconds, CloudFront waits for a response from the origin.

    double? OriginReadTimeout { get; }
    Property Value

    double?

    Remarks

    This is also known as the origin response timeout . The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.

    For more information, see Response timeout in the Amazon CloudFront Developer Guide .

    Default: - 30

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originreadtimeout

    OriginSslProtocols

    Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.

    string[]? OriginSslProtocols { get; }
    Property Value

    string[]

    Remarks

    Valid values include SSLv3 , TLSv1 , TLSv1.1 , and TLSv1.2 .

    For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originsslprotocols

    Back to top Generated by DocFX