You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

match-targets.tf 643B

1234567891011121314151617181920212223
  1. resource "akamai_appsec_match_target" "website_match_target" {
  2. config_id = akamai_appsec_configuration.config.config_id
  3. match_target = jsonencode(
  4. {
  5. "defaultFile" : "NO_MATCH",
  6. "filePaths" : [
  7. "/*"
  8. ],
  9. "hostnames" : "${var.host_names}",
  10. "isNegativeFileExtensionMatch" : false,
  11. "isNegativePathMatch" : false,
  12. "securityPolicy" : {
  13. "policyId" : akamai_appsec_security_policy.security_policy.security_policy_id
  14. },
  15. "sequence" : 0,
  16. "type" : "website"
  17. }
  18. )
  19. }
  20. output "match_target_id" {
  21. value = akamai_appsec_match_target.website_match_target.match_target_id
  22. }