| Version: v2023-09-20 | Includes use: No | 
|---|
Behavior name: Message Store object key selection
Defines a regular expression to match object keys in custom URLs and to access objects in a data set. You can point custom URLs to access proper values in the target data set. For an overview, see ecms_database.
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "ecms_object_key" {
  rules_v2023_09_20 {
    name     = "Message Store object key selection"
    comments = "Defines a regex to match object keys in custom URLs and access objects in a data set."
    behavior {
      ecms_object_key {
        regex = "^\\/datastore\\/[^\\/]+\\/[^\\/]+[\\/]{0,1}(.*)$"
      }
    }
  }
}
"behaviors": [
  {
  "name": "ecmsObjectKey",
  "options": {
    "regex": "^\\/datastore\\/[^\\/]+\\/[^\\/]+[\\/]{0,1}(.*)$"
    }
  }
]
Options
| Option | Description | 
|---|---|
| regex | Enables sending a compressed archive file with objects to the default path of the target data set:  <hostname>/bulk/<database_name>/<dataset_name>. | 
