output "waf_count_only_arn_output" {
  description = "ARN of count-only WAF"
  value = element(
    concat(aws_wafv2_web_acl.countonlyacl.*.arn, [""]),
    0,
  )
}

output "waf_count_only_id_output" {
  description = "ID of count-only WAF"
  value = element(
    concat(aws_wafv2_web_acl.countonlyacl.*.id, [""]),
    0,
  )
}

output "waf_count_only_name_output" {
  description = "ID of count-only WAF"
  value = element(
    concat(aws_wafv2_web_acl.countonlyacl.*.name, [""]),
    0,
  )
}

output "waf_blocking_arn_output" {
  description = "ARN of blocking WAF"
  value = element(
    concat(aws_wafv2_web_acl.blockwebacl.*.arn, [""]),
    0,
  )
}

output "waf_blocking_id_output" {
  description = "ID of blocking WAF"
  value = element(
    concat(aws_wafv2_web_acl.blockwebacl.*.id, [""]),
    0,
  )
}

output "waf_blocking_name_output" {
  description = "ID of blocking WAF"
  value = element(
    concat(aws_wafv2_web_acl.blockwebacl.*.name, [""]),
    0,
  )
}

output "service_name" {
  value = var.service_name
}
