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 |
Creates an Evidently feature that you want to launch or test. You can define up to five variations of a feature, and use these variations in your launches and experiments. A feature must be created in a project. For information about creating a project, see CreateProject.
Don't use this operation to update an existing feature. Instead, use UpdateFeature.
Synopsis
- data CreateFeature = CreateFeature' {}
- newCreateFeature :: Text -> Text -> NonEmpty VariationConfig -> CreateFeature
- createFeature_defaultVariation :: Lens' CreateFeature (Maybe Text)
- createFeature_description :: Lens' CreateFeature (Maybe Text)
- createFeature_entityOverrides :: Lens' CreateFeature (Maybe (HashMap Text Text))
- createFeature_evaluationStrategy :: Lens' CreateFeature (Maybe FeatureEvaluationStrategy)
- createFeature_tags :: Lens' CreateFeature (Maybe (HashMap Text Text))
- createFeature_name :: Lens' CreateFeature Text
- createFeature_project :: Lens' CreateFeature Text
- createFeature_variations :: Lens' CreateFeature (NonEmpty VariationConfig)
- data CreateFeatureResponse = CreateFeatureResponse' {
- feature :: Maybe Feature
- httpStatus :: Int
- newCreateFeatureResponse :: Int -> CreateFeatureResponse
- createFeatureResponse_feature :: Lens' CreateFeatureResponse (Maybe Feature)
- createFeatureResponse_httpStatus :: Lens' CreateFeatureResponse Int
Creating a Request
data CreateFeature Source #
See: newCreateFeature
smart constructor.
CreateFeature' | |
|
Instances
Create a value of CreateFeature
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:
CreateFeature
, createFeature_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.
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.
CreateFeature
, createFeature_description
- An optional description of the feature.
CreateFeature
, createFeature_entityOverrides
- Specify 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.
CreateFeature
, createFeature_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.
CreateFeature
, createFeature_tags
- Assigns one or more tags (key-value pairs) to the feature.
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 feature.</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>
CreateFeature
, createFeature_name
- The name for the new feature.
CreateFeature
, createFeature_project
- The name or ARN of the project that is to contain the new feature.
CreateFeature
, createFeature_variations
- An array of structures that contain the configuration of the feature's
different variations.
Request Lenses
createFeature_defaultVariation :: Lens' CreateFeature (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.
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.
createFeature_description :: Lens' CreateFeature (Maybe Text) Source #
An optional description of the feature.
createFeature_entityOverrides :: Lens' CreateFeature (Maybe (HashMap Text Text)) Source #
Specify 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.
createFeature_evaluationStrategy :: Lens' CreateFeature (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.
createFeature_tags :: Lens' CreateFeature (Maybe (HashMap Text Text)) Source #
Assigns one or more tags (key-value pairs) to the feature.
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 feature.</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>
createFeature_name :: Lens' CreateFeature Text Source #
The name for the new feature.
createFeature_project :: Lens' CreateFeature Text Source #
The name or ARN of the project that is to contain the new feature.
createFeature_variations :: Lens' CreateFeature (NonEmpty VariationConfig) Source #
An array of structures that contain the configuration of the feature's different variations.
Destructuring the Response
data CreateFeatureResponse Source #
See: newCreateFeatureResponse
smart constructor.
CreateFeatureResponse' | |
|
Instances
newCreateFeatureResponse Source #
Create a value of CreateFeatureResponse
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:
CreateFeatureResponse
, createFeatureResponse_feature
- A structure that contains information about the new feature.
$sel:httpStatus:CreateFeatureResponse'
, createFeatureResponse_httpStatus
- The response's http status code.
Response Lenses
createFeatureResponse_feature :: Lens' CreateFeatureResponse (Maybe Feature) Source #
A structure that contains information about the new feature.
createFeatureResponse_httpStatus :: Lens' CreateFeatureResponse Int Source #
The response's http status code.