Class: Aws::CloudSearch::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CloudSearch::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- lib/aws-sdk-cloudsearch/client.rb
Overview
An API client for CloudSearch. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::CloudSearch::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#build_suggesters(params = {}) ⇒ Types::BuildSuggestersResponse
Indexes the search suggestions.
-
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a new search domain.
-
#define_analysis_scheme(params = {}) ⇒ Types::DefineAnalysisSchemeResponse
Configures an analysis scheme that can be applied to a ‘text` or `text-array` field to define language-specific text processing options.
-
#define_expression(params = {}) ⇒ Types::DefineExpressionResponse
Configures an ‘Expression` for the search domain.
-
#define_index_field(params = {}) ⇒ Types::DefineIndexFieldResponse
Configures an ‘IndexField` for the search domain.
-
#define_suggester(params = {}) ⇒ Types::DefineSuggesterResponse
Configures a suggester for a domain.
-
#delete_analysis_scheme(params = {}) ⇒ Types::DeleteAnalysisSchemeResponse
Deletes an analysis scheme.
-
#delete_domain(params = {}) ⇒ Types::DeleteDomainResponse
Permanently deletes a search domain and all of its data.
-
#delete_expression(params = {}) ⇒ Types::DeleteExpressionResponse
Removes an ‘Expression` from the search domain.
-
#delete_index_field(params = {}) ⇒ Types::DeleteIndexFieldResponse
Removes an ‘IndexField` from the search domain.
-
#delete_suggester(params = {}) ⇒ Types::DeleteSuggesterResponse
Deletes a suggester.
-
#describe_analysis_schemes(params = {}) ⇒ Types::DescribeAnalysisSchemesResponse
Gets the analysis schemes configured for a domain.
-
#describe_availability_options(params = {}) ⇒ Types::DescribeAvailabilityOptionsResponse
Gets the availability options configured for a domain.
-
#describe_domain_endpoint_options(params = {}) ⇒ Types::DescribeDomainEndpointOptionsResponse
Returns the domain’s endpoint options, specifically whether all requests to the domain must arrive over HTTPS.
-
#describe_domains(params = {}) ⇒ Types::DescribeDomainsResponse
Gets information about the search domains owned by this account.
-
#describe_expressions(params = {}) ⇒ Types::DescribeExpressionsResponse
Gets the expressions configured for the search domain.
-
#describe_index_fields(params = {}) ⇒ Types::DescribeIndexFieldsResponse
Gets information about the index fields configured for the search domain.
-
#describe_scaling_parameters(params = {}) ⇒ Types::DescribeScalingParametersResponse
Gets the scaling parameters configured for a domain.
-
#describe_service_access_policies(params = {}) ⇒ Types::DescribeServiceAccessPoliciesResponse
Gets information about the access policies that control access to the domain’s document and search endpoints.
-
#describe_suggesters(params = {}) ⇒ Types::DescribeSuggestersResponse
Gets the suggesters configured for a domain.
-
#index_documents(params = {}) ⇒ Types::IndexDocumentsResponse
Tells the search domain to start indexing its documents using the latest indexing options.
-
#list_domain_names(params = {}) ⇒ Types::ListDomainNamesResponse
Lists all search domains owned by an account.
-
#update_availability_options(params = {}) ⇒ Types::UpdateAvailabilityOptionsResponse
Configures the availability options for a domain.
-
#update_domain_endpoint_options(params = {}) ⇒ Types::UpdateDomainEndpointOptionsResponse
Updates the domain’s endpoint options, specifically whether all requests to the domain must arrive over HTTPS.
-
#update_scaling_parameters(params = {}) ⇒ Types::UpdateScalingParametersResponse
Configures scaling parameters for a domain.
-
#update_service_access_policies(params = {}) ⇒ Types::UpdateServiceAccessPoliciesResponse
Configures the access rules that control access to the domain’s document and search endpoints.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 444 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1986 1987 1988 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1986 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1989 1990 1991 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1989 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1959 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::CloudSearch') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-cloudsearch' context[:gem_version] = '1.68.0' Seahorse::Client::Request.new(handlers, context) end |
#build_suggesters(params = {}) ⇒ Types::BuildSuggestersResponse
Indexes the search suggestions. For more information, see [Configuring Suggesters] in the *Amazon CloudSearch Developer Guide*.
480 481 482 483 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 480 def build_suggesters(params = {}, = {}) req = build_request(:build_suggesters, params) req.send_request() end |
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a new search domain. For more information, see [Creating a Search Domain] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html
527 528 529 530 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 527 def create_domain(params = {}, = {}) req = build_request(:create_domain, params) req.send_request() end |
#define_analysis_scheme(params = {}) ⇒ Types::DefineAnalysisSchemeResponse
Configures an analysis scheme that can be applied to a ‘text` or `text-array` field to define language-specific text processing options. For more information, see [Configuring Analysis Schemes] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html
592 593 594 595 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 592 def define_analysis_scheme(params = {}, = {}) req = build_request(:define_analysis_scheme, params) req.send_request() end |
#define_expression(params = {}) ⇒ Types::DefineExpressionResponse
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][1
-
in the *Amazon CloudSearch Developer
Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html
644 645 646 647 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 644 def define_expression(params = {}, = {}) req = build_request(:define_expression, params) req.send_request() end |
#define_index_field(params = {}) ⇒ Types::DefineIndexFieldResponse
Configures an ‘IndexField` for the search domain. Used to create new fields and modify existing ones. You must specify the name of the domain you are configuring and an index field configuration. The index field configuration specifies a unique name, the index field type, and the options you want to configure for the field. The options you can specify depend on the `IndexFieldType`. If the field exists, the new configuration replaces the old one. For more information, see
- Configuring Index Fields][1
-
in the *Amazon CloudSearch Developer
Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html
842 843 844 845 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 842 def define_index_field(params = {}, = {}) req = build_request(:define_index_field, params) req.send_request() end |
#define_suggester(params = {}) ⇒ Types::DefineSuggesterResponse
Configures a suggester for a domain. A suggester enables you to display possible matches before users finish typing their queries. When you configure a suggester, you must specify the name of the text field you want to search for possible matches and a unique name for the suggester. For more information, see [Getting Search Suggestions] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html
902 903 904 905 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 902 def define_suggester(params = {}, = {}) req = build_request(:define_suggester, params) req.send_request() end |
#delete_analysis_scheme(params = {}) ⇒ Types::DeleteAnalysisSchemeResponse
Deletes an analysis scheme. For more information, see [Configuring Analysis Schemes] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html
951 952 953 954 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 951 def delete_analysis_scheme(params = {}, = {}) req = build_request(:delete_analysis_scheme, params) req.send_request() end |
#delete_domain(params = {}) ⇒ Types::DeleteDomainResponse
Permanently deletes a search domain and all of its data. Once a domain has been deleted, it cannot be recovered. For more information, see
- Deleting a Search Domain][1
-
in the *Amazon CloudSearch Developer
Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html
997 998 999 1000 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 997 def delete_domain(params = {}, = {}) req = build_request(:delete_domain, params) req.send_request() end |
#delete_expression(params = {}) ⇒ Types::DeleteExpressionResponse
Removes an ‘Expression` from the search domain. For more information, see [Configuring Expressions] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html
1042 1043 1044 1045 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1042 def delete_expression(params = {}, = {}) req = build_request(:delete_expression, params) req.send_request() end |
#delete_index_field(params = {}) ⇒ Types::DeleteIndexFieldResponse
Removes an ‘IndexField` from the search domain. For more information, see [Configuring Index Fields] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html
1149 1150 1151 1152 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1149 def delete_index_field(params = {}, = {}) req = build_request(:delete_index_field, params) req.send_request() end |
#delete_suggester(params = {}) ⇒ Types::DeleteSuggesterResponse
Deletes a suggester. For more information, see [Getting Search Suggestions] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html
1195 1196 1197 1198 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1195 def delete_suggester(params = {}, = {}) req = build_request(:delete_suggester, params) req.send_request() end |
#describe_analysis_schemes(params = {}) ⇒ Types::DescribeAnalysisSchemesResponse
Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific text processing options for a ‘text` field. Can be limited to specific analysis schemes by name. By default, shows all analysis schemes 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 Analysis Schemes][1
-
in the *Amazon CloudSearch Developer
Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html
1253 1254 1255 1256 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1253 def describe_analysis_schemes(params = {}, = {}) req = build_request(:describe_analysis_schemes, params) req.send_request() end |
#describe_availability_options(params = {}) ⇒ Types::DescribeAvailabilityOptionsResponse
Gets the availability options configured for a domain. By default, shows the configuration with any pending changes. Set the ‘Deployed` option to `true` to show the active configuration and exclude pending changes. For more information, see [Configuring Availability Options] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html
1297 1298 1299 1300 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1297 def (params = {}, = {}) req = build_request(:describe_availability_options, params) req.send_request() end |
#describe_domain_endpoint_options(params = {}) ⇒ Types::DescribeDomainEndpointOptionsResponse
Returns the domain’s endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see [Configuring Domain Endpoint Options] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html
1342 1343 1344 1345 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1342 def (params = {}, = {}) req = build_request(:describe_domain_endpoint_options, params) req.send_request() end |
#describe_domains(params = {}) ⇒ Types::DescribeDomainsResponse
Gets information about the search domains owned by this account. Can be limited to specific domains. Shows all domains by default. To get the number of searchable documents in a domain, use the console or submit a ‘matchall` request to your domain’s search endpoint: ‘q=matchall&q.parser=structured&size=0`. For more information, see [Getting Information about a Search Domain] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html
1392 1393 1394 1395 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1392 def describe_domains(params = {}, = {}) req = build_request(:describe_domains, params) req.send_request() end |
#describe_expressions(params = {}) ⇒ Types::DescribeExpressionsResponse
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*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html
1444 1445 1446 1447 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1444 def describe_expressions(params = {}, = {}) req = build_request(:describe_expressions, params) req.send_request() end |
#describe_index_fields(params = {}) ⇒ Types::DescribeIndexFieldsResponse
Gets information about the index fields configured for the search domain. Can be limited to specific fields by name. By default, shows all fields 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 [Getting Domain Information] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html
1557 1558 1559 1560 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1557 def describe_index_fields(params = {}, = {}) req = build_request(:describe_index_fields, params) req.send_request() end |
#describe_scaling_parameters(params = {}) ⇒ Types::DescribeScalingParametersResponse
Gets the scaling parameters configured for a domain. A domain’s scaling parameters specify the desired search instance type and replication count. For more information, see [Configuring Scaling Options] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html
1600 1601 1602 1603 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1600 def describe_scaling_parameters(params = {}, = {}) req = build_request(:describe_scaling_parameters, params) req.send_request() end |
#describe_service_access_policies(params = {}) ⇒ Types::DescribeServiceAccessPoliciesResponse
Gets information about the access policies that control access to the domain’s document and search endpoints. By default, shows the configuration with any pending changes. Set the ‘Deployed` option to `true` to show the active configuration and exclude pending changes. For more information, see [Configuring Access for a Search Domain] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html
1645 1646 1647 1648 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1645 def describe_service_access_policies(params = {}, = {}) req = build_request(:describe_service_access_policies, params) req.send_request() end |
#describe_suggesters(params = {}) ⇒ Types::DescribeSuggestersResponse
Gets the suggesters configured for a domain. A suggester enables you to display possible matches before users finish typing their queries. Can be limited to specific suggesters by name. By default, shows all suggesters 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 [Getting Search Suggestions] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html
1699 1700 1701 1702 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1699 def describe_suggesters(params = {}, = {}) req = build_request(:describe_suggesters, params) req.send_request() end |
#index_documents(params = {}) ⇒ Types::IndexDocumentsResponse
Tells the search domain to start indexing its documents using the latest indexing options. This operation must be invoked to activate options whose OptionStatus is ‘RequiresIndexDocuments`.
1731 1732 1733 1734 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1731 def index_documents(params = {}, = {}) req = build_request(:index_documents, params) req.send_request() end |
#list_domain_names(params = {}) ⇒ Types::ListDomainNamesResponse
Lists all search domains owned by an account.
1749 1750 1751 1752 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1749 def list_domain_names(params = {}, = {}) req = build_request(:list_domain_names, params) req.send_request() end |
#update_availability_options(params = {}) ⇒ Types::UpdateAvailabilityOptionsResponse
Configures the availability options for a domain. Enabling the Multi-AZ option expands an Amazon CloudSearch domain to an additional Availability Zone in the same Region to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ option can take about half an hour to become active. For more information, see
- Configuring Availability Options][1
-
in the *Amazon CloudSearch
Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html
1800 1801 1802 1803 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1800 def (params = {}, = {}) req = build_request(:update_availability_options, params) req.send_request() end |
#update_domain_endpoint_options(params = {}) ⇒ Types::UpdateDomainEndpointOptionsResponse
Updates the domain’s endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see [Configuring Domain Endpoint Options] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html
1849 1850 1851 1852 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1849 def (params = {}, = {}) req = build_request(:update_domain_endpoint_options, params) req.send_request() end |
#update_scaling_parameters(params = {}) ⇒ Types::UpdateScalingParametersResponse
Configures scaling parameters for a domain. A domain’s scaling parameters specify the desired search instance type and replication count. Amazon CloudSearch will still automatically scale your domain based on the volume of data and traffic, but not below the desired instance type and replication count. If the Multi-AZ option is enabled, these values control the resources used per Availability Zone. For more information, see [Configuring Scaling Options] in the *Amazon CloudSearch Developer Guide*.
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html
1905 1906 1907 1908 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1905 def update_scaling_parameters(params = {}, = {}) req = build_request(:update_scaling_parameters, params) req.send_request() end |
#update_service_access_policies(params = {}) ⇒ Types::UpdateServiceAccessPoliciesResponse
Configures the access rules that control access to the domain’s document and search endpoints. For more information, see [ Configuring Access for an Amazon CloudSearch Domain].
[1]: docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html
1950 1951 1952 1953 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1950 def update_service_access_policies(params = {}, = {}) req = build_request(:update_service_access_policies, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1979 1980 1981 |
# File 'lib/aws-sdk-cloudsearch/client.rb', line 1979 def waiter_names [] end |