Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates an existing feature.
You can't use this operation to update the tags of an existing feature. Instead, use TagResource.
Synopsis
- data UpdateFeature = UpdateFeature' {}
- newUpdateFeature :: Text -> Text -> UpdateFeature
- updateFeature_addOrUpdateVariations :: Lens' UpdateFeature (Maybe (NonEmpty VariationConfig))
- updateFeature_defaultVariation :: Lens' UpdateFeature (Maybe Text)
- updateFeature_description :: Lens' UpdateFeature (Maybe Text)
- updateFeature_entityOverrides :: Lens' UpdateFeature (Maybe (HashMap Text Text))
- updateFeature_evaluationStrategy :: Lens' UpdateFeature (Maybe FeatureEvaluationStrategy)
- updateFeature_removeVariations :: Lens' UpdateFeature (Maybe [Text])
- updateFeature_feature :: Lens' UpdateFeature Text
- updateFeature_project :: Lens' UpdateFeature Text
- data UpdateFeatureResponse = UpdateFeatureResponse' {
- httpStatus :: Int
- feature :: Feature
- newUpdateFeatureResponse :: Int -> Feature -> UpdateFeatureResponse
- updateFeatureResponse_httpStatus :: Lens' UpdateFeatureResponse Int
- updateFeatureResponse_feature :: Lens' UpdateFeatureResponse Feature
Creating a Request
data UpdateFeature Source #
See: newUpdateFeature
smart constructor.
UpdateFeature' | |
|
Instances
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.
UpdateFeatureResponse' | |
|
Instances
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_httpStatus :: Lens' UpdateFeatureResponse Int Source #
The response's http status code.
updateFeatureResponse_feature :: Lens' UpdateFeatureResponse Feature Source #
A structure that contains information about the updated feature.