Skip to content

Test Segment Pattern

cloudwatchevidently_test_segment_pattern R Documentation

Use this operation to test a rules pattern that you plan to use to create an audience segment

Description

Use this operation to test a rules pattern that you plan to use to create an audience segment. For more information about segments, see create_segment.

Usage

cloudwatchevidently_test_segment_pattern(pattern, payload)

Arguments

pattern

[required] The pattern to test.

payload

[required] A sample evaluationContext JSON block to test against the specified pattern.

Value

A list with the following syntax:

list(
  match = TRUE|FALSE
)

Request syntax

svc$test_segment_pattern(
  pattern = "string",
  payload = "string"
)