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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.route53.health_checks
WHERE
Identifier = '{{ health_check_id }}' AND
region = 'us-east-1'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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