data_protection_content_pattern
A content pattern defines custom regex-based patterns to detect sensitive data.
API Scopes
Section titled “API Scopes”The following API scopes are required:
- Data Protection: READ
- Data Protection: WRITE
Example Usage
Section titled “Example Usage”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}Schema
Section titled “Schema”Required
Section titled “Required”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.
Optional
Section titled “Optional”description(String) Description of the content pattern.
Read-Only
Section titled “Read-Only”id(String) Unique identifier of the content pattern.last_updated(String) Timestamp of the last Terraform update of the resource.
Import
Section titled “Import”Import is supported using the following syntax:
#!/bin/bash# Import an existing data protection content pattern by IDterraform import crowdstrike_data_protection_content_pattern.example <pattern-id>