OriginProps

class aws_cdk.aws_cloudfront.OriginProps(*, connection_attempts=None, connection_timeout=None, custom_headers=None, origin_path=None)

Bases: object

(experimental) Properties to define an Origin.

Parameters
  • connection_attempts (Union[int, float, None]) – (experimental) The number of times that CloudFront attempts to connect to the origin; valid values are 1, 2, or 3 attempts. Default: 3

  • connection_timeout (Optional[Duration]) – (experimental) The number of seconds that CloudFront waits when trying to establish a connection to the origin. Valid values are 1-10 seconds, inclusive. Default: Duration.seconds(10)

  • custom_headers (Optional[Mapping[str, str]]) – (experimental) A list of HTTP header names and values that CloudFront adds to requests it sends to the origin. Default: {}

  • origin_path (Optional[str]) – (experimental) An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. Must begin, but not end, with ‘/’ (e.g., ‘/production/images’). Default: ‘/’

Stability

experimental

Attributes

connection_attempts

(experimental) The number of times that CloudFront attempts to connect to the origin;

valid values are 1, 2, or 3 attempts.

Default

3

Stability

experimental

Return type

Union[int, float, None]

connection_timeout

(experimental) The number of seconds that CloudFront waits when trying to establish a connection to the origin.

Valid values are 1-10 seconds, inclusive.

Default

Duration.seconds(10)

Stability

experimental

Return type

Optional[Duration]

custom_headers

(experimental) A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.

Default

{}

Stability

experimental

Return type

Optional[Mapping[str, str]]

origin_path

(experimental) An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.

Must begin, but not end, with ‘/’ (e.g., ‘/production/images’).

Default

‘/’

Stability

experimental

Return type

Optional[str]