| 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 |
Amazonka.CloudSearch.DefineExpression
Description
Configures an Expression for the search domain. Used to create new
expressions and modify existing ones. If the expression exists, the new
configuration replaces the old one. For more information, see
Configuring Expressions
in the Amazon CloudSearch Developer Guide.
Synopsis
- data DefineExpression = DefineExpression' {}
- newDefineExpression :: Text -> Expression -> DefineExpression
- defineExpression_domainName :: Lens' DefineExpression Text
- defineExpression_expression :: Lens' DefineExpression Expression
- data DefineExpressionResponse = DefineExpressionResponse' {}
- newDefineExpressionResponse :: Int -> ExpressionStatus -> DefineExpressionResponse
- defineExpressionResponse_httpStatus :: Lens' DefineExpressionResponse Int
- defineExpressionResponse_expression :: Lens' DefineExpressionResponse ExpressionStatus
Creating a Request
data DefineExpression Source #
Container for the parameters to the DefineExpression operation.
Specifies the name of the domain you want to update and the expression
you want to configure.
See: newDefineExpression smart constructor.
Constructors
| DefineExpression' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Expression | |
| -> DefineExpression |
Create a value of DefineExpression 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:
DefineExpression, defineExpression_domainName - Undocumented member.
DefineExpression, defineExpression_expression - Undocumented member.
Request Lenses
defineExpression_domainName :: Lens' DefineExpression Text Source #
Undocumented member.
defineExpression_expression :: Lens' DefineExpression Expression Source #
Undocumented member.
Destructuring the Response
data DefineExpressionResponse Source #
The result of a DefineExpression request. Contains the status of the
newly-configured expression.
See: newDefineExpressionResponse smart constructor.
Constructors
| DefineExpressionResponse' | |
Fields
| |
Instances
newDefineExpressionResponse Source #
Arguments
| :: Int | |
| -> ExpressionStatus | |
| -> DefineExpressionResponse |
Create a value of DefineExpressionResponse 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:DefineExpressionResponse', defineExpressionResponse_httpStatus - The response's http status code.
DefineExpression, defineExpressionResponse_expression - Undocumented member.
Response Lenses
defineExpressionResponse_httpStatus :: Lens' DefineExpressionResponse Int Source #
The response's http status code.
defineExpressionResponse_expression :: Lens' DefineExpressionResponse ExpressionStatus Source #
Undocumented member.