Skip to main content

test_templates

Creates, updates, deletes, gets or lists a test_templates resource.

Overview

Nametest_templates
TypeResource
Idaws.resiliencehubv2.test_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the test template.
actionsarrayThe fault actions the test template runs.
descriptionstringA description of the test template.
parametersarrayThe parameters the test template accepts.
test_template_arnstringAn ARN owned by the service. Accepts either a standard 12-digit account ID or the literal "aws" for AWS-managed resources, such as AWS-managed test templates. (pattern: <code>arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):([0-9]{12}|aws):[A-Za-z0-9/][A-Za-z0-9:_/+.-]{0,1023}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_test_templateselecttestTemplateArn, regionRetrieves a resilience test template by ARN, including the parameters it accepts and the fault actions it runs.
list_test_templatesselectregionLists the available resilience test templates. A test template is a pre-configured, AWS recommended test that defines which resilience capability to validate.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
testTemplateArnstringThe ARN of the test template to retrieve.

SELECT examples

Retrieves a resilience test template by ARN, including the parameters it accepts and the fault actions it runs.

SELECT
name,
actions,
description,
parameters,
test_template_arn
FROM aws.resiliencehubv2.test_templates
WHERE testTemplateArn = '{{ testTemplateArn }}' -- required
AND region = '{{ region }}' -- required
;