amazonka-evidently-2.0: Amazon CloudWatch Evidently SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Evidently.TestSegmentPattern

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 CreateSegment.

Synopsis

Creating a Request

data TestSegmentPattern Source #

See: newTestSegmentPattern smart constructor.

Constructors

TestSegmentPattern' 

Fields

  • pattern' :: Text

    The pattern to test.

  • payload :: Text

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

Instances

Instances details
ToJSON TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

ToHeaders TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

ToPath TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

ToQuery TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

AWSRequest TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Associated Types

type AWSResponse TestSegmentPattern #

Generic TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Associated Types

type Rep TestSegmentPattern :: Type -> Type #

Read TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Show TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

NFData TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Methods

rnf :: TestSegmentPattern -> () #

Eq TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Hashable TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

type AWSResponse TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

type Rep TestSegmentPattern Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

type Rep TestSegmentPattern = D1 ('MetaData "TestSegmentPattern" "Amazonka.Evidently.TestSegmentPattern" "amazonka-evidently-2.0-Es2fJk98R0DAUPYaVkZSYC" 'False) (C1 ('MetaCons "TestSegmentPattern'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pattern'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newTestSegmentPattern Source #

Create a value of TestSegmentPattern with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

TestSegmentPattern, testSegmentPattern_pattern - The pattern to test.

$sel:payload:TestSegmentPattern', testSegmentPattern_payload - A sample evaluationContext JSON block to test against the specified pattern.

Request Lenses

testSegmentPattern_payload :: Lens' TestSegmentPattern Text Source #

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

Destructuring the Response

data TestSegmentPatternResponse Source #

See: newTestSegmentPatternResponse smart constructor.

Constructors

TestSegmentPatternResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • match :: Bool

    Returns true if the pattern matches the payload.

Instances

Instances details
Generic TestSegmentPatternResponse Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Associated Types

type Rep TestSegmentPatternResponse :: Type -> Type #

Read TestSegmentPatternResponse Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Show TestSegmentPatternResponse Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

NFData TestSegmentPatternResponse Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

Eq TestSegmentPatternResponse Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

type Rep TestSegmentPatternResponse Source # 
Instance details

Defined in Amazonka.Evidently.TestSegmentPattern

type Rep TestSegmentPatternResponse = D1 ('MetaData "TestSegmentPatternResponse" "Amazonka.Evidently.TestSegmentPattern" "amazonka-evidently-2.0-Es2fJk98R0DAUPYaVkZSYC" 'False) (C1 ('MetaCons "TestSegmentPatternResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "match") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

newTestSegmentPatternResponse Source #

Create a value of TestSegmentPatternResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:TestSegmentPatternResponse', testSegmentPatternResponse_httpStatus - The response's http status code.

$sel:match:TestSegmentPatternResponse', testSegmentPatternResponse_match - Returns true if the pattern matches the payload.

Response Lenses

testSegmentPatternResponse_match :: Lens' TestSegmentPatternResponse Bool Source #

Returns true if the pattern matches the payload.