getTestTemplate method
Retrieves a resilience test template by ARN, including the parameters it accepts and the fault actions it runs.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter testTemplateArn :
The ARN of the test template to retrieve.
Implementation
Future<GetTestTemplateResponse> getTestTemplate({
required String testTemplateArn,
}) async {
final $query = <String, List<String>>{
'testTemplateArn': [testTemplateArn],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v2/get-test-template',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetTestTemplateResponse.fromJson(response);
}