Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Instances
:: 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:
$sel:domainName:DefineExpression'
, defineExpression_domainName
- Undocumented member.
$sel:expression: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.
DefineExpressionResponse' | |
|
Instances
newDefineExpressionResponse Source #
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.
$sel:expression: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.