validateTemplate

abstract suspend fun validateTemplate(input: ValidateTemplateRequest = ValidateTemplateRequest { }): ValidateTemplateResponse

Validates a specified template. CloudFormation first checks if the template is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these checks fail, CloudFormation returns a template validation error.