Skip to main content

expressions

Creates, updates, deletes, gets or lists an expressions resource.

Overview

Nameexpressions
TypeResource
Idaws.cloudsearch.expressions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
optionsstringThe expression that is evaluated for sorting while processing a search request.
statusstringThe status of domain configuration option.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_expressionsselectDomainName, regionExpressionNames, DeployedGets the expressions configured for the search domain. Can be limited to specific expressions by name. By default, shows all expressions and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.
delete_expressiondeleteDomainName, ExpressionName, regionRemoves an Expression from the search domain. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DomainNamestring
ExpressionNamestringThe name of the Expression to delete.
regionstringAWS region (default: us-east-1)
DeployedbooleanWhether to display the deployed configuration (true) or include any pending changes (false). Defaults to false.
ExpressionNamesarrayLimits the DescribeExpressions response to the specified expressions. If not specified, all expressions are shown.

SELECT examples

Gets the expressions configured for the search domain. Can be limited to specific expressions by name. By default, shows all expressions and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.

SELECT
options,
status
FROM aws.cloudsearch.expressions
WHERE DomainName = '{{ DomainName }}' -- required
AND region = '{{ region }}' -- required
AND ExpressionNames = '{{ ExpressionNames }}'
AND Deployed = '{{ Deployed }}'
;

DELETE examples

Removes an Expression from the search domain. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.

DELETE FROM aws.cloudsearch.expressions
WHERE DomainName = '{{ DomainName }}' --required
AND ExpressionName = '{{ ExpressionName }}' --required
AND region = '{{ region }}' --required
;