From 43ce2254d8eb4f39f0cfffc6322af6cc81c1a4ab Mon Sep 17 00:00:00 2001 From: Taeho Park Date: Thu, 29 Jun 2023 10:12:33 -0400 Subject: [PATCH] added fragment --- ...route53_health_check-added-calculcated.yml | 3 +++ plugins/modules/route53_health_check.py | 26 ++++++++++--------- 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 changelogs/fragments/1631-route53_health_check-added-calculcated.yml diff --git a/changelogs/fragments/1631-route53_health_check-added-calculcated.yml b/changelogs/fragments/1631-route53_health_check-added-calculcated.yml new file mode 100644 index 0000000000..b5bb31f7c0 --- /dev/null +++ b/changelogs/fragments/1631-route53_health_check-added-calculcated.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - route53_health_check - adding another type choice called "CALCULATED", added a string list parameter called child_health_checks to specify health checks that must be healthy for this calculated health check to be considered healthy, and added an integer paramter called health_threshold to specify the minimum number of healthy child health checks that must be healthy for the calculated health check to be considered healthy. The module (route53_health_check) had not supported calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631). \ No newline at end of file diff --git a/plugins/modules/route53_health_check.py b/plugins/modules/route53_health_check.py index 0f887db8b3..5543a71fd2 100644 --- a/plugins/modules/route53_health_check.py +++ b/plugins/modules/route53_health_check.py @@ -47,6 +47,20 @@ - Once health_check is created, type can not be changed. choices: [ 'HTTP', 'HTTPS', 'HTTP_STR_MATCH', 'HTTPS_STR_MATCH', 'TCP', 'CALCULATED' ] type: str + child_health_checks: + description: + - The child health checks used for a calculated health check. + - This parameter takes in the child health checks ids. + type: list of str + returned: When the health check exists and child health checks are configured. + sample: ['uuid1', 'uuid2'] + health_threshold: + description: + - The minimum number of healthy child health checks for a calculated health check to be considered healthy. + default: 1 + type: int + returned: When a calculated health check is configured. + sample: 1 resource_path: description: - The path that you want Amazon Route 53 to request when performing @@ -119,18 +133,6 @@ type: bool required: False version_added: 5.4.0 - child_health_checks: - description: - - The child health checks used for a calculated health check. - type: list of str - returned: When the health check exists and child health checks are configured. - sample: ['uuid1', 'uuid2'] - health_threshold: - description: - - The minimum number of healthy child health checks for a calculated health check to be considered healthy. - type: int - returned: When a calculated health check is configured. - sample: 1 author: - "zimbatm (@zimbatm)" notes: