CloudWatchEvidently / Client / test_segment_pattern
test_segment_pattern¶
- CloudWatchEvidently.Client.test_segment_pattern(**kwargs)¶
Use this operation to test a rules pattern that you plan to use to create an audience segment. For more information about segments, see CreateSegment.
Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
See also: AWS API Documentation
Request Syntax
response = client.test_segment_pattern( pattern='string', payload='string' )
- Parameters:
pattern (string) –
[REQUIRED]
The pattern to test.
payload (string) –
[REQUIRED]
A sample
evaluationContextJSON block to test against the specified pattern.
- Return type:
dict
- Returns:
Response Syntax
{ 'match': True|False }
Response Structure
(dict) –
match (boolean) –
Returns
trueif the pattern matches the payload.
Exceptions