Skip to content

Commit

Permalink
cloudfront_distribution: add connection_attempts and connection_timeo…
Browse files Browse the repository at this point in the history
…ut parameters (ansible-collections#1435)

cloudfront_distribution: add connection_attempts and connection_timeout parameters

Depends-On: ansible-collections#1569
SUMMARY
Missing connection_attempts & connection_timeout.
Closes ansible-collections#1434.
ISSUE TYPE


Docs Pull Request

COMPONENT NAME
cloudfront_distribution

Reviewed-by: Brian Scholer <None>
Reviewed-by: Gonéri Le Bouder <[email protected]>
  • Loading branch information
eRadical authored Oct 26, 2022
1 parent 2e0fa2d commit 1e95b7f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/1435-connection-attempt-timeout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- cloudfront_distribution - documented `connection_attempts` and `connection_timeout` - the module was already capable of using them
21 changes: 20 additions & 1 deletion plugins/modules/cloudfront_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,16 @@
origin_keepalive_timeout:
description: A keep-alive timeout (in seconds).
type: int
connection_attempts:
description: The number of times that CloudFront attempts to connect to the origin.
The minimum number is C(1), the maximum is C(3).
type: int
default: 3
connection_timeout:
description: The number of seconds that CloudFront waits when trying to establish a connection to the origin.
The minimum timeout is C(1) second, the maximum is C(10) seconds.
type: int
default: 10
purge_origins:
description: Whether to remove any origins that aren't listed in I(origins).
default: false
Expand Down Expand Up @@ -1277,6 +1286,16 @@
returned: always
type: str
sample: ''
connection_attempts:
description: The number of times that CloudFront attempts to connect to the origin.
returned: always
type: int
sample: 3
connection_timeout:
description: The number of seconds that CloudFront waits when trying to establish a connection to the origin.
returned: always
type: int
sample: 10
s3_origin_config:
description: Origin access identity configuration for S3 Origin.
returned: when s3_origin_access_identity_enabled is true
Expand Down

0 comments on commit 1e95b7f

Please sign in to comment.