Configures an AWS Evidently Launch resource with metric monitors and a scheduled split.

Terraform Template

resource "aws_evidently_launch" "example" {

  groups {
    feature = "aws_evidently_feature.example.name"
    name = "Variation1"
    variation = "Variation1"
  }

  metric_monitors {

    metric_definition {
      entity_id_key = "entity_id_key1"
      event_pattern = "{"Price":[{"numeric":[">",11,"<=",22]}]}"
      name = "name1"
      unit_label = "unit_label1"
      value_key = "value_key1"
    }
  }

  metric_monitors {

    metric_definition {
      entity_id_key = "entity_id_key2"
      event_pattern = "{"Price":[{"numeric":[">",9,"<=",19]}]}"
      name = "name2"
      unit_label = "unit_label2"
      value_key = "value_key2"
    }
  }
  name = "example"
  project = "aws_evidently_project.example.name"

  scheduled_splits_config {

    steps {

      group_weights = {
        Variation1 = 0
      }
      start_time = "2024-01-07 01:43:59+00:00"
    }
  }
}