CustomOriginConfig

class aws_cdk.aws_cloudfront.CustomOriginConfig(*, domain_name, allowed_origin_ssl_versions=None, http_port=None, https_port=None, origin_headers=None, origin_keepalive_timeout=None, origin_path=None, origin_protocol_policy=None, origin_read_timeout=None)

Bases: object

(experimental) A custom origin configuration.

Parameters
  • domain_name (str) – (experimental) The domain name of the custom origin. Should not include the path - that should be in the parent SourceConfiguration

  • allowed_origin_ssl_versions (Optional[List[OriginSslPolicy]]) – (experimental) The SSL versions to use when interacting with the origin. Default: OriginSslPolicy.TLS_V1_2

  • http_port (Union[int, float, None]) – (experimental) The origin HTTP port. Default: 80

  • https_port (Union[int, float, None]) – (experimental) The origin HTTPS port. Default: 443

  • origin_headers (Optional[Mapping[str, str]]) – (experimental) Any additional headers to pass to the origin. Default: - No additional headers are passed.

  • origin_keepalive_timeout (Optional[Duration]) – (experimental) The keep alive timeout when making calls in seconds. Default: Duration.seconds(5)

  • origin_path (Optional[str]) – (experimental) The relative path to the origin root to use for sources. Default: /

  • origin_protocol_policy (Optional[OriginProtocolPolicy]) – (experimental) The protocol (http or https) policy to use when interacting with the origin. Default: OriginProtocolPolicy.HttpsOnly

  • origin_read_timeout (Optional[Duration]) – (experimental) The read timeout when calling the origin in seconds. Default: Duration.seconds(30)

Stability

experimental

Attributes

allowed_origin_ssl_versions

(experimental) The SSL versions to use when interacting with the origin.

Default

OriginSslPolicy.TLS_V1_2

Stability

experimental

Return type

Optional[List[OriginSslPolicy]]

domain_name

(experimental) The domain name of the custom origin.

Should not include the path - that should be in the parent SourceConfiguration

Stability

experimental

Return type

str

http_port

(experimental) The origin HTTP port.

Default

80

Stability

experimental

Return type

Union[int, float, None]

https_port

(experimental) The origin HTTPS port.

Default

443

Stability

experimental

Return type

Union[int, float, None]

origin_headers

(experimental) Any additional headers to pass to the origin.

Default
  • No additional headers are passed.

Stability

experimental

Return type

Optional[Mapping[str, str]]

origin_keepalive_timeout

(experimental) The keep alive timeout when making calls in seconds.

Default

Duration.seconds(5)

Stability

experimental

Return type

Optional[Duration]

origin_path

(experimental) The relative path to the origin root to use for sources.

Default

/

Stability

experimental

Return type

Optional[str]

origin_protocol_policy

(experimental) The protocol (http or https) policy to use when interacting with the origin.

Default

OriginProtocolPolicy.HttpsOnly

Stability

experimental

Return type

Optional[OriginProtocolPolicy]

origin_read_timeout

(experimental) The read timeout when calling the origin in seconds.

Default

Duration.seconds(30)

Stability

experimental

Return type

Optional[Duration]