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.Types.SegmentOverride

Description

 
Synopsis

Documentation

data SegmentOverride Source #

This structure specifies a segment that you have already created, and defines the traffic split for that segment to be used in a launch.

See: newSegmentOverride smart constructor.

Constructors

SegmentOverride' 

Fields

  • evaluationOrder :: Integer

    A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.

  • segment :: Text

    The ARN of the segment to use.

  • weights :: HashMap Text Natural

    The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.

Instances

Instances details
FromJSON SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

ToJSON SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

Generic SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

Associated Types

type Rep SegmentOverride :: Type -> Type #

Read SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

Show SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

NFData SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

Methods

rnf :: SegmentOverride -> () #

Eq SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

Hashable SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

type Rep SegmentOverride Source # 
Instance details

Defined in Amazonka.Evidently.Types.SegmentOverride

type Rep SegmentOverride = D1 ('MetaData "SegmentOverride" "Amazonka.Evidently.Types.SegmentOverride" "amazonka-evidently-2.0-Es2fJk98R0DAUPYaVkZSYC" 'False) (C1 ('MetaCons "SegmentOverride'" 'PrefixI 'True) (S1 ('MetaSel ('Just "evaluationOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "segment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "weights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Natural)))))

newSegmentOverride Source #

Create a value of SegmentOverride 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:evaluationOrder:SegmentOverride', segmentOverride_evaluationOrder - A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.

$sel:segment:SegmentOverride', segmentOverride_segment - The ARN of the segment to use.

$sel:weights:SegmentOverride', segmentOverride_weights - The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.

segmentOverride_evaluationOrder :: Lens' SegmentOverride Integer Source #

A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.

segmentOverride_segment :: Lens' SegmentOverride Text Source #

The ARN of the segment to use.

segmentOverride_weights :: Lens' SegmentOverride (HashMap Text Natural) Source #

The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.