Skip to content

data_protection_content_pattern

A content pattern defines custom regex-based patterns to detect sensitive data.

The following API scopes are required:

  • Data Protection: READ
  • Data Protection: WRITE
resource "crowdstrike_data_protection_content_pattern" "api_key" {
name = "API Key Pattern"
description = "Internal API Key pattern"
regex = "api[_-]?key[_-]?[a-zA-Z0-9]{32}"
min_match_threshold = 1
}
  • min_match_threshold (Number) Minimum number of matches required for detection (must be >= 1).
  • name (String) Name of the content pattern.
  • regex (String) Regular expression pattern to match against content.
  • description (String) Description of the content pattern.
  • id (String) Unique identifier of the content pattern.
  • last_updated (String) Timestamp of the last Terraform update of the resource.

Import is supported using the following syntax:

#!/bin/bash
# Import an existing data protection content pattern by ID
terraform import crowdstrike_data_protection_content_pattern.example <pattern-id>