Skip to main content

health_checks

Creates, updates, deletes or gets a health_check resource or lists health_checks in a region

Overview

Namehealth_checks
TypeResource
DescriptionResource schema for AWS::Route53::HealthCheck.
Idawscc.route53.health_checks

Fields

NameDatatypeDescription
health_check_idstring
health_check_configobjectA complex type that contains information about the health check.
health_check_tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::Route53::HealthCheck.

Methods

NameResourceAccessible byRequired Params
create_resourcehealth_checksINSERTHealthCheckConfig, region
delete_resourcehealth_checksDELETEIdentifier, region
update_resourcehealth_checksUPDATEIdentifier, PatchDocument, region
list_resourceshealth_checks_list_onlySELECTregion
get_resourcehealth_checksSELECTIdentifier, region

SELECT examples

Gets all properties from an individual health_check.

SELECT
region,
health_check_id,
health_check_config,
health_check_tags
FROM awscc.route53.health_checks
WHERE
region = 'us-east-1' AND
Identifier = '{{ health_check_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new health_check resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.route53.health_checks (
HealthCheckConfig,
region
)
SELECT
'{{ health_check_config }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a health_check resource, using stack-deploy.

/*+ update */
UPDATE awscc.route53.health_checks
SET PatchDocument = string('{{ {
"HealthCheckTags": health_check_tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ health_check_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.route53.health_checks
WHERE
Identifier = '{{ health_check_id }}' AND
region = 'us-east-1';

Permissions

To operate on the health_checks resource, the following permissions are required:

route53:CreateHealthCheck,
route53:ChangeTagsForResource,
cloudwatch:DescribeAlarms,
route53-recovery-control-config:DescribeRoutingControl