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

Description

Use this operation to define a segment of your audience. A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.

Using a segment in an experiment limits that experiment to evaluate only the users who match the segment criteria. Using one or more segments in a launch allows you to define different traffic splits for the different audience segments.

 <p>For more information about segment pattern syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html#CloudWatch-Evidently-segments-syntax.html"> Segment rule pattern syntax</a>.</p> <p>The pattern that you define for a segment is matched against the value of <code>evaluationContext</code>, which is passed into Evidently in the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> operation, when Evidently assigns a feature variation to a user.</p>
Synopsis

Creating a Request

data CreateSegment Source #

See: newCreateSegment smart constructor.

Constructors

CreateSegment' 

Fields

  • description :: Maybe Text

    An optional description for this segment.

  • tags :: Maybe (HashMap Text Text)

    Assigns one or more tags (key-value pairs) to the segment.

    Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

    Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

     <p>You can associate as many as 50 tags with a segment.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>
  • name :: Text

    A name for the segment.

  • pattern' :: Text

    The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.

Instances

Instances details
ToJSON CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

ToHeaders CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

ToPath CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

ToQuery CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

AWSRequest CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Associated Types

type AWSResponse CreateSegment #

Generic CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Associated Types

type Rep CreateSegment :: Type -> Type #

Read CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Show CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

NFData CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Methods

rnf :: CreateSegment -> () #

Eq CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Hashable CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

type AWSResponse CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

type Rep CreateSegment Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

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

newCreateSegment Source #

Create a value of CreateSegment 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:

CreateSegment, createSegment_description - An optional description for this segment.

CreateSegment, createSegment_tags - Assigns one or more tags (key-value pairs) to the segment.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

 <p>You can associate as many as 50 tags with a segment.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>

CreateSegment, createSegment_name - A name for the segment.

CreateSegment, createSegment_pattern - The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.

Request Lenses

createSegment_description :: Lens' CreateSegment (Maybe Text) Source #

An optional description for this segment.

createSegment_tags :: Lens' CreateSegment (Maybe (HashMap Text Text)) Source #

Assigns one or more tags (key-value pairs) to the segment.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

 <p>You can associate as many as 50 tags with a segment.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>

createSegment_pattern :: Lens' CreateSegment Text Source #

The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.

Destructuring the Response

data CreateSegmentResponse Source #

See: newCreateSegmentResponse smart constructor.

Constructors

CreateSegmentResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • segment :: Segment

    A structure that contains the complete information about the segment that was just created.

Instances

Instances details
Generic CreateSegmentResponse Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Associated Types

type Rep CreateSegmentResponse :: Type -> Type #

Read CreateSegmentResponse Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Show CreateSegmentResponse Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

NFData CreateSegmentResponse Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

Methods

rnf :: CreateSegmentResponse -> () #

Eq CreateSegmentResponse Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

type Rep CreateSegmentResponse Source # 
Instance details

Defined in Amazonka.Evidently.CreateSegment

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

newCreateSegmentResponse Source #

Create a value of CreateSegmentResponse 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:CreateSegmentResponse', createSegmentResponse_httpStatus - The response's http status code.

CreateSegmentResponse, createSegmentResponse_segment - A structure that contains the complete information about the segment that was just created.

Response Lenses

createSegmentResponse_segment :: Lens' CreateSegmentResponse Segment Source #

A structure that contains the complete information about the segment that was just created.