domains
Creates, updates, deletes, gets or lists a domains resource.
Overview
| Name | domains |
| Type | Resource |
| Id | aws.cloudsearch.domains |
Fields
The following fields are returned by SELECT queries:
- describe_domains
| Name | Datatype | Description |
|---|---|---|
arn | string | The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information. |
created | boolean | True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete. |
deleted | boolean | True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete. |
doc_service | string | The service endpoint for updating documents in a search domain. |
domain_id | string | An internally generated unique identifier for a domain. |
domain_name | string | A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen). |
limits | string | |
processing | boolean | True if processing is being done to activate the current domain configuration. |
requires_index_documents | boolean | True if IndexDocuments needs to be called to activate the current domain configuration. |
search_instance_count | integer | The number of search instances that are available to process search requests. |
search_instance_type | string | The instance type that is being used to process search requests. |
search_partition_count | integer | The number of partitions across which the search index is spread. |
search_service | string | The service endpoint for requesting search results from a search domain. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_domains | select | region | DomainNames | 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. |
create_domain | insert | DomainName, region | Creates a new search domain. For more information, see Creating a Search Domain in the Amazon CloudSearch Developer Guide. | |
delete_domain | delete | DomainName, region | 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 in the Amazon CloudSearch Developer Guide. | |
define_analysis_scheme | exec | DomainName, AnalysisScheme, region | 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. | |
define_expression | exec | DomainName, Expression, region | 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. | |
define_index_field | exec | DomainName, IndexField, region | 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 in the Amazon CloudSearch Developer Guide. | |
define_suggester | exec | DomainName, Suggester, region | 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. | |
index_documents | exec | DomainName, region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
AnalysisScheme | object | |
DomainName | string | |
Expression | object | |
IndexField | object | The index field and field options you want to configure. |
Suggester | object | |
region | string | AWS region (default: us-east-1) |
DomainNames | array | The names of the domains you want to include in the response. |
SELECT examples
- describe_domains
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.
SELECT
arn,
created,
deleted,
doc_service,
domain_id,
domain_name,
limits,
processing,
requires_index_documents,
search_instance_count,
search_instance_type,
search_partition_count,
search_service
FROM aws.cloudsearch.domains
WHERE region = '{{ region }}' -- required
AND DomainNames = '{{ DomainNames }}'
;
INSERT examples
- create_domain
- Manifest
Creates a new search domain. For more information, see Creating a Search Domain in the Amazon CloudSearch Developer Guide.
INSERT INTO aws.cloudsearch.domains (
DomainName,
region
)
SELECT
'{{ DomainName }}',
'{{ region }}'
RETURNING
arn,
created,
deleted,
doc_service,
domain_id,
domain_name,
limits,
processing,
requires_index_documents,
search_instance_count,
search_instance_type,
search_partition_count,
search_service
;
# Description fields are for documentation purposes
- name: domains
props:
- name: DomainName
value: "{{ DomainName }}"
description: Required parameter for the domains resource.
- name: region
value: "{{ region }}"
description: Required parameter for the domains resource.
DELETE examples
- delete_domain
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 in the Amazon CloudSearch Developer Guide.
DELETE FROM aws.cloudsearch.domains
WHERE DomainName = '{{ DomainName }}' --required
AND region = '{{ region }}' --required
;
Lifecycle Methods
- define_analysis_scheme
- define_expression
- define_index_field
- define_suggester
- index_documents
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.
EXEC aws.cloudsearch.domains.define_analysis_scheme
@DomainName='{{ DomainName }}' --required,
@AnalysisScheme='{{ AnalysisScheme }}' --required,
@region='{{ region }}' --required
;
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.
EXEC aws.cloudsearch.domains.define_expression
@DomainName='{{ DomainName }}' --required,
@Expression='{{ Expression }}' --required,
@region='{{ region }}' --required
;
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 in the Amazon CloudSearch Developer Guide.
EXEC aws.cloudsearch.domains.define_index_field
@DomainName='{{ DomainName }}' --required,
@IndexField='{{ IndexField }}' --required,
@region='{{ region }}' --required
;
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.
EXEC aws.cloudsearch.domains.define_suggester
@DomainName='{{ DomainName }}' --required,
@Suggester='{{ Suggester }}' --required,
@region='{{ region }}' --required
;
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.
EXEC aws.cloudsearch.domains.index_documents
@DomainName='{{ DomainName }}' --required,
@region='{{ region }}' --required
;