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

Description

 
Synopsis

Documentation

data Feature Source #

This structure contains information about one Evidently feature in your account.

See: newFeature smart constructor.

Constructors

Feature' 

Fields

  • defaultVariation :: Maybe Text

    The name of the variation that is used as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.

    This variation must also be listed in the variations structure.

    If you omit defaultVariation, the first variation listed in the variations structure is used as the default variation.

  • description :: Maybe Text

    The description of the feature.

  • entityOverrides :: Maybe (HashMap Text Text)

    A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of the variation that the user is to be served.

    For the override to be successful, the value of the key must match the entityId used in the EvaluateFeature operation.

  • evaluationRules :: Maybe [EvaluationRule]

    An array of structures that define the evaluation rules for the feature.

  • project :: Maybe Text

    The name or ARN of the project that contains the feature.

  • tags :: Maybe (HashMap Text Text)

    The list of tag keys and values associated with this feature.

  • arn :: Text

    The ARN of the feature.

  • createdTime :: POSIX

    The date and time that the feature is created.

  • evaluationStrategy :: FeatureEvaluationStrategy

    If this value is ALL_RULES, the traffic allocation specified by any ongoing launches or experiments is being used. If this is DEFAULT_VARIATION, the default variation is being served to all users.

  • lastUpdatedTime :: POSIX

    The date and time that the feature was most recently updated.

  • name :: Text

    The name of the feature.

  • status :: FeatureStatus

    The current state of the feature.

  • valueType :: VariationValueType

    Defines the type of value used to define the different feature variations. For more information, see Variation types

  • variations :: [Variation]

    An array of structures that contain the configuration of the feature's different variations.

Instances

Instances details
FromJSON Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

Generic Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

Associated Types

type Rep Feature :: Type -> Type #

Methods

from :: Feature -> Rep Feature x #

to :: Rep Feature x -> Feature #

Read Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

Show Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

NFData Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

Methods

rnf :: Feature -> () #

Eq Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

Methods

(==) :: Feature -> Feature -> Bool #

(/=) :: Feature -> Feature -> Bool #

Hashable Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

Methods

hashWithSalt :: Int -> Feature -> Int #

hash :: Feature -> Int #

type Rep Feature Source # 
Instance details

Defined in Amazonka.Evidently.Types.Feature

type Rep Feature = D1 ('MetaData "Feature" "Amazonka.Evidently.Types.Feature" "amazonka-evidently-2.0-Es2fJk98R0DAUPYaVkZSYC" 'False) (C1 ('MetaCons "Feature'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "defaultVariation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "entityOverrides") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: ((S1 ('MetaSel ('Just "evaluationRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EvaluationRule])) :*: S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :*: ((S1 ('MetaSel ('Just "createdTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: (S1 ('MetaSel ('Just "evaluationStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FeatureEvaluationStrategy) :*: S1 ('MetaSel ('Just "lastUpdatedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FeatureStatus)) :*: (S1 ('MetaSel ('Just "valueType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VariationValueType) :*: S1 ('MetaSel ('Just "variations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Variation]))))))

newFeature Source #

Create a value of Feature 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:defaultVariation:Feature', feature_defaultVariation - The name of the variation that is used as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.

This variation must also be listed in the variations structure.

If you omit defaultVariation, the first variation listed in the variations structure is used as the default variation.

$sel:description:Feature', feature_description - The description of the feature.

$sel:entityOverrides:Feature', feature_entityOverrides - A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of the variation that the user is to be served.

For the override to be successful, the value of the key must match the entityId used in the EvaluateFeature operation.

$sel:evaluationRules:Feature', feature_evaluationRules - An array of structures that define the evaluation rules for the feature.

$sel:project:Feature', feature_project - The name or ARN of the project that contains the feature.

$sel:tags:Feature', feature_tags - The list of tag keys and values associated with this feature.

$sel:arn:Feature', feature_arn - The ARN of the feature.

$sel:createdTime:Feature', feature_createdTime - The date and time that the feature is created.

$sel:evaluationStrategy:Feature', feature_evaluationStrategy - If this value is ALL_RULES, the traffic allocation specified by any ongoing launches or experiments is being used. If this is DEFAULT_VARIATION, the default variation is being served to all users.

$sel:lastUpdatedTime:Feature', feature_lastUpdatedTime - The date and time that the feature was most recently updated.

Feature, feature_name - The name of the feature.

$sel:status:Feature', feature_status - The current state of the feature.

$sel:valueType:Feature', feature_valueType - Defines the type of value used to define the different feature variations. For more information, see Variation types

$sel:variations:Feature', feature_variations - An array of structures that contain the configuration of the feature's different variations.

feature_defaultVariation :: Lens' Feature (Maybe Text) Source #

The name of the variation that is used as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.

This variation must also be listed in the variations structure.

If you omit defaultVariation, the first variation listed in the variations structure is used as the default variation.

feature_description :: Lens' Feature (Maybe Text) Source #

The description of the feature.

feature_entityOverrides :: Lens' Feature (Maybe (HashMap Text Text)) Source #

A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of the variation that the user is to be served.

For the override to be successful, the value of the key must match the entityId used in the EvaluateFeature operation.

feature_evaluationRules :: Lens' Feature (Maybe [EvaluationRule]) Source #

An array of structures that define the evaluation rules for the feature.

feature_project :: Lens' Feature (Maybe Text) Source #

The name or ARN of the project that contains the feature.

feature_tags :: Lens' Feature (Maybe (HashMap Text Text)) Source #

The list of tag keys and values associated with this feature.

feature_arn :: Lens' Feature Text Source #

The ARN of the feature.

feature_createdTime :: Lens' Feature UTCTime Source #

The date and time that the feature is created.

feature_evaluationStrategy :: Lens' Feature FeatureEvaluationStrategy Source #

If this value is ALL_RULES, the traffic allocation specified by any ongoing launches or experiments is being used. If this is DEFAULT_VARIATION, the default variation is being served to all users.

feature_lastUpdatedTime :: Lens' Feature UTCTime Source #

The date and time that the feature was most recently updated.

feature_name :: Lens' Feature Text Source #

The name of the feature.

feature_status :: Lens' Feature FeatureStatus Source #

The current state of the feature.

feature_valueType :: Lens' Feature VariationValueType Source #

Defines the type of value used to define the different feature variations. For more information, see Variation types

feature_variations :: Lens' Feature [Variation] Source #

An array of structures that contain the configuration of the feature's different variations.