test_templates
Creates, updates, deletes, gets or lists a test_templates resource.
Overview
| Name | test_templates |
| Type | Resource |
| Id | aws.resiliencehubv2.test_templates |
Fields
The following fields are returned by SELECT queries:
- get_test_template
- list_test_templates
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the test template. |
actions | array | The fault actions the test template runs. |
description | string | A description of the test template. |
parameters | array | The parameters the test template accepts. |
test_template_arn | string | An 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>) |
| Name | Datatype | Description |
|---|---|---|
test_templates | array | The list of test template summaries. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_test_template | select | testTemplateArn, region | Retrieves a resilience test template by ARN, including the parameters it accepts and the fault actions it runs. | |
list_test_templates | select | region | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
testTemplateArn | string | The ARN of the test template to retrieve. |
SELECT examples
- get_test_template
- list_test_templates
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
;
Lists the available resilience test templates. A test template is a pre-configured, AWS recommended test that defines which resilience capability to validate.
SELECT
test_templates
FROM aws.resiliencehubv2.test_templates
WHERE region = '{{ region }}' -- required
;