rspec/rules/S4423/terraform/highlighting.adoc
github-actions[bot] 3226c7a243
Create rule S4423[terraform]: Add AWS API Gateway Domain Name (#456)
* Add terraform to rule S4423

* Add terraform

* Include main description

* Improve description

* Update rules/S4423/description.adoc

Co-authored-by: Pierre-Loup <49131563+pierre-loup-tristant-sonarsource@users.noreply.github.com>

* Update rules/S4423/terraform/rule.adoc

Co-authored-by: Pierre-Loup <49131563+pierre-loup-tristant-sonarsource@users.noreply.github.com>

* Add highlight

* Add aws_api_gatewayv2_domain_name example

* Add highlight

* Change noncompliant api gateway v2

* Fix wrong apigatewayv2 name

* Add code sample introduction

Co-authored-by: hendrik-buchwald-sonarsource <hendrik-buchwald-sonarsource@users.noreply.github.com>
Co-authored-by: Hendrik Buchwald <hendrik.buchwald@sonarsource.com>
Co-authored-by: hendrik-buchwald-sonarsource <64110887+hendrik-buchwald-sonarsource@users.noreply.github.com>
Co-authored-by: Pierre-Loup <49131563+pierre-loup-tristant-sonarsource@users.noreply.github.com>
Co-authored-by: Nils Werner <64034005+nils-werner-sonarsource@users.noreply.github.com>
2021-11-08 09:10:28 +00:00

13 lines
478 B
Plaintext

=== Highlighting
For `aws_api_gateway_domain_name`:
* Highlight `security_policy` if it is specified but has the wrong value
* Highlight resource if `security_policy` is not specified at all
For `aws_apigatewayv2_domain_name`:
* Highlight `security_policy` if it is specified but has the wrong value
* Highlight `domain_name_configuration` if it is specified but does not contain `security_policy`
* Highlight resource if `domain_name_configuration` is not specified at all