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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTHealthCheckConfig, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all health_checks in a region.

SELECT
region,
health_check_id,
health_check_config,
health_check_tags
FROM aws.route53.health_checks
;

Gets all properties from an individual health_check.

SELECT
region,
health_check_id,
health_check_config,
health_check_tags
FROM aws.route53.health_checks
WHERE data__Identifier = '<HealthCheckId>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.route53.health_checks
WHERE data__Identifier = '<HealthCheckId>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

route53:GetHealthCheck,
route53:ListTagsForResource

Update

route53:UpdateHealthCheck,
route53:ChangeTagsForResource,
route53:ListTagsForResource,
cloudwatch:DescribeAlarms

Delete

route53:DeleteHealthCheck

List

route53:ListHealthChecks,
route53:ListTagsForResource