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

Description

Updates an existing feature.

You can't use this operation to update the tags of an existing feature. Instead, use TagResource.

Synopsis

Creating a Request

data UpdateFeature Source #

See: newUpdateFeature smart constructor.

Constructors

UpdateFeature' 

Fields

  • addOrUpdateVariations :: Maybe (NonEmpty VariationConfig)

    To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.

  • defaultVariation :: Maybe Text

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

  • description :: Maybe Text

    An optional description of the feature.

  • entityOverrides :: Maybe (HashMap Text Text)

    Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.

  • evaluationStrategy :: Maybe FeatureEvaluationStrategy

    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.

  • removeVariations :: Maybe [Text]

    Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.

    This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.

  • feature :: Text

    The name of the feature to be updated.

  • project :: Text

    The name or ARN of the project that contains the feature to be updated.

Instances

Instances details
ToJSON UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

ToHeaders UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

ToPath UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

ToQuery UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

AWSRequest UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Associated Types

type AWSResponse UpdateFeature #

Generic UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Associated Types

type Rep UpdateFeature :: Type -> Type #

Read UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Show UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

NFData UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Methods

rnf :: UpdateFeature -> () #

Eq UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Hashable UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

type AWSResponse UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

type Rep UpdateFeature Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

newUpdateFeature Source #

Create a value of UpdateFeature 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:addOrUpdateVariations:UpdateFeature', updateFeature_addOrUpdateVariations - To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.

UpdateFeature, updateFeature_defaultVariation - The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.

UpdateFeature, updateFeature_description - An optional description of the feature.

UpdateFeature, updateFeature_entityOverrides - Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.

UpdateFeature, updateFeature_evaluationStrategy - Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.

$sel:removeVariations:UpdateFeature', updateFeature_removeVariations - Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.

This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.

UpdateFeature, updateFeature_feature - The name of the feature to be updated.

UpdateFeature, updateFeature_project - The name or ARN of the project that contains the feature to be updated.

Request Lenses

updateFeature_addOrUpdateVariations :: Lens' UpdateFeature (Maybe (NonEmpty VariationConfig)) Source #

To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.

updateFeature_defaultVariation :: Lens' UpdateFeature (Maybe Text) Source #

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

updateFeature_description :: Lens' UpdateFeature (Maybe Text) Source #

An optional description of the feature.

updateFeature_entityOverrides :: Lens' UpdateFeature (Maybe (HashMap Text Text)) Source #

Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.

updateFeature_evaluationStrategy :: Lens' UpdateFeature (Maybe FeatureEvaluationStrategy) Source #

Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.

updateFeature_removeVariations :: Lens' UpdateFeature (Maybe [Text]) Source #

Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.

This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.

updateFeature_feature :: Lens' UpdateFeature Text Source #

The name of the feature to be updated.

updateFeature_project :: Lens' UpdateFeature Text Source #

The name or ARN of the project that contains the feature to be updated.

Destructuring the Response

data UpdateFeatureResponse Source #

See: newUpdateFeatureResponse smart constructor.

Constructors

UpdateFeatureResponse' 

Fields

Instances

Instances details
Generic UpdateFeatureResponse Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Associated Types

type Rep UpdateFeatureResponse :: Type -> Type #

Read UpdateFeatureResponse Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Show UpdateFeatureResponse Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

NFData UpdateFeatureResponse Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

Methods

rnf :: UpdateFeatureResponse -> () #

Eq UpdateFeatureResponse Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

type Rep UpdateFeatureResponse Source # 
Instance details

Defined in Amazonka.Evidently.UpdateFeature

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

newUpdateFeatureResponse Source #

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

UpdateFeature, updateFeatureResponse_feature - A structure that contains information about the updated feature.

Response Lenses

updateFeatureResponse_feature :: Lens' UpdateFeatureResponse Feature Source #

A structure that contains information about the updated feature.