1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package cloudsearch
4
5import (
6	"time"
7
8	"github.com/aws/aws-sdk-go/aws"
9	"github.com/aws/aws-sdk-go/aws/awsutil"
10	"github.com/aws/aws-sdk-go/aws/request"
11)
12
13const opBuildSuggesters = "BuildSuggesters"
14
15// BuildSuggestersRequest generates a "aws/request.Request" representing the
16// client's request for the BuildSuggesters operation. The "output" return
17// value will be populated with the request's response once the request completes
18// successfuly.
19//
20// Use "Send" method on the returned Request to send the API call to the service.
21// the "output" return value is not valid until after Send returns without error.
22//
23// See BuildSuggesters for more information on using the BuildSuggesters
24// API call, and error handling.
25//
26// This method is useful when you want to inject custom logic or configuration
27// into the SDK's request lifecycle. Such as custom headers, or retry logic.
28//
29//
30//    // Example sending a request using the BuildSuggestersRequest method.
31//    req, resp := client.BuildSuggestersRequest(params)
32//
33//    err := req.Send()
34//    if err == nil { // resp is now filled
35//        fmt.Println(resp)
36//    }
37func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req *request.Request, output *BuildSuggestersOutput) {
38	op := &request.Operation{
39		Name:       opBuildSuggesters,
40		HTTPMethod: "POST",
41		HTTPPath:   "/",
42	}
43
44	if input == nil {
45		input = &BuildSuggestersInput{}
46	}
47
48	output = &BuildSuggestersOutput{}
49	req = c.newRequest(op, input, output)
50	return
51}
52
53// BuildSuggesters API operation for Amazon CloudSearch.
54//
55// Indexes the search suggestions. For more information, see Configuring Suggesters
56// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters)
57// in the Amazon CloudSearch Developer Guide.
58//
59// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
60// with awserr.Error's Code and Message methods to get detailed information about
61// the error.
62//
63// See the AWS API reference guide for Amazon CloudSearch's
64// API operation BuildSuggesters for usage and error information.
65//
66// Returned Error Codes:
67//   * ErrCodeBaseException "BaseException"
68//   An error occurred while processing the request.
69//
70//   * ErrCodeInternalException "InternalException"
71//   An internal error occurred while processing the request. If this problem
72//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
73//
74//   * ErrCodeResourceNotFoundException "ResourceNotFound"
75//   The request was rejected because it attempted to reference a resource that
76//   does not exist.
77//
78func (c *CloudSearch) BuildSuggesters(input *BuildSuggestersInput) (*BuildSuggestersOutput, error) {
79	req, out := c.BuildSuggestersRequest(input)
80	return out, req.Send()
81}
82
83// BuildSuggestersWithContext is the same as BuildSuggesters with the addition of
84// the ability to pass a context and additional request options.
85//
86// See BuildSuggesters for details on how to use this API operation.
87//
88// The context must be non-nil and will be used for request cancellation. If
89// the context is nil a panic will occur. In the future the SDK may create
90// sub-contexts for http.Requests. See https://golang.org/pkg/context/
91// for more information on using Contexts.
92func (c *CloudSearch) BuildSuggestersWithContext(ctx aws.Context, input *BuildSuggestersInput, opts ...request.Option) (*BuildSuggestersOutput, error) {
93	req, out := c.BuildSuggestersRequest(input)
94	req.SetContext(ctx)
95	req.ApplyOptions(opts...)
96	return out, req.Send()
97}
98
99const opCreateDomain = "CreateDomain"
100
101// CreateDomainRequest generates a "aws/request.Request" representing the
102// client's request for the CreateDomain operation. The "output" return
103// value will be populated with the request's response once the request completes
104// successfuly.
105//
106// Use "Send" method on the returned Request to send the API call to the service.
107// the "output" return value is not valid until after Send returns without error.
108//
109// See CreateDomain for more information on using the CreateDomain
110// API call, and error handling.
111//
112// This method is useful when you want to inject custom logic or configuration
113// into the SDK's request lifecycle. Such as custom headers, or retry logic.
114//
115//
116//    // Example sending a request using the CreateDomainRequest method.
117//    req, resp := client.CreateDomainRequest(params)
118//
119//    err := req.Send()
120//    if err == nil { // resp is now filled
121//        fmt.Println(resp)
122//    }
123func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) {
124	op := &request.Operation{
125		Name:       opCreateDomain,
126		HTTPMethod: "POST",
127		HTTPPath:   "/",
128	}
129
130	if input == nil {
131		input = &CreateDomainInput{}
132	}
133
134	output = &CreateDomainOutput{}
135	req = c.newRequest(op, input, output)
136	return
137}
138
139// CreateDomain API operation for Amazon CloudSearch.
140//
141// Creates a new search domain. For more information, see Creating a Search
142// Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html)
143// in the Amazon CloudSearch Developer Guide.
144//
145// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
146// with awserr.Error's Code and Message methods to get detailed information about
147// the error.
148//
149// See the AWS API reference guide for Amazon CloudSearch's
150// API operation CreateDomain for usage and error information.
151//
152// Returned Error Codes:
153//   * ErrCodeBaseException "BaseException"
154//   An error occurred while processing the request.
155//
156//   * ErrCodeInternalException "InternalException"
157//   An internal error occurred while processing the request. If this problem
158//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
159//
160//   * ErrCodeLimitExceededException "LimitExceeded"
161//   The request was rejected because a resource limit has already been met.
162//
163func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) {
164	req, out := c.CreateDomainRequest(input)
165	return out, req.Send()
166}
167
168// CreateDomainWithContext is the same as CreateDomain with the addition of
169// the ability to pass a context and additional request options.
170//
171// See CreateDomain for details on how to use this API operation.
172//
173// The context must be non-nil and will be used for request cancellation. If
174// the context is nil a panic will occur. In the future the SDK may create
175// sub-contexts for http.Requests. See https://golang.org/pkg/context/
176// for more information on using Contexts.
177func (c *CloudSearch) CreateDomainWithContext(ctx aws.Context, input *CreateDomainInput, opts ...request.Option) (*CreateDomainOutput, error) {
178	req, out := c.CreateDomainRequest(input)
179	req.SetContext(ctx)
180	req.ApplyOptions(opts...)
181	return out, req.Send()
182}
183
184const opDefineAnalysisScheme = "DefineAnalysisScheme"
185
186// DefineAnalysisSchemeRequest generates a "aws/request.Request" representing the
187// client's request for the DefineAnalysisScheme operation. The "output" return
188// value will be populated with the request's response once the request completes
189// successfuly.
190//
191// Use "Send" method on the returned Request to send the API call to the service.
192// the "output" return value is not valid until after Send returns without error.
193//
194// See DefineAnalysisScheme for more information on using the DefineAnalysisScheme
195// API call, and error handling.
196//
197// This method is useful when you want to inject custom logic or configuration
198// into the SDK's request lifecycle. Such as custom headers, or retry logic.
199//
200//
201//    // Example sending a request using the DefineAnalysisSchemeRequest method.
202//    req, resp := client.DefineAnalysisSchemeRequest(params)
203//
204//    err := req.Send()
205//    if err == nil { // resp is now filled
206//        fmt.Println(resp)
207//    }
208func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInput) (req *request.Request, output *DefineAnalysisSchemeOutput) {
209	op := &request.Operation{
210		Name:       opDefineAnalysisScheme,
211		HTTPMethod: "POST",
212		HTTPPath:   "/",
213	}
214
215	if input == nil {
216		input = &DefineAnalysisSchemeInput{}
217	}
218
219	output = &DefineAnalysisSchemeOutput{}
220	req = c.newRequest(op, input, output)
221	return
222}
223
224// DefineAnalysisScheme API operation for Amazon CloudSearch.
225//
226// Configures an analysis scheme that can be applied to a text or text-array
227// field to define language-specific text processing options. For more information,
228// see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html)
229// in the Amazon CloudSearch Developer Guide.
230//
231// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
232// with awserr.Error's Code and Message methods to get detailed information about
233// the error.
234//
235// See the AWS API reference guide for Amazon CloudSearch's
236// API operation DefineAnalysisScheme for usage and error information.
237//
238// Returned Error Codes:
239//   * ErrCodeBaseException "BaseException"
240//   An error occurred while processing the request.
241//
242//   * ErrCodeInternalException "InternalException"
243//   An internal error occurred while processing the request. If this problem
244//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
245//
246//   * ErrCodeLimitExceededException "LimitExceeded"
247//   The request was rejected because a resource limit has already been met.
248//
249//   * ErrCodeInvalidTypeException "InvalidType"
250//   The request was rejected because it specified an invalid type definition.
251//
252//   * ErrCodeResourceNotFoundException "ResourceNotFound"
253//   The request was rejected because it attempted to reference a resource that
254//   does not exist.
255//
256func (c *CloudSearch) DefineAnalysisScheme(input *DefineAnalysisSchemeInput) (*DefineAnalysisSchemeOutput, error) {
257	req, out := c.DefineAnalysisSchemeRequest(input)
258	return out, req.Send()
259}
260
261// DefineAnalysisSchemeWithContext is the same as DefineAnalysisScheme with the addition of
262// the ability to pass a context and additional request options.
263//
264// See DefineAnalysisScheme for details on how to use this API operation.
265//
266// The context must be non-nil and will be used for request cancellation. If
267// the context is nil a panic will occur. In the future the SDK may create
268// sub-contexts for http.Requests. See https://golang.org/pkg/context/
269// for more information on using Contexts.
270func (c *CloudSearch) DefineAnalysisSchemeWithContext(ctx aws.Context, input *DefineAnalysisSchemeInput, opts ...request.Option) (*DefineAnalysisSchemeOutput, error) {
271	req, out := c.DefineAnalysisSchemeRequest(input)
272	req.SetContext(ctx)
273	req.ApplyOptions(opts...)
274	return out, req.Send()
275}
276
277const opDefineExpression = "DefineExpression"
278
279// DefineExpressionRequest generates a "aws/request.Request" representing the
280// client's request for the DefineExpression operation. The "output" return
281// value will be populated with the request's response once the request completes
282// successfuly.
283//
284// Use "Send" method on the returned Request to send the API call to the service.
285// the "output" return value is not valid until after Send returns without error.
286//
287// See DefineExpression for more information on using the DefineExpression
288// API call, and error handling.
289//
290// This method is useful when you want to inject custom logic or configuration
291// into the SDK's request lifecycle. Such as custom headers, or retry logic.
292//
293//
294//    // Example sending a request using the DefineExpressionRequest method.
295//    req, resp := client.DefineExpressionRequest(params)
296//
297//    err := req.Send()
298//    if err == nil { // resp is now filled
299//        fmt.Println(resp)
300//    }
301func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req *request.Request, output *DefineExpressionOutput) {
302	op := &request.Operation{
303		Name:       opDefineExpression,
304		HTTPMethod: "POST",
305		HTTPPath:   "/",
306	}
307
308	if input == nil {
309		input = &DefineExpressionInput{}
310	}
311
312	output = &DefineExpressionOutput{}
313	req = c.newRequest(op, input, output)
314	return
315}
316
317// DefineExpression API operation for Amazon CloudSearch.
318//
319// Configures an Expression for the search domain. Used to create new expressions
320// and modify existing ones. If the expression exists, the new configuration
321// replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
322// in the Amazon CloudSearch Developer Guide.
323//
324// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
325// with awserr.Error's Code and Message methods to get detailed information about
326// the error.
327//
328// See the AWS API reference guide for Amazon CloudSearch's
329// API operation DefineExpression for usage and error information.
330//
331// Returned Error Codes:
332//   * ErrCodeBaseException "BaseException"
333//   An error occurred while processing the request.
334//
335//   * ErrCodeInternalException "InternalException"
336//   An internal error occurred while processing the request. If this problem
337//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
338//
339//   * ErrCodeLimitExceededException "LimitExceeded"
340//   The request was rejected because a resource limit has already been met.
341//
342//   * ErrCodeInvalidTypeException "InvalidType"
343//   The request was rejected because it specified an invalid type definition.
344//
345//   * ErrCodeResourceNotFoundException "ResourceNotFound"
346//   The request was rejected because it attempted to reference a resource that
347//   does not exist.
348//
349func (c *CloudSearch) DefineExpression(input *DefineExpressionInput) (*DefineExpressionOutput, error) {
350	req, out := c.DefineExpressionRequest(input)
351	return out, req.Send()
352}
353
354// DefineExpressionWithContext is the same as DefineExpression with the addition of
355// the ability to pass a context and additional request options.
356//
357// See DefineExpression for details on how to use this API operation.
358//
359// The context must be non-nil and will be used for request cancellation. If
360// the context is nil a panic will occur. In the future the SDK may create
361// sub-contexts for http.Requests. See https://golang.org/pkg/context/
362// for more information on using Contexts.
363func (c *CloudSearch) DefineExpressionWithContext(ctx aws.Context, input *DefineExpressionInput, opts ...request.Option) (*DefineExpressionOutput, error) {
364	req, out := c.DefineExpressionRequest(input)
365	req.SetContext(ctx)
366	req.ApplyOptions(opts...)
367	return out, req.Send()
368}
369
370const opDefineIndexField = "DefineIndexField"
371
372// DefineIndexFieldRequest generates a "aws/request.Request" representing the
373// client's request for the DefineIndexField operation. The "output" return
374// value will be populated with the request's response once the request completes
375// successfuly.
376//
377// Use "Send" method on the returned Request to send the API call to the service.
378// the "output" return value is not valid until after Send returns without error.
379//
380// See DefineIndexField for more information on using the DefineIndexField
381// API call, and error handling.
382//
383// This method is useful when you want to inject custom logic or configuration
384// into the SDK's request lifecycle. Such as custom headers, or retry logic.
385//
386//
387//    // Example sending a request using the DefineIndexFieldRequest method.
388//    req, resp := client.DefineIndexFieldRequest(params)
389//
390//    err := req.Send()
391//    if err == nil { // resp is now filled
392//        fmt.Println(resp)
393//    }
394func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req *request.Request, output *DefineIndexFieldOutput) {
395	op := &request.Operation{
396		Name:       opDefineIndexField,
397		HTTPMethod: "POST",
398		HTTPPath:   "/",
399	}
400
401	if input == nil {
402		input = &DefineIndexFieldInput{}
403	}
404
405	output = &DefineIndexFieldOutput{}
406	req = c.newRequest(op, input, output)
407	return
408}
409
410// DefineIndexField API operation for Amazon CloudSearch.
411//
412// Configures an IndexField for the search domain. Used to create new fields
413// and modify existing ones. You must specify the name of the domain you are
414// configuring and an index field configuration. The index field configuration
415// specifies a unique name, the index field type, and the options you want to
416// configure for the field. The options you can specify depend on the IndexFieldType.
417// If the field exists, the new configuration replaces the old one. For more
418// information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
419// in the Amazon CloudSearch Developer Guide.
420//
421// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
422// with awserr.Error's Code and Message methods to get detailed information about
423// the error.
424//
425// See the AWS API reference guide for Amazon CloudSearch's
426// API operation DefineIndexField for usage and error information.
427//
428// Returned Error Codes:
429//   * ErrCodeBaseException "BaseException"
430//   An error occurred while processing the request.
431//
432//   * ErrCodeInternalException "InternalException"
433//   An internal error occurred while processing the request. If this problem
434//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
435//
436//   * ErrCodeLimitExceededException "LimitExceeded"
437//   The request was rejected because a resource limit has already been met.
438//
439//   * ErrCodeInvalidTypeException "InvalidType"
440//   The request was rejected because it specified an invalid type definition.
441//
442//   * ErrCodeResourceNotFoundException "ResourceNotFound"
443//   The request was rejected because it attempted to reference a resource that
444//   does not exist.
445//
446func (c *CloudSearch) DefineIndexField(input *DefineIndexFieldInput) (*DefineIndexFieldOutput, error) {
447	req, out := c.DefineIndexFieldRequest(input)
448	return out, req.Send()
449}
450
451// DefineIndexFieldWithContext is the same as DefineIndexField with the addition of
452// the ability to pass a context and additional request options.
453//
454// See DefineIndexField for details on how to use this API operation.
455//
456// The context must be non-nil and will be used for request cancellation. If
457// the context is nil a panic will occur. In the future the SDK may create
458// sub-contexts for http.Requests. See https://golang.org/pkg/context/
459// for more information on using Contexts.
460func (c *CloudSearch) DefineIndexFieldWithContext(ctx aws.Context, input *DefineIndexFieldInput, opts ...request.Option) (*DefineIndexFieldOutput, error) {
461	req, out := c.DefineIndexFieldRequest(input)
462	req.SetContext(ctx)
463	req.ApplyOptions(opts...)
464	return out, req.Send()
465}
466
467const opDefineSuggester = "DefineSuggester"
468
469// DefineSuggesterRequest generates a "aws/request.Request" representing the
470// client's request for the DefineSuggester operation. The "output" return
471// value will be populated with the request's response once the request completes
472// successfuly.
473//
474// Use "Send" method on the returned Request to send the API call to the service.
475// the "output" return value is not valid until after Send returns without error.
476//
477// See DefineSuggester for more information on using the DefineSuggester
478// API call, and error handling.
479//
480// This method is useful when you want to inject custom logic or configuration
481// into the SDK's request lifecycle. Such as custom headers, or retry logic.
482//
483//
484//    // Example sending a request using the DefineSuggesterRequest method.
485//    req, resp := client.DefineSuggesterRequest(params)
486//
487//    err := req.Send()
488//    if err == nil { // resp is now filled
489//        fmt.Println(resp)
490//    }
491func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req *request.Request, output *DefineSuggesterOutput) {
492	op := &request.Operation{
493		Name:       opDefineSuggester,
494		HTTPMethod: "POST",
495		HTTPPath:   "/",
496	}
497
498	if input == nil {
499		input = &DefineSuggesterInput{}
500	}
501
502	output = &DefineSuggesterOutput{}
503	req = c.newRequest(op, input, output)
504	return
505}
506
507// DefineSuggester API operation for Amazon CloudSearch.
508//
509// Configures a suggester for a domain. A suggester enables you to display possible
510// matches before users finish typing their queries. When you configure a suggester,
511// you must specify the name of the text field you want to search for possible
512// matches and a unique name for the suggester. For more information, see Getting
513// Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html)
514// in the Amazon CloudSearch Developer Guide.
515//
516// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
517// with awserr.Error's Code and Message methods to get detailed information about
518// the error.
519//
520// See the AWS API reference guide for Amazon CloudSearch's
521// API operation DefineSuggester for usage and error information.
522//
523// Returned Error Codes:
524//   * ErrCodeBaseException "BaseException"
525//   An error occurred while processing the request.
526//
527//   * ErrCodeInternalException "InternalException"
528//   An internal error occurred while processing the request. If this problem
529//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
530//
531//   * ErrCodeLimitExceededException "LimitExceeded"
532//   The request was rejected because a resource limit has already been met.
533//
534//   * ErrCodeInvalidTypeException "InvalidType"
535//   The request was rejected because it specified an invalid type definition.
536//
537//   * ErrCodeResourceNotFoundException "ResourceNotFound"
538//   The request was rejected because it attempted to reference a resource that
539//   does not exist.
540//
541func (c *CloudSearch) DefineSuggester(input *DefineSuggesterInput) (*DefineSuggesterOutput, error) {
542	req, out := c.DefineSuggesterRequest(input)
543	return out, req.Send()
544}
545
546// DefineSuggesterWithContext is the same as DefineSuggester with the addition of
547// the ability to pass a context and additional request options.
548//
549// See DefineSuggester for details on how to use this API operation.
550//
551// The context must be non-nil and will be used for request cancellation. If
552// the context is nil a panic will occur. In the future the SDK may create
553// sub-contexts for http.Requests. See https://golang.org/pkg/context/
554// for more information on using Contexts.
555func (c *CloudSearch) DefineSuggesterWithContext(ctx aws.Context, input *DefineSuggesterInput, opts ...request.Option) (*DefineSuggesterOutput, error) {
556	req, out := c.DefineSuggesterRequest(input)
557	req.SetContext(ctx)
558	req.ApplyOptions(opts...)
559	return out, req.Send()
560}
561
562const opDeleteAnalysisScheme = "DeleteAnalysisScheme"
563
564// DeleteAnalysisSchemeRequest generates a "aws/request.Request" representing the
565// client's request for the DeleteAnalysisScheme operation. The "output" return
566// value will be populated with the request's response once the request completes
567// successfuly.
568//
569// Use "Send" method on the returned Request to send the API call to the service.
570// the "output" return value is not valid until after Send returns without error.
571//
572// See DeleteAnalysisScheme for more information on using the DeleteAnalysisScheme
573// API call, and error handling.
574//
575// This method is useful when you want to inject custom logic or configuration
576// into the SDK's request lifecycle. Such as custom headers, or retry logic.
577//
578//
579//    // Example sending a request using the DeleteAnalysisSchemeRequest method.
580//    req, resp := client.DeleteAnalysisSchemeRequest(params)
581//
582//    err := req.Send()
583//    if err == nil { // resp is now filled
584//        fmt.Println(resp)
585//    }
586func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInput) (req *request.Request, output *DeleteAnalysisSchemeOutput) {
587	op := &request.Operation{
588		Name:       opDeleteAnalysisScheme,
589		HTTPMethod: "POST",
590		HTTPPath:   "/",
591	}
592
593	if input == nil {
594		input = &DeleteAnalysisSchemeInput{}
595	}
596
597	output = &DeleteAnalysisSchemeOutput{}
598	req = c.newRequest(op, input, output)
599	return
600}
601
602// DeleteAnalysisScheme API operation for Amazon CloudSearch.
603//
604// Deletes an analysis scheme. For more information, see Configuring Analysis
605// Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html)
606// in the Amazon CloudSearch Developer Guide.
607//
608// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
609// with awserr.Error's Code and Message methods to get detailed information about
610// the error.
611//
612// See the AWS API reference guide for Amazon CloudSearch's
613// API operation DeleteAnalysisScheme for usage and error information.
614//
615// Returned Error Codes:
616//   * ErrCodeBaseException "BaseException"
617//   An error occurred while processing the request.
618//
619//   * ErrCodeInternalException "InternalException"
620//   An internal error occurred while processing the request. If this problem
621//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
622//
623//   * ErrCodeInvalidTypeException "InvalidType"
624//   The request was rejected because it specified an invalid type definition.
625//
626//   * ErrCodeResourceNotFoundException "ResourceNotFound"
627//   The request was rejected because it attempted to reference a resource that
628//   does not exist.
629//
630func (c *CloudSearch) DeleteAnalysisScheme(input *DeleteAnalysisSchemeInput) (*DeleteAnalysisSchemeOutput, error) {
631	req, out := c.DeleteAnalysisSchemeRequest(input)
632	return out, req.Send()
633}
634
635// DeleteAnalysisSchemeWithContext is the same as DeleteAnalysisScheme with the addition of
636// the ability to pass a context and additional request options.
637//
638// See DeleteAnalysisScheme for details on how to use this API operation.
639//
640// The context must be non-nil and will be used for request cancellation. If
641// the context is nil a panic will occur. In the future the SDK may create
642// sub-contexts for http.Requests. See https://golang.org/pkg/context/
643// for more information on using Contexts.
644func (c *CloudSearch) DeleteAnalysisSchemeWithContext(ctx aws.Context, input *DeleteAnalysisSchemeInput, opts ...request.Option) (*DeleteAnalysisSchemeOutput, error) {
645	req, out := c.DeleteAnalysisSchemeRequest(input)
646	req.SetContext(ctx)
647	req.ApplyOptions(opts...)
648	return out, req.Send()
649}
650
651const opDeleteDomain = "DeleteDomain"
652
653// DeleteDomainRequest generates a "aws/request.Request" representing the
654// client's request for the DeleteDomain operation. The "output" return
655// value will be populated with the request's response once the request completes
656// successfuly.
657//
658// Use "Send" method on the returned Request to send the API call to the service.
659// the "output" return value is not valid until after Send returns without error.
660//
661// See DeleteDomain for more information on using the DeleteDomain
662// API call, and error handling.
663//
664// This method is useful when you want to inject custom logic or configuration
665// into the SDK's request lifecycle. Such as custom headers, or retry logic.
666//
667//
668//    // Example sending a request using the DeleteDomainRequest method.
669//    req, resp := client.DeleteDomainRequest(params)
670//
671//    err := req.Send()
672//    if err == nil { // resp is now filled
673//        fmt.Println(resp)
674//    }
675func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) {
676	op := &request.Operation{
677		Name:       opDeleteDomain,
678		HTTPMethod: "POST",
679		HTTPPath:   "/",
680	}
681
682	if input == nil {
683		input = &DeleteDomainInput{}
684	}
685
686	output = &DeleteDomainOutput{}
687	req = c.newRequest(op, input, output)
688	return
689}
690
691// DeleteDomain API operation for Amazon CloudSearch.
692//
693// Permanently deletes a search domain and all of its data. Once a domain has
694// been deleted, it cannot be recovered. For more information, see Deleting
695// a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html)
696// in the Amazon CloudSearch Developer Guide.
697//
698// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
699// with awserr.Error's Code and Message methods to get detailed information about
700// the error.
701//
702// See the AWS API reference guide for Amazon CloudSearch's
703// API operation DeleteDomain for usage and error information.
704//
705// Returned Error Codes:
706//   * ErrCodeBaseException "BaseException"
707//   An error occurred while processing the request.
708//
709//   * ErrCodeInternalException "InternalException"
710//   An internal error occurred while processing the request. If this problem
711//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
712//
713func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) {
714	req, out := c.DeleteDomainRequest(input)
715	return out, req.Send()
716}
717
718// DeleteDomainWithContext is the same as DeleteDomain with the addition of
719// the ability to pass a context and additional request options.
720//
721// See DeleteDomain for details on how to use this API operation.
722//
723// The context must be non-nil and will be used for request cancellation. If
724// the context is nil a panic will occur. In the future the SDK may create
725// sub-contexts for http.Requests. See https://golang.org/pkg/context/
726// for more information on using Contexts.
727func (c *CloudSearch) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error) {
728	req, out := c.DeleteDomainRequest(input)
729	req.SetContext(ctx)
730	req.ApplyOptions(opts...)
731	return out, req.Send()
732}
733
734const opDeleteExpression = "DeleteExpression"
735
736// DeleteExpressionRequest generates a "aws/request.Request" representing the
737// client's request for the DeleteExpression operation. The "output" return
738// value will be populated with the request's response once the request completes
739// successfuly.
740//
741// Use "Send" method on the returned Request to send the API call to the service.
742// the "output" return value is not valid until after Send returns without error.
743//
744// See DeleteExpression for more information on using the DeleteExpression
745// API call, and error handling.
746//
747// This method is useful when you want to inject custom logic or configuration
748// into the SDK's request lifecycle. Such as custom headers, or retry logic.
749//
750//
751//    // Example sending a request using the DeleteExpressionRequest method.
752//    req, resp := client.DeleteExpressionRequest(params)
753//
754//    err := req.Send()
755//    if err == nil { // resp is now filled
756//        fmt.Println(resp)
757//    }
758func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req *request.Request, output *DeleteExpressionOutput) {
759	op := &request.Operation{
760		Name:       opDeleteExpression,
761		HTTPMethod: "POST",
762		HTTPPath:   "/",
763	}
764
765	if input == nil {
766		input = &DeleteExpressionInput{}
767	}
768
769	output = &DeleteExpressionOutput{}
770	req = c.newRequest(op, input, output)
771	return
772}
773
774// DeleteExpression API operation for Amazon CloudSearch.
775//
776// Removes an Expression from the search domain. For more information, see Configuring
777// Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
778// in the Amazon CloudSearch Developer Guide.
779//
780// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
781// with awserr.Error's Code and Message methods to get detailed information about
782// the error.
783//
784// See the AWS API reference guide for Amazon CloudSearch's
785// API operation DeleteExpression for usage and error information.
786//
787// Returned Error Codes:
788//   * ErrCodeBaseException "BaseException"
789//   An error occurred while processing the request.
790//
791//   * ErrCodeInternalException "InternalException"
792//   An internal error occurred while processing the request. If this problem
793//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
794//
795//   * ErrCodeInvalidTypeException "InvalidType"
796//   The request was rejected because it specified an invalid type definition.
797//
798//   * ErrCodeResourceNotFoundException "ResourceNotFound"
799//   The request was rejected because it attempted to reference a resource that
800//   does not exist.
801//
802func (c *CloudSearch) DeleteExpression(input *DeleteExpressionInput) (*DeleteExpressionOutput, error) {
803	req, out := c.DeleteExpressionRequest(input)
804	return out, req.Send()
805}
806
807// DeleteExpressionWithContext is the same as DeleteExpression with the addition of
808// the ability to pass a context and additional request options.
809//
810// See DeleteExpression for details on how to use this API operation.
811//
812// The context must be non-nil and will be used for request cancellation. If
813// the context is nil a panic will occur. In the future the SDK may create
814// sub-contexts for http.Requests. See https://golang.org/pkg/context/
815// for more information on using Contexts.
816func (c *CloudSearch) DeleteExpressionWithContext(ctx aws.Context, input *DeleteExpressionInput, opts ...request.Option) (*DeleteExpressionOutput, error) {
817	req, out := c.DeleteExpressionRequest(input)
818	req.SetContext(ctx)
819	req.ApplyOptions(opts...)
820	return out, req.Send()
821}
822
823const opDeleteIndexField = "DeleteIndexField"
824
825// DeleteIndexFieldRequest generates a "aws/request.Request" representing the
826// client's request for the DeleteIndexField operation. The "output" return
827// value will be populated with the request's response once the request completes
828// successfuly.
829//
830// Use "Send" method on the returned Request to send the API call to the service.
831// the "output" return value is not valid until after Send returns without error.
832//
833// See DeleteIndexField for more information on using the DeleteIndexField
834// API call, and error handling.
835//
836// This method is useful when you want to inject custom logic or configuration
837// into the SDK's request lifecycle. Such as custom headers, or retry logic.
838//
839//
840//    // Example sending a request using the DeleteIndexFieldRequest method.
841//    req, resp := client.DeleteIndexFieldRequest(params)
842//
843//    err := req.Send()
844//    if err == nil { // resp is now filled
845//        fmt.Println(resp)
846//    }
847func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req *request.Request, output *DeleteIndexFieldOutput) {
848	op := &request.Operation{
849		Name:       opDeleteIndexField,
850		HTTPMethod: "POST",
851		HTTPPath:   "/",
852	}
853
854	if input == nil {
855		input = &DeleteIndexFieldInput{}
856	}
857
858	output = &DeleteIndexFieldOutput{}
859	req = c.newRequest(op, input, output)
860	return
861}
862
863// DeleteIndexField API operation for Amazon CloudSearch.
864//
865// Removes an IndexField from the search domain. For more information, see Configuring
866// Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
867// in the Amazon CloudSearch Developer Guide.
868//
869// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
870// with awserr.Error's Code and Message methods to get detailed information about
871// the error.
872//
873// See the AWS API reference guide for Amazon CloudSearch's
874// API operation DeleteIndexField for usage and error information.
875//
876// Returned Error Codes:
877//   * ErrCodeBaseException "BaseException"
878//   An error occurred while processing the request.
879//
880//   * ErrCodeInternalException "InternalException"
881//   An internal error occurred while processing the request. If this problem
882//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
883//
884//   * ErrCodeInvalidTypeException "InvalidType"
885//   The request was rejected because it specified an invalid type definition.
886//
887//   * ErrCodeResourceNotFoundException "ResourceNotFound"
888//   The request was rejected because it attempted to reference a resource that
889//   does not exist.
890//
891func (c *CloudSearch) DeleteIndexField(input *DeleteIndexFieldInput) (*DeleteIndexFieldOutput, error) {
892	req, out := c.DeleteIndexFieldRequest(input)
893	return out, req.Send()
894}
895
896// DeleteIndexFieldWithContext is the same as DeleteIndexField with the addition of
897// the ability to pass a context and additional request options.
898//
899// See DeleteIndexField for details on how to use this API operation.
900//
901// The context must be non-nil and will be used for request cancellation. If
902// the context is nil a panic will occur. In the future the SDK may create
903// sub-contexts for http.Requests. See https://golang.org/pkg/context/
904// for more information on using Contexts.
905func (c *CloudSearch) DeleteIndexFieldWithContext(ctx aws.Context, input *DeleteIndexFieldInput, opts ...request.Option) (*DeleteIndexFieldOutput, error) {
906	req, out := c.DeleteIndexFieldRequest(input)
907	req.SetContext(ctx)
908	req.ApplyOptions(opts...)
909	return out, req.Send()
910}
911
912const opDeleteSuggester = "DeleteSuggester"
913
914// DeleteSuggesterRequest generates a "aws/request.Request" representing the
915// client's request for the DeleteSuggester operation. The "output" return
916// value will be populated with the request's response once the request completes
917// successfuly.
918//
919// Use "Send" method on the returned Request to send the API call to the service.
920// the "output" return value is not valid until after Send returns without error.
921//
922// See DeleteSuggester for more information on using the DeleteSuggester
923// API call, and error handling.
924//
925// This method is useful when you want to inject custom logic or configuration
926// into the SDK's request lifecycle. Such as custom headers, or retry logic.
927//
928//
929//    // Example sending a request using the DeleteSuggesterRequest method.
930//    req, resp := client.DeleteSuggesterRequest(params)
931//
932//    err := req.Send()
933//    if err == nil { // resp is now filled
934//        fmt.Println(resp)
935//    }
936func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req *request.Request, output *DeleteSuggesterOutput) {
937	op := &request.Operation{
938		Name:       opDeleteSuggester,
939		HTTPMethod: "POST",
940		HTTPPath:   "/",
941	}
942
943	if input == nil {
944		input = &DeleteSuggesterInput{}
945	}
946
947	output = &DeleteSuggesterOutput{}
948	req = c.newRequest(op, input, output)
949	return
950}
951
952// DeleteSuggester API operation for Amazon CloudSearch.
953//
954// Deletes a suggester. For more information, see Getting Search Suggestions
955// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html)
956// in the Amazon CloudSearch Developer Guide.
957//
958// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
959// with awserr.Error's Code and Message methods to get detailed information about
960// the error.
961//
962// See the AWS API reference guide for Amazon CloudSearch's
963// API operation DeleteSuggester for usage and error information.
964//
965// Returned Error Codes:
966//   * ErrCodeBaseException "BaseException"
967//   An error occurred while processing the request.
968//
969//   * ErrCodeInternalException "InternalException"
970//   An internal error occurred while processing the request. If this problem
971//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
972//
973//   * ErrCodeInvalidTypeException "InvalidType"
974//   The request was rejected because it specified an invalid type definition.
975//
976//   * ErrCodeResourceNotFoundException "ResourceNotFound"
977//   The request was rejected because it attempted to reference a resource that
978//   does not exist.
979//
980func (c *CloudSearch) DeleteSuggester(input *DeleteSuggesterInput) (*DeleteSuggesterOutput, error) {
981	req, out := c.DeleteSuggesterRequest(input)
982	return out, req.Send()
983}
984
985// DeleteSuggesterWithContext is the same as DeleteSuggester with the addition of
986// the ability to pass a context and additional request options.
987//
988// See DeleteSuggester for details on how to use this API operation.
989//
990// The context must be non-nil and will be used for request cancellation. If
991// the context is nil a panic will occur. In the future the SDK may create
992// sub-contexts for http.Requests. See https://golang.org/pkg/context/
993// for more information on using Contexts.
994func (c *CloudSearch) DeleteSuggesterWithContext(ctx aws.Context, input *DeleteSuggesterInput, opts ...request.Option) (*DeleteSuggesterOutput, error) {
995	req, out := c.DeleteSuggesterRequest(input)
996	req.SetContext(ctx)
997	req.ApplyOptions(opts...)
998	return out, req.Send()
999}
1000
1001const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes"
1002
1003// DescribeAnalysisSchemesRequest generates a "aws/request.Request" representing the
1004// client's request for the DescribeAnalysisSchemes operation. The "output" return
1005// value will be populated with the request's response once the request completes
1006// successfuly.
1007//
1008// Use "Send" method on the returned Request to send the API call to the service.
1009// the "output" return value is not valid until after Send returns without error.
1010//
1011// See DescribeAnalysisSchemes for more information on using the DescribeAnalysisSchemes
1012// API call, and error handling.
1013//
1014// This method is useful when you want to inject custom logic or configuration
1015// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1016//
1017//
1018//    // Example sending a request using the DescribeAnalysisSchemesRequest method.
1019//    req, resp := client.DescribeAnalysisSchemesRequest(params)
1020//
1021//    err := req.Send()
1022//    if err == nil { // resp is now filled
1023//        fmt.Println(resp)
1024//    }
1025func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSchemesInput) (req *request.Request, output *DescribeAnalysisSchemesOutput) {
1026	op := &request.Operation{
1027		Name:       opDescribeAnalysisSchemes,
1028		HTTPMethod: "POST",
1029		HTTPPath:   "/",
1030	}
1031
1032	if input == nil {
1033		input = &DescribeAnalysisSchemesInput{}
1034	}
1035
1036	output = &DescribeAnalysisSchemesOutput{}
1037	req = c.newRequest(op, input, output)
1038	return
1039}
1040
1041// DescribeAnalysisSchemes API operation for Amazon CloudSearch.
1042//
1043// Gets the analysis schemes configured for a domain. An analysis scheme defines
1044// language-specific text processing options for a text field. Can be limited
1045// to specific analysis schemes by name. By default, shows all analysis schemes
1046// and includes any pending changes to the configuration. Set the Deployed option
1047// to true to show the active configuration and exclude pending changes. For
1048// more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html)
1049// in the Amazon CloudSearch Developer Guide.
1050//
1051// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1052// with awserr.Error's Code and Message methods to get detailed information about
1053// the error.
1054//
1055// See the AWS API reference guide for Amazon CloudSearch's
1056// API operation DescribeAnalysisSchemes for usage and error information.
1057//
1058// Returned Error Codes:
1059//   * ErrCodeBaseException "BaseException"
1060//   An error occurred while processing the request.
1061//
1062//   * ErrCodeInternalException "InternalException"
1063//   An internal error occurred while processing the request. If this problem
1064//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1065//
1066//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1067//   The request was rejected because it attempted to reference a resource that
1068//   does not exist.
1069//
1070func (c *CloudSearch) DescribeAnalysisSchemes(input *DescribeAnalysisSchemesInput) (*DescribeAnalysisSchemesOutput, error) {
1071	req, out := c.DescribeAnalysisSchemesRequest(input)
1072	return out, req.Send()
1073}
1074
1075// DescribeAnalysisSchemesWithContext is the same as DescribeAnalysisSchemes with the addition of
1076// the ability to pass a context and additional request options.
1077//
1078// See DescribeAnalysisSchemes for details on how to use this API operation.
1079//
1080// The context must be non-nil and will be used for request cancellation. If
1081// the context is nil a panic will occur. In the future the SDK may create
1082// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1083// for more information on using Contexts.
1084func (c *CloudSearch) DescribeAnalysisSchemesWithContext(ctx aws.Context, input *DescribeAnalysisSchemesInput, opts ...request.Option) (*DescribeAnalysisSchemesOutput, error) {
1085	req, out := c.DescribeAnalysisSchemesRequest(input)
1086	req.SetContext(ctx)
1087	req.ApplyOptions(opts...)
1088	return out, req.Send()
1089}
1090
1091const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions"
1092
1093// DescribeAvailabilityOptionsRequest generates a "aws/request.Request" representing the
1094// client's request for the DescribeAvailabilityOptions operation. The "output" return
1095// value will be populated with the request's response once the request completes
1096// successfuly.
1097//
1098// Use "Send" method on the returned Request to send the API call to the service.
1099// the "output" return value is not valid until after Send returns without error.
1100//
1101// See DescribeAvailabilityOptions for more information on using the DescribeAvailabilityOptions
1102// API call, and error handling.
1103//
1104// This method is useful when you want to inject custom logic or configuration
1105// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1106//
1107//
1108//    // Example sending a request using the DescribeAvailabilityOptionsRequest method.
1109//    req, resp := client.DescribeAvailabilityOptionsRequest(params)
1110//
1111//    err := req.Send()
1112//    if err == nil { // resp is now filled
1113//        fmt.Println(resp)
1114//    }
1115func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabilityOptionsInput) (req *request.Request, output *DescribeAvailabilityOptionsOutput) {
1116	op := &request.Operation{
1117		Name:       opDescribeAvailabilityOptions,
1118		HTTPMethod: "POST",
1119		HTTPPath:   "/",
1120	}
1121
1122	if input == nil {
1123		input = &DescribeAvailabilityOptionsInput{}
1124	}
1125
1126	output = &DescribeAvailabilityOptionsOutput{}
1127	req = c.newRequest(op, input, output)
1128	return
1129}
1130
1131// DescribeAvailabilityOptions API operation for Amazon CloudSearch.
1132//
1133// Gets the availability options configured for a domain. By default, shows
1134// the configuration with any pending changes. Set the Deployed option to true
1135// to show the active configuration and exclude pending changes. For more information,
1136// see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html)
1137// in the Amazon CloudSearch Developer Guide.
1138//
1139// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1140// with awserr.Error's Code and Message methods to get detailed information about
1141// the error.
1142//
1143// See the AWS API reference guide for Amazon CloudSearch's
1144// API operation DescribeAvailabilityOptions for usage and error information.
1145//
1146// Returned Error Codes:
1147//   * ErrCodeBaseException "BaseException"
1148//   An error occurred while processing the request.
1149//
1150//   * ErrCodeInternalException "InternalException"
1151//   An internal error occurred while processing the request. If this problem
1152//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1153//
1154//   * ErrCodeInvalidTypeException "InvalidType"
1155//   The request was rejected because it specified an invalid type definition.
1156//
1157//   * ErrCodeLimitExceededException "LimitExceeded"
1158//   The request was rejected because a resource limit has already been met.
1159//
1160//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1161//   The request was rejected because it attempted to reference a resource that
1162//   does not exist.
1163//
1164//   * ErrCodeDisabledOperationException "DisabledAction"
1165//   The request was rejected because it attempted an operation which is not enabled.
1166//
1167func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) {
1168	req, out := c.DescribeAvailabilityOptionsRequest(input)
1169	return out, req.Send()
1170}
1171
1172// DescribeAvailabilityOptionsWithContext is the same as DescribeAvailabilityOptions with the addition of
1173// the ability to pass a context and additional request options.
1174//
1175// See DescribeAvailabilityOptions for details on how to use this API operation.
1176//
1177// The context must be non-nil and will be used for request cancellation. If
1178// the context is nil a panic will occur. In the future the SDK may create
1179// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1180// for more information on using Contexts.
1181func (c *CloudSearch) DescribeAvailabilityOptionsWithContext(ctx aws.Context, input *DescribeAvailabilityOptionsInput, opts ...request.Option) (*DescribeAvailabilityOptionsOutput, error) {
1182	req, out := c.DescribeAvailabilityOptionsRequest(input)
1183	req.SetContext(ctx)
1184	req.ApplyOptions(opts...)
1185	return out, req.Send()
1186}
1187
1188const opDescribeDomains = "DescribeDomains"
1189
1190// DescribeDomainsRequest generates a "aws/request.Request" representing the
1191// client's request for the DescribeDomains operation. The "output" return
1192// value will be populated with the request's response once the request completes
1193// successfuly.
1194//
1195// Use "Send" method on the returned Request to send the API call to the service.
1196// the "output" return value is not valid until after Send returns without error.
1197//
1198// See DescribeDomains for more information on using the DescribeDomains
1199// API call, and error handling.
1200//
1201// This method is useful when you want to inject custom logic or configuration
1202// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1203//
1204//
1205//    // Example sending a request using the DescribeDomainsRequest method.
1206//    req, resp := client.DescribeDomainsRequest(params)
1207//
1208//    err := req.Send()
1209//    if err == nil { // resp is now filled
1210//        fmt.Println(resp)
1211//    }
1212func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req *request.Request, output *DescribeDomainsOutput) {
1213	op := &request.Operation{
1214		Name:       opDescribeDomains,
1215		HTTPMethod: "POST",
1216		HTTPPath:   "/",
1217	}
1218
1219	if input == nil {
1220		input = &DescribeDomainsInput{}
1221	}
1222
1223	output = &DescribeDomainsOutput{}
1224	req = c.newRequest(op, input, output)
1225	return
1226}
1227
1228// DescribeDomains API operation for Amazon CloudSearch.
1229//
1230// Gets information about the search domains owned by this account. Can be limited
1231// to specific domains. Shows all domains by default. To get the number of searchable
1232// documents in a domain, use the console or submit a matchall request to your
1233// domain's search endpoint: q=matchall&q.parser=structured&size=0.
1234// For more information, see Getting Information about a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html)
1235// in the Amazon CloudSearch Developer Guide.
1236//
1237// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1238// with awserr.Error's Code and Message methods to get detailed information about
1239// the error.
1240//
1241// See the AWS API reference guide for Amazon CloudSearch's
1242// API operation DescribeDomains for usage and error information.
1243//
1244// Returned Error Codes:
1245//   * ErrCodeBaseException "BaseException"
1246//   An error occurred while processing the request.
1247//
1248//   * ErrCodeInternalException "InternalException"
1249//   An internal error occurred while processing the request. If this problem
1250//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1251//
1252func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) {
1253	req, out := c.DescribeDomainsRequest(input)
1254	return out, req.Send()
1255}
1256
1257// DescribeDomainsWithContext is the same as DescribeDomains with the addition of
1258// the ability to pass a context and additional request options.
1259//
1260// See DescribeDomains for details on how to use this API operation.
1261//
1262// The context must be non-nil and will be used for request cancellation. If
1263// the context is nil a panic will occur. In the future the SDK may create
1264// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1265// for more information on using Contexts.
1266func (c *CloudSearch) DescribeDomainsWithContext(ctx aws.Context, input *DescribeDomainsInput, opts ...request.Option) (*DescribeDomainsOutput, error) {
1267	req, out := c.DescribeDomainsRequest(input)
1268	req.SetContext(ctx)
1269	req.ApplyOptions(opts...)
1270	return out, req.Send()
1271}
1272
1273const opDescribeExpressions = "DescribeExpressions"
1274
1275// DescribeExpressionsRequest generates a "aws/request.Request" representing the
1276// client's request for the DescribeExpressions operation. The "output" return
1277// value will be populated with the request's response once the request completes
1278// successfuly.
1279//
1280// Use "Send" method on the returned Request to send the API call to the service.
1281// the "output" return value is not valid until after Send returns without error.
1282//
1283// See DescribeExpressions for more information on using the DescribeExpressions
1284// API call, and error handling.
1285//
1286// This method is useful when you want to inject custom logic or configuration
1287// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1288//
1289//
1290//    // Example sending a request using the DescribeExpressionsRequest method.
1291//    req, resp := client.DescribeExpressionsRequest(params)
1292//
1293//    err := req.Send()
1294//    if err == nil { // resp is now filled
1295//        fmt.Println(resp)
1296//    }
1297func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput) (req *request.Request, output *DescribeExpressionsOutput) {
1298	op := &request.Operation{
1299		Name:       opDescribeExpressions,
1300		HTTPMethod: "POST",
1301		HTTPPath:   "/",
1302	}
1303
1304	if input == nil {
1305		input = &DescribeExpressionsInput{}
1306	}
1307
1308	output = &DescribeExpressionsOutput{}
1309	req = c.newRequest(op, input, output)
1310	return
1311}
1312
1313// DescribeExpressions API operation for Amazon CloudSearch.
1314//
1315// Gets the expressions configured for the search domain. Can be limited to
1316// specific expressions by name. By default, shows all expressions and includes
1317// any pending changes to the configuration. Set the Deployed option to true
1318// to show the active configuration and exclude pending changes. For more information,
1319// see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
1320// in the Amazon CloudSearch Developer Guide.
1321//
1322// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1323// with awserr.Error's Code and Message methods to get detailed information about
1324// the error.
1325//
1326// See the AWS API reference guide for Amazon CloudSearch's
1327// API operation DescribeExpressions for usage and error information.
1328//
1329// Returned Error Codes:
1330//   * ErrCodeBaseException "BaseException"
1331//   An error occurred while processing the request.
1332//
1333//   * ErrCodeInternalException "InternalException"
1334//   An internal error occurred while processing the request. If this problem
1335//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1336//
1337//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1338//   The request was rejected because it attempted to reference a resource that
1339//   does not exist.
1340//
1341func (c *CloudSearch) DescribeExpressions(input *DescribeExpressionsInput) (*DescribeExpressionsOutput, error) {
1342	req, out := c.DescribeExpressionsRequest(input)
1343	return out, req.Send()
1344}
1345
1346// DescribeExpressionsWithContext is the same as DescribeExpressions with the addition of
1347// the ability to pass a context and additional request options.
1348//
1349// See DescribeExpressions for details on how to use this API operation.
1350//
1351// The context must be non-nil and will be used for request cancellation. If
1352// the context is nil a panic will occur. In the future the SDK may create
1353// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1354// for more information on using Contexts.
1355func (c *CloudSearch) DescribeExpressionsWithContext(ctx aws.Context, input *DescribeExpressionsInput, opts ...request.Option) (*DescribeExpressionsOutput, error) {
1356	req, out := c.DescribeExpressionsRequest(input)
1357	req.SetContext(ctx)
1358	req.ApplyOptions(opts...)
1359	return out, req.Send()
1360}
1361
1362const opDescribeIndexFields = "DescribeIndexFields"
1363
1364// DescribeIndexFieldsRequest generates a "aws/request.Request" representing the
1365// client's request for the DescribeIndexFields operation. The "output" return
1366// value will be populated with the request's response once the request completes
1367// successfuly.
1368//
1369// Use "Send" method on the returned Request to send the API call to the service.
1370// the "output" return value is not valid until after Send returns without error.
1371//
1372// See DescribeIndexFields for more information on using the DescribeIndexFields
1373// API call, and error handling.
1374//
1375// This method is useful when you want to inject custom logic or configuration
1376// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1377//
1378//
1379//    // Example sending a request using the DescribeIndexFieldsRequest method.
1380//    req, resp := client.DescribeIndexFieldsRequest(params)
1381//
1382//    err := req.Send()
1383//    if err == nil { // resp is now filled
1384//        fmt.Println(resp)
1385//    }
1386func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput) (req *request.Request, output *DescribeIndexFieldsOutput) {
1387	op := &request.Operation{
1388		Name:       opDescribeIndexFields,
1389		HTTPMethod: "POST",
1390		HTTPPath:   "/",
1391	}
1392
1393	if input == nil {
1394		input = &DescribeIndexFieldsInput{}
1395	}
1396
1397	output = &DescribeIndexFieldsOutput{}
1398	req = c.newRequest(op, input, output)
1399	return
1400}
1401
1402// DescribeIndexFields API operation for Amazon CloudSearch.
1403//
1404// Gets information about the index fields configured for the search domain.
1405// Can be limited to specific fields by name. By default, shows all fields and
1406// includes any pending changes to the configuration. Set the Deployed option
1407// to true to show the active configuration and exclude pending changes. For
1408// more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html)
1409// in the Amazon CloudSearch Developer Guide.
1410//
1411// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1412// with awserr.Error's Code and Message methods to get detailed information about
1413// the error.
1414//
1415// See the AWS API reference guide for Amazon CloudSearch's
1416// API operation DescribeIndexFields for usage and error information.
1417//
1418// Returned Error Codes:
1419//   * ErrCodeBaseException "BaseException"
1420//   An error occurred while processing the request.
1421//
1422//   * ErrCodeInternalException "InternalException"
1423//   An internal error occurred while processing the request. If this problem
1424//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1425//
1426//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1427//   The request was rejected because it attempted to reference a resource that
1428//   does not exist.
1429//
1430func (c *CloudSearch) DescribeIndexFields(input *DescribeIndexFieldsInput) (*DescribeIndexFieldsOutput, error) {
1431	req, out := c.DescribeIndexFieldsRequest(input)
1432	return out, req.Send()
1433}
1434
1435// DescribeIndexFieldsWithContext is the same as DescribeIndexFields with the addition of
1436// the ability to pass a context and additional request options.
1437//
1438// See DescribeIndexFields for details on how to use this API operation.
1439//
1440// The context must be non-nil and will be used for request cancellation. If
1441// the context is nil a panic will occur. In the future the SDK may create
1442// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1443// for more information on using Contexts.
1444func (c *CloudSearch) DescribeIndexFieldsWithContext(ctx aws.Context, input *DescribeIndexFieldsInput, opts ...request.Option) (*DescribeIndexFieldsOutput, error) {
1445	req, out := c.DescribeIndexFieldsRequest(input)
1446	req.SetContext(ctx)
1447	req.ApplyOptions(opts...)
1448	return out, req.Send()
1449}
1450
1451const opDescribeScalingParameters = "DescribeScalingParameters"
1452
1453// DescribeScalingParametersRequest generates a "aws/request.Request" representing the
1454// client's request for the DescribeScalingParameters operation. The "output" return
1455// value will be populated with the request's response once the request completes
1456// successfuly.
1457//
1458// Use "Send" method on the returned Request to send the API call to the service.
1459// the "output" return value is not valid until after Send returns without error.
1460//
1461// See DescribeScalingParameters for more information on using the DescribeScalingParameters
1462// API call, and error handling.
1463//
1464// This method is useful when you want to inject custom logic or configuration
1465// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1466//
1467//
1468//    // Example sending a request using the DescribeScalingParametersRequest method.
1469//    req, resp := client.DescribeScalingParametersRequest(params)
1470//
1471//    err := req.Send()
1472//    if err == nil { // resp is now filled
1473//        fmt.Println(resp)
1474//    }
1475func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingParametersInput) (req *request.Request, output *DescribeScalingParametersOutput) {
1476	op := &request.Operation{
1477		Name:       opDescribeScalingParameters,
1478		HTTPMethod: "POST",
1479		HTTPPath:   "/",
1480	}
1481
1482	if input == nil {
1483		input = &DescribeScalingParametersInput{}
1484	}
1485
1486	output = &DescribeScalingParametersOutput{}
1487	req = c.newRequest(op, input, output)
1488	return
1489}
1490
1491// DescribeScalingParameters API operation for Amazon CloudSearch.
1492//
1493// Gets the scaling parameters configured for a domain. A domain's scaling parameters
1494// specify the desired search instance type and replication count. For more
1495// information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html)
1496// in the Amazon CloudSearch Developer Guide.
1497//
1498// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1499// with awserr.Error's Code and Message methods to get detailed information about
1500// the error.
1501//
1502// See the AWS API reference guide for Amazon CloudSearch's
1503// API operation DescribeScalingParameters for usage and error information.
1504//
1505// Returned Error Codes:
1506//   * ErrCodeBaseException "BaseException"
1507//   An error occurred while processing the request.
1508//
1509//   * ErrCodeInternalException "InternalException"
1510//   An internal error occurred while processing the request. If this problem
1511//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1512//
1513//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1514//   The request was rejected because it attempted to reference a resource that
1515//   does not exist.
1516//
1517func (c *CloudSearch) DescribeScalingParameters(input *DescribeScalingParametersInput) (*DescribeScalingParametersOutput, error) {
1518	req, out := c.DescribeScalingParametersRequest(input)
1519	return out, req.Send()
1520}
1521
1522// DescribeScalingParametersWithContext is the same as DescribeScalingParameters with the addition of
1523// the ability to pass a context and additional request options.
1524//
1525// See DescribeScalingParameters for details on how to use this API operation.
1526//
1527// The context must be non-nil and will be used for request cancellation. If
1528// the context is nil a panic will occur. In the future the SDK may create
1529// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1530// for more information on using Contexts.
1531func (c *CloudSearch) DescribeScalingParametersWithContext(ctx aws.Context, input *DescribeScalingParametersInput, opts ...request.Option) (*DescribeScalingParametersOutput, error) {
1532	req, out := c.DescribeScalingParametersRequest(input)
1533	req.SetContext(ctx)
1534	req.ApplyOptions(opts...)
1535	return out, req.Send()
1536}
1537
1538const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies"
1539
1540// DescribeServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
1541// client's request for the DescribeServiceAccessPolicies operation. The "output" return
1542// value will be populated with the request's response once the request completes
1543// successfuly.
1544//
1545// Use "Send" method on the returned Request to send the API call to the service.
1546// the "output" return value is not valid until after Send returns without error.
1547//
1548// See DescribeServiceAccessPolicies for more information on using the DescribeServiceAccessPolicies
1549// API call, and error handling.
1550//
1551// This method is useful when you want to inject custom logic or configuration
1552// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1553//
1554//
1555//    // Example sending a request using the DescribeServiceAccessPoliciesRequest method.
1556//    req, resp := client.DescribeServiceAccessPoliciesRequest(params)
1557//
1558//    err := req.Send()
1559//    if err == nil { // resp is now filled
1560//        fmt.Println(resp)
1561//    }
1562func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServiceAccessPoliciesInput) (req *request.Request, output *DescribeServiceAccessPoliciesOutput) {
1563	op := &request.Operation{
1564		Name:       opDescribeServiceAccessPolicies,
1565		HTTPMethod: "POST",
1566		HTTPPath:   "/",
1567	}
1568
1569	if input == nil {
1570		input = &DescribeServiceAccessPoliciesInput{}
1571	}
1572
1573	output = &DescribeServiceAccessPoliciesOutput{}
1574	req = c.newRequest(op, input, output)
1575	return
1576}
1577
1578// DescribeServiceAccessPolicies API operation for Amazon CloudSearch.
1579//
1580// Gets information about the access policies that control access to the domain's
1581// document and search endpoints. By default, shows the configuration with any
1582// pending changes. Set the Deployed option to true to show the active configuration
1583// and exclude pending changes. For more information, see Configuring Access
1584// for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html)
1585// in the Amazon CloudSearch Developer Guide.
1586//
1587// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1588// with awserr.Error's Code and Message methods to get detailed information about
1589// the error.
1590//
1591// See the AWS API reference guide for Amazon CloudSearch's
1592// API operation DescribeServiceAccessPolicies for usage and error information.
1593//
1594// Returned Error Codes:
1595//   * ErrCodeBaseException "BaseException"
1596//   An error occurred while processing the request.
1597//
1598//   * ErrCodeInternalException "InternalException"
1599//   An internal error occurred while processing the request. If this problem
1600//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1601//
1602//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1603//   The request was rejected because it attempted to reference a resource that
1604//   does not exist.
1605//
1606func (c *CloudSearch) DescribeServiceAccessPolicies(input *DescribeServiceAccessPoliciesInput) (*DescribeServiceAccessPoliciesOutput, error) {
1607	req, out := c.DescribeServiceAccessPoliciesRequest(input)
1608	return out, req.Send()
1609}
1610
1611// DescribeServiceAccessPoliciesWithContext is the same as DescribeServiceAccessPolicies with the addition of
1612// the ability to pass a context and additional request options.
1613//
1614// See DescribeServiceAccessPolicies for details on how to use this API operation.
1615//
1616// The context must be non-nil and will be used for request cancellation. If
1617// the context is nil a panic will occur. In the future the SDK may create
1618// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1619// for more information on using Contexts.
1620func (c *CloudSearch) DescribeServiceAccessPoliciesWithContext(ctx aws.Context, input *DescribeServiceAccessPoliciesInput, opts ...request.Option) (*DescribeServiceAccessPoliciesOutput, error) {
1621	req, out := c.DescribeServiceAccessPoliciesRequest(input)
1622	req.SetContext(ctx)
1623	req.ApplyOptions(opts...)
1624	return out, req.Send()
1625}
1626
1627const opDescribeSuggesters = "DescribeSuggesters"
1628
1629// DescribeSuggestersRequest generates a "aws/request.Request" representing the
1630// client's request for the DescribeSuggesters operation. The "output" return
1631// value will be populated with the request's response once the request completes
1632// successfuly.
1633//
1634// Use "Send" method on the returned Request to send the API call to the service.
1635// the "output" return value is not valid until after Send returns without error.
1636//
1637// See DescribeSuggesters for more information on using the DescribeSuggesters
1638// API call, and error handling.
1639//
1640// This method is useful when you want to inject custom logic or configuration
1641// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1642//
1643//
1644//    // Example sending a request using the DescribeSuggestersRequest method.
1645//    req, resp := client.DescribeSuggestersRequest(params)
1646//
1647//    err := req.Send()
1648//    if err == nil { // resp is now filled
1649//        fmt.Println(resp)
1650//    }
1651func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) (req *request.Request, output *DescribeSuggestersOutput) {
1652	op := &request.Operation{
1653		Name:       opDescribeSuggesters,
1654		HTTPMethod: "POST",
1655		HTTPPath:   "/",
1656	}
1657
1658	if input == nil {
1659		input = &DescribeSuggestersInput{}
1660	}
1661
1662	output = &DescribeSuggestersOutput{}
1663	req = c.newRequest(op, input, output)
1664	return
1665}
1666
1667// DescribeSuggesters API operation for Amazon CloudSearch.
1668//
1669// Gets the suggesters configured for a domain. A suggester enables you to display
1670// possible matches before users finish typing their queries. Can be limited
1671// to specific suggesters by name. By default, shows all suggesters and includes
1672// any pending changes to the configuration. Set the Deployed option to true
1673// to show the active configuration and exclude pending changes. For more information,
1674// see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html)
1675// in the Amazon CloudSearch Developer Guide.
1676//
1677// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1678// with awserr.Error's Code and Message methods to get detailed information about
1679// the error.
1680//
1681// See the AWS API reference guide for Amazon CloudSearch's
1682// API operation DescribeSuggesters for usage and error information.
1683//
1684// Returned Error Codes:
1685//   * ErrCodeBaseException "BaseException"
1686//   An error occurred while processing the request.
1687//
1688//   * ErrCodeInternalException "InternalException"
1689//   An internal error occurred while processing the request. If this problem
1690//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1691//
1692//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1693//   The request was rejected because it attempted to reference a resource that
1694//   does not exist.
1695//
1696func (c *CloudSearch) DescribeSuggesters(input *DescribeSuggestersInput) (*DescribeSuggestersOutput, error) {
1697	req, out := c.DescribeSuggestersRequest(input)
1698	return out, req.Send()
1699}
1700
1701// DescribeSuggestersWithContext is the same as DescribeSuggesters with the addition of
1702// the ability to pass a context and additional request options.
1703//
1704// See DescribeSuggesters for details on how to use this API operation.
1705//
1706// The context must be non-nil and will be used for request cancellation. If
1707// the context is nil a panic will occur. In the future the SDK may create
1708// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1709// for more information on using Contexts.
1710func (c *CloudSearch) DescribeSuggestersWithContext(ctx aws.Context, input *DescribeSuggestersInput, opts ...request.Option) (*DescribeSuggestersOutput, error) {
1711	req, out := c.DescribeSuggestersRequest(input)
1712	req.SetContext(ctx)
1713	req.ApplyOptions(opts...)
1714	return out, req.Send()
1715}
1716
1717const opIndexDocuments = "IndexDocuments"
1718
1719// IndexDocumentsRequest generates a "aws/request.Request" representing the
1720// client's request for the IndexDocuments operation. The "output" return
1721// value will be populated with the request's response once the request completes
1722// successfuly.
1723//
1724// Use "Send" method on the returned Request to send the API call to the service.
1725// the "output" return value is not valid until after Send returns without error.
1726//
1727// See IndexDocuments for more information on using the IndexDocuments
1728// API call, and error handling.
1729//
1730// This method is useful when you want to inject custom logic or configuration
1731// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1732//
1733//
1734//    // Example sending a request using the IndexDocumentsRequest method.
1735//    req, resp := client.IndexDocumentsRequest(params)
1736//
1737//    err := req.Send()
1738//    if err == nil { // resp is now filled
1739//        fmt.Println(resp)
1740//    }
1741func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *request.Request, output *IndexDocumentsOutput) {
1742	op := &request.Operation{
1743		Name:       opIndexDocuments,
1744		HTTPMethod: "POST",
1745		HTTPPath:   "/",
1746	}
1747
1748	if input == nil {
1749		input = &IndexDocumentsInput{}
1750	}
1751
1752	output = &IndexDocumentsOutput{}
1753	req = c.newRequest(op, input, output)
1754	return
1755}
1756
1757// IndexDocuments API operation for Amazon CloudSearch.
1758//
1759// Tells the search domain to start indexing its documents using the latest
1760// indexing options. This operation must be invoked to activate options whose
1761// OptionStatus is RequiresIndexDocuments.
1762//
1763// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1764// with awserr.Error's Code and Message methods to get detailed information about
1765// the error.
1766//
1767// See the AWS API reference guide for Amazon CloudSearch's
1768// API operation IndexDocuments for usage and error information.
1769//
1770// Returned Error Codes:
1771//   * ErrCodeBaseException "BaseException"
1772//   An error occurred while processing the request.
1773//
1774//   * ErrCodeInternalException "InternalException"
1775//   An internal error occurred while processing the request. If this problem
1776//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1777//
1778//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1779//   The request was rejected because it attempted to reference a resource that
1780//   does not exist.
1781//
1782func (c *CloudSearch) IndexDocuments(input *IndexDocumentsInput) (*IndexDocumentsOutput, error) {
1783	req, out := c.IndexDocumentsRequest(input)
1784	return out, req.Send()
1785}
1786
1787// IndexDocumentsWithContext is the same as IndexDocuments with the addition of
1788// the ability to pass a context and additional request options.
1789//
1790// See IndexDocuments for details on how to use this API operation.
1791//
1792// The context must be non-nil and will be used for request cancellation. If
1793// the context is nil a panic will occur. In the future the SDK may create
1794// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1795// for more information on using Contexts.
1796func (c *CloudSearch) IndexDocumentsWithContext(ctx aws.Context, input *IndexDocumentsInput, opts ...request.Option) (*IndexDocumentsOutput, error) {
1797	req, out := c.IndexDocumentsRequest(input)
1798	req.SetContext(ctx)
1799	req.ApplyOptions(opts...)
1800	return out, req.Send()
1801}
1802
1803const opListDomainNames = "ListDomainNames"
1804
1805// ListDomainNamesRequest generates a "aws/request.Request" representing the
1806// client's request for the ListDomainNames operation. The "output" return
1807// value will be populated with the request's response once the request completes
1808// successfuly.
1809//
1810// Use "Send" method on the returned Request to send the API call to the service.
1811// the "output" return value is not valid until after Send returns without error.
1812//
1813// See ListDomainNames for more information on using the ListDomainNames
1814// API call, and error handling.
1815//
1816// This method is useful when you want to inject custom logic or configuration
1817// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1818//
1819//
1820//    // Example sending a request using the ListDomainNamesRequest method.
1821//    req, resp := client.ListDomainNamesRequest(params)
1822//
1823//    err := req.Send()
1824//    if err == nil { // resp is now filled
1825//        fmt.Println(resp)
1826//    }
1827func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) {
1828	op := &request.Operation{
1829		Name:       opListDomainNames,
1830		HTTPMethod: "POST",
1831		HTTPPath:   "/",
1832	}
1833
1834	if input == nil {
1835		input = &ListDomainNamesInput{}
1836	}
1837
1838	output = &ListDomainNamesOutput{}
1839	req = c.newRequest(op, input, output)
1840	return
1841}
1842
1843// ListDomainNames API operation for Amazon CloudSearch.
1844//
1845// Lists all search domains owned by an account.
1846//
1847// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1848// with awserr.Error's Code and Message methods to get detailed information about
1849// the error.
1850//
1851// See the AWS API reference guide for Amazon CloudSearch's
1852// API operation ListDomainNames for usage and error information.
1853//
1854// Returned Error Codes:
1855//   * ErrCodeBaseException "BaseException"
1856//   An error occurred while processing the request.
1857//
1858func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) {
1859	req, out := c.ListDomainNamesRequest(input)
1860	return out, req.Send()
1861}
1862
1863// ListDomainNamesWithContext is the same as ListDomainNames with the addition of
1864// the ability to pass a context and additional request options.
1865//
1866// See ListDomainNames for details on how to use this API operation.
1867//
1868// The context must be non-nil and will be used for request cancellation. If
1869// the context is nil a panic will occur. In the future the SDK may create
1870// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1871// for more information on using Contexts.
1872func (c *CloudSearch) ListDomainNamesWithContext(ctx aws.Context, input *ListDomainNamesInput, opts ...request.Option) (*ListDomainNamesOutput, error) {
1873	req, out := c.ListDomainNamesRequest(input)
1874	req.SetContext(ctx)
1875	req.ApplyOptions(opts...)
1876	return out, req.Send()
1877}
1878
1879const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions"
1880
1881// UpdateAvailabilityOptionsRequest generates a "aws/request.Request" representing the
1882// client's request for the UpdateAvailabilityOptions operation. The "output" return
1883// value will be populated with the request's response once the request completes
1884// successfuly.
1885//
1886// Use "Send" method on the returned Request to send the API call to the service.
1887// the "output" return value is not valid until after Send returns without error.
1888//
1889// See UpdateAvailabilityOptions for more information on using the UpdateAvailabilityOptions
1890// API call, and error handling.
1891//
1892// This method is useful when you want to inject custom logic or configuration
1893// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1894//
1895//
1896//    // Example sending a request using the UpdateAvailabilityOptionsRequest method.
1897//    req, resp := client.UpdateAvailabilityOptionsRequest(params)
1898//
1899//    err := req.Send()
1900//    if err == nil { // resp is now filled
1901//        fmt.Println(resp)
1902//    }
1903func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailabilityOptionsInput) (req *request.Request, output *UpdateAvailabilityOptionsOutput) {
1904	op := &request.Operation{
1905		Name:       opUpdateAvailabilityOptions,
1906		HTTPMethod: "POST",
1907		HTTPPath:   "/",
1908	}
1909
1910	if input == nil {
1911		input = &UpdateAvailabilityOptionsInput{}
1912	}
1913
1914	output = &UpdateAvailabilityOptionsOutput{}
1915	req = c.newRequest(op, input, output)
1916	return
1917}
1918
1919// UpdateAvailabilityOptions API operation for Amazon CloudSearch.
1920//
1921// Configures the availability options for a domain. Enabling the Multi-AZ option
1922// expands an Amazon CloudSearch domain to an additional Availability Zone in
1923// the same Region to increase fault tolerance in the event of a service disruption.
1924// Changes to the Multi-AZ option can take about half an hour to become active.
1925// For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html)
1926// in the Amazon CloudSearch Developer Guide.
1927//
1928// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1929// with awserr.Error's Code and Message methods to get detailed information about
1930// the error.
1931//
1932// See the AWS API reference guide for Amazon CloudSearch's
1933// API operation UpdateAvailabilityOptions for usage and error information.
1934//
1935// Returned Error Codes:
1936//   * ErrCodeBaseException "BaseException"
1937//   An error occurred while processing the request.
1938//
1939//   * ErrCodeInternalException "InternalException"
1940//   An internal error occurred while processing the request. If this problem
1941//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
1942//
1943//   * ErrCodeInvalidTypeException "InvalidType"
1944//   The request was rejected because it specified an invalid type definition.
1945//
1946//   * ErrCodeLimitExceededException "LimitExceeded"
1947//   The request was rejected because a resource limit has already been met.
1948//
1949//   * ErrCodeResourceNotFoundException "ResourceNotFound"
1950//   The request was rejected because it attempted to reference a resource that
1951//   does not exist.
1952//
1953//   * ErrCodeDisabledOperationException "DisabledAction"
1954//   The request was rejected because it attempted an operation which is not enabled.
1955//
1956func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) {
1957	req, out := c.UpdateAvailabilityOptionsRequest(input)
1958	return out, req.Send()
1959}
1960
1961// UpdateAvailabilityOptionsWithContext is the same as UpdateAvailabilityOptions with the addition of
1962// the ability to pass a context and additional request options.
1963//
1964// See UpdateAvailabilityOptions for details on how to use this API operation.
1965//
1966// The context must be non-nil and will be used for request cancellation. If
1967// the context is nil a panic will occur. In the future the SDK may create
1968// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1969// for more information on using Contexts.
1970func (c *CloudSearch) UpdateAvailabilityOptionsWithContext(ctx aws.Context, input *UpdateAvailabilityOptionsInput, opts ...request.Option) (*UpdateAvailabilityOptionsOutput, error) {
1971	req, out := c.UpdateAvailabilityOptionsRequest(input)
1972	req.SetContext(ctx)
1973	req.ApplyOptions(opts...)
1974	return out, req.Send()
1975}
1976
1977const opUpdateScalingParameters = "UpdateScalingParameters"
1978
1979// UpdateScalingParametersRequest generates a "aws/request.Request" representing the
1980// client's request for the UpdateScalingParameters operation. The "output" return
1981// value will be populated with the request's response once the request completes
1982// successfuly.
1983//
1984// Use "Send" method on the returned Request to send the API call to the service.
1985// the "output" return value is not valid until after Send returns without error.
1986//
1987// See UpdateScalingParameters for more information on using the UpdateScalingParameters
1988// API call, and error handling.
1989//
1990// This method is useful when you want to inject custom logic or configuration
1991// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1992//
1993//
1994//    // Example sending a request using the UpdateScalingParametersRequest method.
1995//    req, resp := client.UpdateScalingParametersRequest(params)
1996//
1997//    err := req.Send()
1998//    if err == nil { // resp is now filled
1999//        fmt.Println(resp)
2000//    }
2001func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParametersInput) (req *request.Request, output *UpdateScalingParametersOutput) {
2002	op := &request.Operation{
2003		Name:       opUpdateScalingParameters,
2004		HTTPMethod: "POST",
2005		HTTPPath:   "/",
2006	}
2007
2008	if input == nil {
2009		input = &UpdateScalingParametersInput{}
2010	}
2011
2012	output = &UpdateScalingParametersOutput{}
2013	req = c.newRequest(op, input, output)
2014	return
2015}
2016
2017// UpdateScalingParameters API operation for Amazon CloudSearch.
2018//
2019// Configures scaling parameters for a domain. A domain's scaling parameters
2020// specify the desired search instance type and replication count. Amazon CloudSearch
2021// will still automatically scale your domain based on the volume of data and
2022// traffic, but not below the desired instance type and replication count. If
2023// the Multi-AZ option is enabled, these values control the resources used per
2024// Availability Zone. For more information, see Configuring Scaling Options
2025// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html)
2026// in the Amazon CloudSearch Developer Guide.
2027//
2028// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2029// with awserr.Error's Code and Message methods to get detailed information about
2030// the error.
2031//
2032// See the AWS API reference guide for Amazon CloudSearch's
2033// API operation UpdateScalingParameters for usage and error information.
2034//
2035// Returned Error Codes:
2036//   * ErrCodeBaseException "BaseException"
2037//   An error occurred while processing the request.
2038//
2039//   * ErrCodeInternalException "InternalException"
2040//   An internal error occurred while processing the request. If this problem
2041//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
2042//
2043//   * ErrCodeLimitExceededException "LimitExceeded"
2044//   The request was rejected because a resource limit has already been met.
2045//
2046//   * ErrCodeResourceNotFoundException "ResourceNotFound"
2047//   The request was rejected because it attempted to reference a resource that
2048//   does not exist.
2049//
2050//   * ErrCodeInvalidTypeException "InvalidType"
2051//   The request was rejected because it specified an invalid type definition.
2052//
2053func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) {
2054	req, out := c.UpdateScalingParametersRequest(input)
2055	return out, req.Send()
2056}
2057
2058// UpdateScalingParametersWithContext is the same as UpdateScalingParameters with the addition of
2059// the ability to pass a context and additional request options.
2060//
2061// See UpdateScalingParameters for details on how to use this API operation.
2062//
2063// The context must be non-nil and will be used for request cancellation. If
2064// the context is nil a panic will occur. In the future the SDK may create
2065// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2066// for more information on using Contexts.
2067func (c *CloudSearch) UpdateScalingParametersWithContext(ctx aws.Context, input *UpdateScalingParametersInput, opts ...request.Option) (*UpdateScalingParametersOutput, error) {
2068	req, out := c.UpdateScalingParametersRequest(input)
2069	req.SetContext(ctx)
2070	req.ApplyOptions(opts...)
2071	return out, req.Send()
2072}
2073
2074const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies"
2075
2076// UpdateServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
2077// client's request for the UpdateServiceAccessPolicies operation. The "output" return
2078// value will be populated with the request's response once the request completes
2079// successfuly.
2080//
2081// Use "Send" method on the returned Request to send the API call to the service.
2082// the "output" return value is not valid until after Send returns without error.
2083//
2084// See UpdateServiceAccessPolicies for more information on using the UpdateServiceAccessPolicies
2085// API call, and error handling.
2086//
2087// This method is useful when you want to inject custom logic or configuration
2088// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2089//
2090//
2091//    // Example sending a request using the UpdateServiceAccessPoliciesRequest method.
2092//    req, resp := client.UpdateServiceAccessPoliciesRequest(params)
2093//
2094//    err := req.Send()
2095//    if err == nil { // resp is now filled
2096//        fmt.Println(resp)
2097//    }
2098func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAccessPoliciesInput) (req *request.Request, output *UpdateServiceAccessPoliciesOutput) {
2099	op := &request.Operation{
2100		Name:       opUpdateServiceAccessPolicies,
2101		HTTPMethod: "POST",
2102		HTTPPath:   "/",
2103	}
2104
2105	if input == nil {
2106		input = &UpdateServiceAccessPoliciesInput{}
2107	}
2108
2109	output = &UpdateServiceAccessPoliciesOutput{}
2110	req = c.newRequest(op, input, output)
2111	return
2112}
2113
2114// UpdateServiceAccessPolicies API operation for Amazon CloudSearch.
2115//
2116// Configures the access rules that control access to the domain's document
2117// and search endpoints. For more information, see  Configuring Access for an
2118// Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html).
2119//
2120// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2121// with awserr.Error's Code and Message methods to get detailed information about
2122// the error.
2123//
2124// See the AWS API reference guide for Amazon CloudSearch's
2125// API operation UpdateServiceAccessPolicies for usage and error information.
2126//
2127// Returned Error Codes:
2128//   * ErrCodeBaseException "BaseException"
2129//   An error occurred while processing the request.
2130//
2131//   * ErrCodeInternalException "InternalException"
2132//   An internal error occurred while processing the request. If this problem
2133//   persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
2134//
2135//   * ErrCodeLimitExceededException "LimitExceeded"
2136//   The request was rejected because a resource limit has already been met.
2137//
2138//   * ErrCodeResourceNotFoundException "ResourceNotFound"
2139//   The request was rejected because it attempted to reference a resource that
2140//   does not exist.
2141//
2142//   * ErrCodeInvalidTypeException "InvalidType"
2143//   The request was rejected because it specified an invalid type definition.
2144//
2145func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoliciesInput) (*UpdateServiceAccessPoliciesOutput, error) {
2146	req, out := c.UpdateServiceAccessPoliciesRequest(input)
2147	return out, req.Send()
2148}
2149
2150// UpdateServiceAccessPoliciesWithContext is the same as UpdateServiceAccessPolicies with the addition of
2151// the ability to pass a context and additional request options.
2152//
2153// See UpdateServiceAccessPolicies for details on how to use this API operation.
2154//
2155// The context must be non-nil and will be used for request cancellation. If
2156// the context is nil a panic will occur. In the future the SDK may create
2157// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2158// for more information on using Contexts.
2159func (c *CloudSearch) UpdateServiceAccessPoliciesWithContext(ctx aws.Context, input *UpdateServiceAccessPoliciesInput, opts ...request.Option) (*UpdateServiceAccessPoliciesOutput, error) {
2160	req, out := c.UpdateServiceAccessPoliciesRequest(input)
2161	req.SetContext(ctx)
2162	req.ApplyOptions(opts...)
2163	return out, req.Send()
2164}
2165
2166// The configured access rules for the domain's document and search endpoints,
2167// and the current status of those rules.
2168type AccessPoliciesStatus struct {
2169	_ struct{} `type:"structure"`
2170
2171	// Access rules for a domain's document or search service endpoints. For more
2172	// information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html)
2173	// in the Amazon CloudSearch Developer Guide. The maximum size of a policy document
2174	// is 100 KB.
2175	//
2176	// Options is a required field
2177	Options *string `type:"string" required:"true"`
2178
2179	// The status of domain configuration option.
2180	//
2181	// Status is a required field
2182	Status *OptionStatus `type:"structure" required:"true"`
2183}
2184
2185// String returns the string representation
2186func (s AccessPoliciesStatus) String() string {
2187	return awsutil.Prettify(s)
2188}
2189
2190// GoString returns the string representation
2191func (s AccessPoliciesStatus) GoString() string {
2192	return s.String()
2193}
2194
2195// SetOptions sets the Options field's value.
2196func (s *AccessPoliciesStatus) SetOptions(v string) *AccessPoliciesStatus {
2197	s.Options = &v
2198	return s
2199}
2200
2201// SetStatus sets the Status field's value.
2202func (s *AccessPoliciesStatus) SetStatus(v *OptionStatus) *AccessPoliciesStatus {
2203	s.Status = v
2204	return s
2205}
2206
2207// Synonyms, stopwords, and stemming options for an analysis scheme. Includes
2208// tokenization dictionary for Japanese.
2209type AnalysisOptions struct {
2210	_ struct{} `type:"structure"`
2211
2212	// The level of algorithmic stemming to perform: none, minimal, light, or full.
2213	// The available levels vary depending on the language. For more information,
2214	// see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings)
2215	// in the Amazon CloudSearch Developer Guide
2216	AlgorithmicStemming *string `type:"string" enum:"AlgorithmicStemming"`
2217
2218	// A JSON array that contains a collection of terms, tokens, readings and part
2219	// of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary
2220	// enables you to override the default tokenization for selected terms. This
2221	// is only valid for Japanese language fields.
2222	JapaneseTokenizationDictionary *string `type:"string"`
2223
2224	// A JSON object that contains a collection of string:value pairs that each
2225	// map a term to its stem. For example, {"term1": "stem1", "term2": "stem2",
2226	// "term3": "stem3"}. The stemming dictionary is applied in addition to any
2227	// algorithmic stemming. This enables you to override the results of the algorithmic
2228	// stemming to correct specific cases of overstemming or understemming. The
2229	// maximum size of a stemming dictionary is 500 KB.
2230	StemmingDictionary *string `type:"string"`
2231
2232	// A JSON array of terms to ignore during indexing and searching. For example,
2233	// ["a", "an", "the", "of"]. The stopwords dictionary must explicitly list each
2234	// word you want to ignore. Wildcards and regular expressions are not supported.
2235	Stopwords *string `type:"string"`
2236
2237	// A JSON object that defines synonym groups and aliases. A synonym group is
2238	// an array of arrays, where each sub-array is a group of terms where each term
2239	// in the group is considered a synonym of every other term in the group. The
2240	// aliases value is an object that contains a collection of string:value pairs
2241	// where the string specifies a term and the array of values specifies each
2242	// of the aliases for that term. An alias is considered a synonym of the specified
2243	// term, but the term is not considered a synonym of the alias. For more information
2244	// about specifying synonyms, see Synonyms (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms)
2245	// in the Amazon CloudSearch Developer Guide.
2246	Synonyms *string `type:"string"`
2247}
2248
2249// String returns the string representation
2250func (s AnalysisOptions) String() string {
2251	return awsutil.Prettify(s)
2252}
2253
2254// GoString returns the string representation
2255func (s AnalysisOptions) GoString() string {
2256	return s.String()
2257}
2258
2259// SetAlgorithmicStemming sets the AlgorithmicStemming field's value.
2260func (s *AnalysisOptions) SetAlgorithmicStemming(v string) *AnalysisOptions {
2261	s.AlgorithmicStemming = &v
2262	return s
2263}
2264
2265// SetJapaneseTokenizationDictionary sets the JapaneseTokenizationDictionary field's value.
2266func (s *AnalysisOptions) SetJapaneseTokenizationDictionary(v string) *AnalysisOptions {
2267	s.JapaneseTokenizationDictionary = &v
2268	return s
2269}
2270
2271// SetStemmingDictionary sets the StemmingDictionary field's value.
2272func (s *AnalysisOptions) SetStemmingDictionary(v string) *AnalysisOptions {
2273	s.StemmingDictionary = &v
2274	return s
2275}
2276
2277// SetStopwords sets the Stopwords field's value.
2278func (s *AnalysisOptions) SetStopwords(v string) *AnalysisOptions {
2279	s.Stopwords = &v
2280	return s
2281}
2282
2283// SetSynonyms sets the Synonyms field's value.
2284func (s *AnalysisOptions) SetSynonyms(v string) *AnalysisOptions {
2285	s.Synonyms = &v
2286	return s
2287}
2288
2289// Configuration information for an analysis scheme. Each analysis scheme has
2290// a unique name and specifies the language of the text to be processed. The
2291// following options can be configured for an analysis scheme: Synonyms, Stopwords,
2292// StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
2293type AnalysisScheme struct {
2294	_ struct{} `type:"structure"`
2295
2296	// Synonyms, stopwords, and stemming options for an analysis scheme. Includes
2297	// tokenization dictionary for Japanese.
2298	AnalysisOptions *AnalysisOptions `type:"structure"`
2299
2300	// An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul
2301	// for multiple languages.
2302	//
2303	// AnalysisSchemeLanguage is a required field
2304	AnalysisSchemeLanguage *string `type:"string" required:"true" enum:"AnalysisSchemeLanguage"`
2305
2306	// Names must begin with a letter and can contain the following characters:
2307	// a-z (lowercase), 0-9, and _ (underscore).
2308	//
2309	// AnalysisSchemeName is a required field
2310	AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
2311}
2312
2313// String returns the string representation
2314func (s AnalysisScheme) String() string {
2315	return awsutil.Prettify(s)
2316}
2317
2318// GoString returns the string representation
2319func (s AnalysisScheme) GoString() string {
2320	return s.String()
2321}
2322
2323// Validate inspects the fields of the type to determine if they are valid.
2324func (s *AnalysisScheme) Validate() error {
2325	invalidParams := request.ErrInvalidParams{Context: "AnalysisScheme"}
2326	if s.AnalysisSchemeLanguage == nil {
2327		invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeLanguage"))
2328	}
2329	if s.AnalysisSchemeName == nil {
2330		invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
2331	}
2332	if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
2333		invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
2334	}
2335
2336	if invalidParams.Len() > 0 {
2337		return invalidParams
2338	}
2339	return nil
2340}
2341
2342// SetAnalysisOptions sets the AnalysisOptions field's value.
2343func (s *AnalysisScheme) SetAnalysisOptions(v *AnalysisOptions) *AnalysisScheme {
2344	s.AnalysisOptions = v
2345	return s
2346}
2347
2348// SetAnalysisSchemeLanguage sets the AnalysisSchemeLanguage field's value.
2349func (s *AnalysisScheme) SetAnalysisSchemeLanguage(v string) *AnalysisScheme {
2350	s.AnalysisSchemeLanguage = &v
2351	return s
2352}
2353
2354// SetAnalysisSchemeName sets the AnalysisSchemeName field's value.
2355func (s *AnalysisScheme) SetAnalysisSchemeName(v string) *AnalysisScheme {
2356	s.AnalysisSchemeName = &v
2357	return s
2358}
2359
2360// The status and configuration of an AnalysisScheme.
2361type AnalysisSchemeStatus struct {
2362	_ struct{} `type:"structure"`
2363
2364	// Configuration information for an analysis scheme. Each analysis scheme has
2365	// a unique name and specifies the language of the text to be processed. The
2366	// following options can be configured for an analysis scheme: Synonyms, Stopwords,
2367	// StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
2368	//
2369	// Options is a required field
2370	Options *AnalysisScheme `type:"structure" required:"true"`
2371
2372	// The status of domain configuration option.
2373	//
2374	// Status is a required field
2375	Status *OptionStatus `type:"structure" required:"true"`
2376}
2377
2378// String returns the string representation
2379func (s AnalysisSchemeStatus) String() string {
2380	return awsutil.Prettify(s)
2381}
2382
2383// GoString returns the string representation
2384func (s AnalysisSchemeStatus) GoString() string {
2385	return s.String()
2386}
2387
2388// SetOptions sets the Options field's value.
2389func (s *AnalysisSchemeStatus) SetOptions(v *AnalysisScheme) *AnalysisSchemeStatus {
2390	s.Options = v
2391	return s
2392}
2393
2394// SetStatus sets the Status field's value.
2395func (s *AnalysisSchemeStatus) SetStatus(v *OptionStatus) *AnalysisSchemeStatus {
2396	s.Status = v
2397	return s
2398}
2399
2400// The status and configuration of the domain's availability options.
2401type AvailabilityOptionsStatus struct {
2402	_ struct{} `type:"structure"`
2403
2404	// The availability options configured for the domain.
2405	//
2406	// Options is a required field
2407	Options *bool `type:"boolean" required:"true"`
2408
2409	// The status of domain configuration option.
2410	//
2411	// Status is a required field
2412	Status *OptionStatus `type:"structure" required:"true"`
2413}
2414
2415// String returns the string representation
2416func (s AvailabilityOptionsStatus) String() string {
2417	return awsutil.Prettify(s)
2418}
2419
2420// GoString returns the string representation
2421func (s AvailabilityOptionsStatus) GoString() string {
2422	return s.String()
2423}
2424
2425// SetOptions sets the Options field's value.
2426func (s *AvailabilityOptionsStatus) SetOptions(v bool) *AvailabilityOptionsStatus {
2427	s.Options = &v
2428	return s
2429}
2430
2431// SetStatus sets the Status field's value.
2432func (s *AvailabilityOptionsStatus) SetStatus(v *OptionStatus) *AvailabilityOptionsStatus {
2433	s.Status = v
2434	return s
2435}
2436
2437// Container for the parameters to the BuildSuggester operation. Specifies the
2438// name of the domain you want to update.
2439type BuildSuggestersInput struct {
2440	_ struct{} `type:"structure"`
2441
2442	// A string that represents the name of a domain. Domain names are unique across
2443	// the domains owned by an account within an AWS region. Domain names start
2444	// with a letter or number and can contain the following characters: a-z (lowercase),
2445	// 0-9, and - (hyphen).
2446	//
2447	// DomainName is a required field
2448	DomainName *string `min:"3" type:"string" required:"true"`
2449}
2450
2451// String returns the string representation
2452func (s BuildSuggestersInput) String() string {
2453	return awsutil.Prettify(s)
2454}
2455
2456// GoString returns the string representation
2457func (s BuildSuggestersInput) GoString() string {
2458	return s.String()
2459}
2460
2461// Validate inspects the fields of the type to determine if they are valid.
2462func (s *BuildSuggestersInput) Validate() error {
2463	invalidParams := request.ErrInvalidParams{Context: "BuildSuggestersInput"}
2464	if s.DomainName == nil {
2465		invalidParams.Add(request.NewErrParamRequired("DomainName"))
2466	}
2467	if s.DomainName != nil && len(*s.DomainName) < 3 {
2468		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
2469	}
2470
2471	if invalidParams.Len() > 0 {
2472		return invalidParams
2473	}
2474	return nil
2475}
2476
2477// SetDomainName sets the DomainName field's value.
2478func (s *BuildSuggestersInput) SetDomainName(v string) *BuildSuggestersInput {
2479	s.DomainName = &v
2480	return s
2481}
2482
2483// The result of a BuildSuggester request. Contains a list of the fields used
2484// for suggestions.
2485type BuildSuggestersOutput struct {
2486	_ struct{} `type:"structure"`
2487
2488	// A list of field names.
2489	FieldNames []*string `type:"list"`
2490}
2491
2492// String returns the string representation
2493func (s BuildSuggestersOutput) String() string {
2494	return awsutil.Prettify(s)
2495}
2496
2497// GoString returns the string representation
2498func (s BuildSuggestersOutput) GoString() string {
2499	return s.String()
2500}
2501
2502// SetFieldNames sets the FieldNames field's value.
2503func (s *BuildSuggestersOutput) SetFieldNames(v []*string) *BuildSuggestersOutput {
2504	s.FieldNames = v
2505	return s
2506}
2507
2508// Container for the parameters to the CreateDomain operation. Specifies a name
2509// for the new search domain.
2510type CreateDomainInput struct {
2511	_ struct{} `type:"structure"`
2512
2513	// A name for the domain you are creating. Allowed characters are a-z (lower-case
2514	// letters), 0-9, and hyphen (-). Domain names must start with a letter or number
2515	// and be at least 3 and no more than 28 characters long.
2516	//
2517	// DomainName is a required field
2518	DomainName *string `min:"3" type:"string" required:"true"`
2519}
2520
2521// String returns the string representation
2522func (s CreateDomainInput) String() string {
2523	return awsutil.Prettify(s)
2524}
2525
2526// GoString returns the string representation
2527func (s CreateDomainInput) GoString() string {
2528	return s.String()
2529}
2530
2531// Validate inspects the fields of the type to determine if they are valid.
2532func (s *CreateDomainInput) Validate() error {
2533	invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"}
2534	if s.DomainName == nil {
2535		invalidParams.Add(request.NewErrParamRequired("DomainName"))
2536	}
2537	if s.DomainName != nil && len(*s.DomainName) < 3 {
2538		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
2539	}
2540
2541	if invalidParams.Len() > 0 {
2542		return invalidParams
2543	}
2544	return nil
2545}
2546
2547// SetDomainName sets the DomainName field's value.
2548func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput {
2549	s.DomainName = &v
2550	return s
2551}
2552
2553// The result of a CreateDomainRequest. Contains the status of a newly created
2554// domain.
2555type CreateDomainOutput struct {
2556	_ struct{} `type:"structure"`
2557
2558	// The current status of the search domain.
2559	DomainStatus *DomainStatus `type:"structure"`
2560}
2561
2562// String returns the string representation
2563func (s CreateDomainOutput) String() string {
2564	return awsutil.Prettify(s)
2565}
2566
2567// GoString returns the string representation
2568func (s CreateDomainOutput) GoString() string {
2569	return s.String()
2570}
2571
2572// SetDomainStatus sets the DomainStatus field's value.
2573func (s *CreateDomainOutput) SetDomainStatus(v *DomainStatus) *CreateDomainOutput {
2574	s.DomainStatus = v
2575	return s
2576}
2577
2578// Options for a field that contains an array of dates. Present if IndexFieldType
2579// specifies the field is of type date-array. All options are enabled by default.
2580type DateArrayOptions struct {
2581	_ struct{} `type:"structure"`
2582
2583	// A value to use for the field if the field isn't specified for a document.
2584	DefaultValue *string `type:"string"`
2585
2586	// Whether facet information can be returned for the field.
2587	FacetEnabled *bool `type:"boolean"`
2588
2589	// Whether the contents of the field can be returned in the search results.
2590	ReturnEnabled *bool `type:"boolean"`
2591
2592	// Whether the contents of the field are searchable.
2593	SearchEnabled *bool `type:"boolean"`
2594
2595	// A list of source fields to map to the field.
2596	SourceFields *string `type:"string"`
2597}
2598
2599// String returns the string representation
2600func (s DateArrayOptions) String() string {
2601	return awsutil.Prettify(s)
2602}
2603
2604// GoString returns the string representation
2605func (s DateArrayOptions) GoString() string {
2606	return s.String()
2607}
2608
2609// SetDefaultValue sets the DefaultValue field's value.
2610func (s *DateArrayOptions) SetDefaultValue(v string) *DateArrayOptions {
2611	s.DefaultValue = &v
2612	return s
2613}
2614
2615// SetFacetEnabled sets the FacetEnabled field's value.
2616func (s *DateArrayOptions) SetFacetEnabled(v bool) *DateArrayOptions {
2617	s.FacetEnabled = &v
2618	return s
2619}
2620
2621// SetReturnEnabled sets the ReturnEnabled field's value.
2622func (s *DateArrayOptions) SetReturnEnabled(v bool) *DateArrayOptions {
2623	s.ReturnEnabled = &v
2624	return s
2625}
2626
2627// SetSearchEnabled sets the SearchEnabled field's value.
2628func (s *DateArrayOptions) SetSearchEnabled(v bool) *DateArrayOptions {
2629	s.SearchEnabled = &v
2630	return s
2631}
2632
2633// SetSourceFields sets the SourceFields field's value.
2634func (s *DateArrayOptions) SetSourceFields(v string) *DateArrayOptions {
2635	s.SourceFields = &v
2636	return s
2637}
2638
2639// Options for a date field. Dates and times are specified in UTC (Coordinated
2640// Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
2641// if IndexFieldType specifies the field is of type date. All options are enabled
2642// by default.
2643type DateOptions struct {
2644	_ struct{} `type:"structure"`
2645
2646	// A value to use for the field if the field isn't specified for a document.
2647	DefaultValue *string `type:"string"`
2648
2649	// Whether facet information can be returned for the field.
2650	FacetEnabled *bool `type:"boolean"`
2651
2652	// Whether the contents of the field can be returned in the search results.
2653	ReturnEnabled *bool `type:"boolean"`
2654
2655	// Whether the contents of the field are searchable.
2656	SearchEnabled *bool `type:"boolean"`
2657
2658	// Whether the field can be used to sort the search results.
2659	SortEnabled *bool `type:"boolean"`
2660
2661	// A string that represents the name of an index field. CloudSearch supports
2662	// regular index fields as well as dynamic fields. A dynamic field's name defines
2663	// a pattern that begins or ends with a wildcard. Any document fields that don't
2664	// map to a regular index field but do match a dynamic field's pattern are configured
2665	// with the dynamic field's indexing options.
2666	//
2667	// Regular field names begin with a letter and can contain the following characters:
2668	// a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
2669	// or end with a wildcard (*). The wildcard can also be the only character in
2670	// a dynamic field name. Multiple wildcards, and wildcards embedded within a
2671	// string are not supported.
2672	//
2673	// The name score is reserved and cannot be used as a field name. To reference
2674	// a document's ID, you can use the name _id.
2675	SourceField *string `min:"1" type:"string"`
2676}
2677
2678// String returns the string representation
2679func (s DateOptions) String() string {
2680	return awsutil.Prettify(s)
2681}
2682
2683// GoString returns the string representation
2684func (s DateOptions) GoString() string {
2685	return s.String()
2686}
2687
2688// Validate inspects the fields of the type to determine if they are valid.
2689func (s *DateOptions) Validate() error {
2690	invalidParams := request.ErrInvalidParams{Context: "DateOptions"}
2691	if s.SourceField != nil && len(*s.SourceField) < 1 {
2692		invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
2693	}
2694
2695	if invalidParams.Len() > 0 {
2696		return invalidParams
2697	}
2698	return nil
2699}
2700
2701// SetDefaultValue sets the DefaultValue field's value.
2702func (s *DateOptions) SetDefaultValue(v string) *DateOptions {
2703	s.DefaultValue = &v
2704	return s
2705}
2706
2707// SetFacetEnabled sets the FacetEnabled field's value.
2708func (s *DateOptions) SetFacetEnabled(v bool) *DateOptions {
2709	s.FacetEnabled = &v
2710	return s
2711}
2712
2713// SetReturnEnabled sets the ReturnEnabled field's value.
2714func (s *DateOptions) SetReturnEnabled(v bool) *DateOptions {
2715	s.ReturnEnabled = &v
2716	return s
2717}
2718
2719// SetSearchEnabled sets the SearchEnabled field's value.
2720func (s *DateOptions) SetSearchEnabled(v bool) *DateOptions {
2721	s.SearchEnabled = &v
2722	return s
2723}
2724
2725// SetSortEnabled sets the SortEnabled field's value.
2726func (s *DateOptions) SetSortEnabled(v bool) *DateOptions {
2727	s.SortEnabled = &v
2728	return s
2729}
2730
2731// SetSourceField sets the SourceField field's value.
2732func (s *DateOptions) SetSourceField(v string) *DateOptions {
2733	s.SourceField = &v
2734	return s
2735}
2736
2737// Container for the parameters to the DefineAnalysisScheme operation. Specifies
2738// the name of the domain you want to update and the analysis scheme configuration.
2739type DefineAnalysisSchemeInput struct {
2740	_ struct{} `type:"structure"`
2741
2742	// Configuration information for an analysis scheme. Each analysis scheme has
2743	// a unique name and specifies the language of the text to be processed. The
2744	// following options can be configured for an analysis scheme: Synonyms, Stopwords,
2745	// StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
2746	//
2747	// AnalysisScheme is a required field
2748	AnalysisScheme *AnalysisScheme `type:"structure" required:"true"`
2749
2750	// A string that represents the name of a domain. Domain names are unique across
2751	// the domains owned by an account within an AWS region. Domain names start
2752	// with a letter or number and can contain the following characters: a-z (lowercase),
2753	// 0-9, and - (hyphen).
2754	//
2755	// DomainName is a required field
2756	DomainName *string `min:"3" type:"string" required:"true"`
2757}
2758
2759// String returns the string representation
2760func (s DefineAnalysisSchemeInput) String() string {
2761	return awsutil.Prettify(s)
2762}
2763
2764// GoString returns the string representation
2765func (s DefineAnalysisSchemeInput) GoString() string {
2766	return s.String()
2767}
2768
2769// Validate inspects the fields of the type to determine if they are valid.
2770func (s *DefineAnalysisSchemeInput) Validate() error {
2771	invalidParams := request.ErrInvalidParams{Context: "DefineAnalysisSchemeInput"}
2772	if s.AnalysisScheme == nil {
2773		invalidParams.Add(request.NewErrParamRequired("AnalysisScheme"))
2774	}
2775	if s.DomainName == nil {
2776		invalidParams.Add(request.NewErrParamRequired("DomainName"))
2777	}
2778	if s.DomainName != nil && len(*s.DomainName) < 3 {
2779		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
2780	}
2781	if s.AnalysisScheme != nil {
2782		if err := s.AnalysisScheme.Validate(); err != nil {
2783			invalidParams.AddNested("AnalysisScheme", err.(request.ErrInvalidParams))
2784		}
2785	}
2786
2787	if invalidParams.Len() > 0 {
2788		return invalidParams
2789	}
2790	return nil
2791}
2792
2793// SetAnalysisScheme sets the AnalysisScheme field's value.
2794func (s *DefineAnalysisSchemeInput) SetAnalysisScheme(v *AnalysisScheme) *DefineAnalysisSchemeInput {
2795	s.AnalysisScheme = v
2796	return s
2797}
2798
2799// SetDomainName sets the DomainName field's value.
2800func (s *DefineAnalysisSchemeInput) SetDomainName(v string) *DefineAnalysisSchemeInput {
2801	s.DomainName = &v
2802	return s
2803}
2804
2805// The result of a DefineAnalysisScheme request. Contains the status of the
2806// newly-configured analysis scheme.
2807type DefineAnalysisSchemeOutput struct {
2808	_ struct{} `type:"structure"`
2809
2810	// The status and configuration of an AnalysisScheme.
2811	//
2812	// AnalysisScheme is a required field
2813	AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
2814}
2815
2816// String returns the string representation
2817func (s DefineAnalysisSchemeOutput) String() string {
2818	return awsutil.Prettify(s)
2819}
2820
2821// GoString returns the string representation
2822func (s DefineAnalysisSchemeOutput) GoString() string {
2823	return s.String()
2824}
2825
2826// SetAnalysisScheme sets the AnalysisScheme field's value.
2827func (s *DefineAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DefineAnalysisSchemeOutput {
2828	s.AnalysisScheme = v
2829	return s
2830}
2831
2832// Container for the parameters to the DefineExpression operation. Specifies
2833// the name of the domain you want to update and the expression you want to
2834// configure.
2835type DefineExpressionInput struct {
2836	_ struct{} `type:"structure"`
2837
2838	// A string that represents the name of a domain. Domain names are unique across
2839	// the domains owned by an account within an AWS region. Domain names start
2840	// with a letter or number and can contain the following characters: a-z (lowercase),
2841	// 0-9, and - (hyphen).
2842	//
2843	// DomainName is a required field
2844	DomainName *string `min:"3" type:"string" required:"true"`
2845
2846	// A named expression that can be evaluated at search time. Can be used to sort
2847	// the search results, define other expressions, or return computed information
2848	// in the search results.
2849	//
2850	// Expression is a required field
2851	Expression *Expression `type:"structure" required:"true"`
2852}
2853
2854// String returns the string representation
2855func (s DefineExpressionInput) String() string {
2856	return awsutil.Prettify(s)
2857}
2858
2859// GoString returns the string representation
2860func (s DefineExpressionInput) GoString() string {
2861	return s.String()
2862}
2863
2864// Validate inspects the fields of the type to determine if they are valid.
2865func (s *DefineExpressionInput) Validate() error {
2866	invalidParams := request.ErrInvalidParams{Context: "DefineExpressionInput"}
2867	if s.DomainName == nil {
2868		invalidParams.Add(request.NewErrParamRequired("DomainName"))
2869	}
2870	if s.DomainName != nil && len(*s.DomainName) < 3 {
2871		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
2872	}
2873	if s.Expression == nil {
2874		invalidParams.Add(request.NewErrParamRequired("Expression"))
2875	}
2876	if s.Expression != nil {
2877		if err := s.Expression.Validate(); err != nil {
2878			invalidParams.AddNested("Expression", err.(request.ErrInvalidParams))
2879		}
2880	}
2881
2882	if invalidParams.Len() > 0 {
2883		return invalidParams
2884	}
2885	return nil
2886}
2887
2888// SetDomainName sets the DomainName field's value.
2889func (s *DefineExpressionInput) SetDomainName(v string) *DefineExpressionInput {
2890	s.DomainName = &v
2891	return s
2892}
2893
2894// SetExpression sets the Expression field's value.
2895func (s *DefineExpressionInput) SetExpression(v *Expression) *DefineExpressionInput {
2896	s.Expression = v
2897	return s
2898}
2899
2900// The result of a DefineExpression request. Contains the status of the newly-configured
2901// expression.
2902type DefineExpressionOutput struct {
2903	_ struct{} `type:"structure"`
2904
2905	// The value of an Expression and its current status.
2906	//
2907	// Expression is a required field
2908	Expression *ExpressionStatus `type:"structure" required:"true"`
2909}
2910
2911// String returns the string representation
2912func (s DefineExpressionOutput) String() string {
2913	return awsutil.Prettify(s)
2914}
2915
2916// GoString returns the string representation
2917func (s DefineExpressionOutput) GoString() string {
2918	return s.String()
2919}
2920
2921// SetExpression sets the Expression field's value.
2922func (s *DefineExpressionOutput) SetExpression(v *ExpressionStatus) *DefineExpressionOutput {
2923	s.Expression = v
2924	return s
2925}
2926
2927// Container for the parameters to the DefineIndexField operation. Specifies
2928// the name of the domain you want to update and the index field configuration.
2929type DefineIndexFieldInput struct {
2930	_ struct{} `type:"structure"`
2931
2932	// A string that represents the name of a domain. Domain names are unique across
2933	// the domains owned by an account within an AWS region. Domain names start
2934	// with a letter or number and can contain the following characters: a-z (lowercase),
2935	// 0-9, and - (hyphen).
2936	//
2937	// DomainName is a required field
2938	DomainName *string `min:"3" type:"string" required:"true"`
2939
2940	// The index field and field options you want to configure.
2941	//
2942	// IndexField is a required field
2943	IndexField *IndexField `type:"structure" required:"true"`
2944}
2945
2946// String returns the string representation
2947func (s DefineIndexFieldInput) String() string {
2948	return awsutil.Prettify(s)
2949}
2950
2951// GoString returns the string representation
2952func (s DefineIndexFieldInput) GoString() string {
2953	return s.String()
2954}
2955
2956// Validate inspects the fields of the type to determine if they are valid.
2957func (s *DefineIndexFieldInput) Validate() error {
2958	invalidParams := request.ErrInvalidParams{Context: "DefineIndexFieldInput"}
2959	if s.DomainName == nil {
2960		invalidParams.Add(request.NewErrParamRequired("DomainName"))
2961	}
2962	if s.DomainName != nil && len(*s.DomainName) < 3 {
2963		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
2964	}
2965	if s.IndexField == nil {
2966		invalidParams.Add(request.NewErrParamRequired("IndexField"))
2967	}
2968	if s.IndexField != nil {
2969		if err := s.IndexField.Validate(); err != nil {
2970			invalidParams.AddNested("IndexField", err.(request.ErrInvalidParams))
2971		}
2972	}
2973
2974	if invalidParams.Len() > 0 {
2975		return invalidParams
2976	}
2977	return nil
2978}
2979
2980// SetDomainName sets the DomainName field's value.
2981func (s *DefineIndexFieldInput) SetDomainName(v string) *DefineIndexFieldInput {
2982	s.DomainName = &v
2983	return s
2984}
2985
2986// SetIndexField sets the IndexField field's value.
2987func (s *DefineIndexFieldInput) SetIndexField(v *IndexField) *DefineIndexFieldInput {
2988	s.IndexField = v
2989	return s
2990}
2991
2992// The result of a DefineIndexField request. Contains the status of the newly-configured
2993// index field.
2994type DefineIndexFieldOutput struct {
2995	_ struct{} `type:"structure"`
2996
2997	// The value of an IndexField and its current status.
2998	//
2999	// IndexField is a required field
3000	IndexField *IndexFieldStatus `type:"structure" required:"true"`
3001}
3002
3003// String returns the string representation
3004func (s DefineIndexFieldOutput) String() string {
3005	return awsutil.Prettify(s)
3006}
3007
3008// GoString returns the string representation
3009func (s DefineIndexFieldOutput) GoString() string {
3010	return s.String()
3011}
3012
3013// SetIndexField sets the IndexField field's value.
3014func (s *DefineIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DefineIndexFieldOutput {
3015	s.IndexField = v
3016	return s
3017}
3018
3019// Container for the parameters to the DefineSuggester operation. Specifies
3020// the name of the domain you want to update and the suggester configuration.
3021type DefineSuggesterInput struct {
3022	_ struct{} `type:"structure"`
3023
3024	// A string that represents the name of a domain. Domain names are unique across
3025	// the domains owned by an account within an AWS region. Domain names start
3026	// with a letter or number and can contain the following characters: a-z (lowercase),
3027	// 0-9, and - (hyphen).
3028	//
3029	// DomainName is a required field
3030	DomainName *string `min:"3" type:"string" required:"true"`
3031
3032	// Configuration information for a search suggester. Each suggester has a unique
3033	// name and specifies the text field you want to use for suggestions. The following
3034	// options can be configured for a suggester: FuzzyMatching, SortExpression.
3035	//
3036	// Suggester is a required field
3037	Suggester *Suggester `type:"structure" required:"true"`
3038}
3039
3040// String returns the string representation
3041func (s DefineSuggesterInput) String() string {
3042	return awsutil.Prettify(s)
3043}
3044
3045// GoString returns the string representation
3046func (s DefineSuggesterInput) GoString() string {
3047	return s.String()
3048}
3049
3050// Validate inspects the fields of the type to determine if they are valid.
3051func (s *DefineSuggesterInput) Validate() error {
3052	invalidParams := request.ErrInvalidParams{Context: "DefineSuggesterInput"}
3053	if s.DomainName == nil {
3054		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3055	}
3056	if s.DomainName != nil && len(*s.DomainName) < 3 {
3057		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3058	}
3059	if s.Suggester == nil {
3060		invalidParams.Add(request.NewErrParamRequired("Suggester"))
3061	}
3062	if s.Suggester != nil {
3063		if err := s.Suggester.Validate(); err != nil {
3064			invalidParams.AddNested("Suggester", err.(request.ErrInvalidParams))
3065		}
3066	}
3067
3068	if invalidParams.Len() > 0 {
3069		return invalidParams
3070	}
3071	return nil
3072}
3073
3074// SetDomainName sets the DomainName field's value.
3075func (s *DefineSuggesterInput) SetDomainName(v string) *DefineSuggesterInput {
3076	s.DomainName = &v
3077	return s
3078}
3079
3080// SetSuggester sets the Suggester field's value.
3081func (s *DefineSuggesterInput) SetSuggester(v *Suggester) *DefineSuggesterInput {
3082	s.Suggester = v
3083	return s
3084}
3085
3086// The result of a DefineSuggester request. Contains the status of the newly-configured
3087// suggester.
3088type DefineSuggesterOutput struct {
3089	_ struct{} `type:"structure"`
3090
3091	// The value of a Suggester and its current status.
3092	//
3093	// Suggester is a required field
3094	Suggester *SuggesterStatus `type:"structure" required:"true"`
3095}
3096
3097// String returns the string representation
3098func (s DefineSuggesterOutput) String() string {
3099	return awsutil.Prettify(s)
3100}
3101
3102// GoString returns the string representation
3103func (s DefineSuggesterOutput) GoString() string {
3104	return s.String()
3105}
3106
3107// SetSuggester sets the Suggester field's value.
3108func (s *DefineSuggesterOutput) SetSuggester(v *SuggesterStatus) *DefineSuggesterOutput {
3109	s.Suggester = v
3110	return s
3111}
3112
3113// Container for the parameters to the DeleteAnalysisScheme operation. Specifies
3114// the name of the domain you want to update and the analysis scheme you want
3115// to delete.
3116type DeleteAnalysisSchemeInput struct {
3117	_ struct{} `type:"structure"`
3118
3119	// The name of the analysis scheme you want to delete.
3120	//
3121	// AnalysisSchemeName is a required field
3122	AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
3123
3124	// A string that represents the name of a domain. Domain names are unique across
3125	// the domains owned by an account within an AWS region. Domain names start
3126	// with a letter or number and can contain the following characters: a-z (lowercase),
3127	// 0-9, and - (hyphen).
3128	//
3129	// DomainName is a required field
3130	DomainName *string `min:"3" type:"string" required:"true"`
3131}
3132
3133// String returns the string representation
3134func (s DeleteAnalysisSchemeInput) String() string {
3135	return awsutil.Prettify(s)
3136}
3137
3138// GoString returns the string representation
3139func (s DeleteAnalysisSchemeInput) GoString() string {
3140	return s.String()
3141}
3142
3143// Validate inspects the fields of the type to determine if they are valid.
3144func (s *DeleteAnalysisSchemeInput) Validate() error {
3145	invalidParams := request.ErrInvalidParams{Context: "DeleteAnalysisSchemeInput"}
3146	if s.AnalysisSchemeName == nil {
3147		invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
3148	}
3149	if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
3150		invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
3151	}
3152	if s.DomainName == nil {
3153		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3154	}
3155	if s.DomainName != nil && len(*s.DomainName) < 3 {
3156		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3157	}
3158
3159	if invalidParams.Len() > 0 {
3160		return invalidParams
3161	}
3162	return nil
3163}
3164
3165// SetAnalysisSchemeName sets the AnalysisSchemeName field's value.
3166func (s *DeleteAnalysisSchemeInput) SetAnalysisSchemeName(v string) *DeleteAnalysisSchemeInput {
3167	s.AnalysisSchemeName = &v
3168	return s
3169}
3170
3171// SetDomainName sets the DomainName field's value.
3172func (s *DeleteAnalysisSchemeInput) SetDomainName(v string) *DeleteAnalysisSchemeInput {
3173	s.DomainName = &v
3174	return s
3175}
3176
3177// The result of a DeleteAnalysisScheme request. Contains the status of the
3178// deleted analysis scheme.
3179type DeleteAnalysisSchemeOutput struct {
3180	_ struct{} `type:"structure"`
3181
3182	// The status of the analysis scheme being deleted.
3183	//
3184	// AnalysisScheme is a required field
3185	AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
3186}
3187
3188// String returns the string representation
3189func (s DeleteAnalysisSchemeOutput) String() string {
3190	return awsutil.Prettify(s)
3191}
3192
3193// GoString returns the string representation
3194func (s DeleteAnalysisSchemeOutput) GoString() string {
3195	return s.String()
3196}
3197
3198// SetAnalysisScheme sets the AnalysisScheme field's value.
3199func (s *DeleteAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DeleteAnalysisSchemeOutput {
3200	s.AnalysisScheme = v
3201	return s
3202}
3203
3204// Container for the parameters to the DeleteDomain operation. Specifies the
3205// name of the domain you want to delete.
3206type DeleteDomainInput struct {
3207	_ struct{} `type:"structure"`
3208
3209	// The name of the domain you want to permanently delete.
3210	//
3211	// DomainName is a required field
3212	DomainName *string `min:"3" type:"string" required:"true"`
3213}
3214
3215// String returns the string representation
3216func (s DeleteDomainInput) String() string {
3217	return awsutil.Prettify(s)
3218}
3219
3220// GoString returns the string representation
3221func (s DeleteDomainInput) GoString() string {
3222	return s.String()
3223}
3224
3225// Validate inspects the fields of the type to determine if they are valid.
3226func (s *DeleteDomainInput) Validate() error {
3227	invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"}
3228	if s.DomainName == nil {
3229		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3230	}
3231	if s.DomainName != nil && len(*s.DomainName) < 3 {
3232		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3233	}
3234
3235	if invalidParams.Len() > 0 {
3236		return invalidParams
3237	}
3238	return nil
3239}
3240
3241// SetDomainName sets the DomainName field's value.
3242func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput {
3243	s.DomainName = &v
3244	return s
3245}
3246
3247// The result of a DeleteDomain request. Contains the status of a newly deleted
3248// domain, or no status if the domain has already been completely deleted.
3249type DeleteDomainOutput struct {
3250	_ struct{} `type:"structure"`
3251
3252	// The current status of the search domain.
3253	DomainStatus *DomainStatus `type:"structure"`
3254}
3255
3256// String returns the string representation
3257func (s DeleteDomainOutput) String() string {
3258	return awsutil.Prettify(s)
3259}
3260
3261// GoString returns the string representation
3262func (s DeleteDomainOutput) GoString() string {
3263	return s.String()
3264}
3265
3266// SetDomainStatus sets the DomainStatus field's value.
3267func (s *DeleteDomainOutput) SetDomainStatus(v *DomainStatus) *DeleteDomainOutput {
3268	s.DomainStatus = v
3269	return s
3270}
3271
3272// Container for the parameters to the DeleteExpression operation. Specifies
3273// the name of the domain you want to update and the name of the expression
3274// you want to delete.
3275type DeleteExpressionInput struct {
3276	_ struct{} `type:"structure"`
3277
3278	// A string that represents the name of a domain. Domain names are unique across
3279	// the domains owned by an account within an AWS region. Domain names start
3280	// with a letter or number and can contain the following characters: a-z (lowercase),
3281	// 0-9, and - (hyphen).
3282	//
3283	// DomainName is a required field
3284	DomainName *string `min:"3" type:"string" required:"true"`
3285
3286	// The name of the Expression to delete.
3287	//
3288	// ExpressionName is a required field
3289	ExpressionName *string `min:"1" type:"string" required:"true"`
3290}
3291
3292// String returns the string representation
3293func (s DeleteExpressionInput) String() string {
3294	return awsutil.Prettify(s)
3295}
3296
3297// GoString returns the string representation
3298func (s DeleteExpressionInput) GoString() string {
3299	return s.String()
3300}
3301
3302// Validate inspects the fields of the type to determine if they are valid.
3303func (s *DeleteExpressionInput) Validate() error {
3304	invalidParams := request.ErrInvalidParams{Context: "DeleteExpressionInput"}
3305	if s.DomainName == nil {
3306		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3307	}
3308	if s.DomainName != nil && len(*s.DomainName) < 3 {
3309		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3310	}
3311	if s.ExpressionName == nil {
3312		invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
3313	}
3314	if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
3315		invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
3316	}
3317
3318	if invalidParams.Len() > 0 {
3319		return invalidParams
3320	}
3321	return nil
3322}
3323
3324// SetDomainName sets the DomainName field's value.
3325func (s *DeleteExpressionInput) SetDomainName(v string) *DeleteExpressionInput {
3326	s.DomainName = &v
3327	return s
3328}
3329
3330// SetExpressionName sets the ExpressionName field's value.
3331func (s *DeleteExpressionInput) SetExpressionName(v string) *DeleteExpressionInput {
3332	s.ExpressionName = &v
3333	return s
3334}
3335
3336// The result of a DeleteExpression request. Specifies the expression being
3337// deleted.
3338type DeleteExpressionOutput struct {
3339	_ struct{} `type:"structure"`
3340
3341	// The status of the expression being deleted.
3342	//
3343	// Expression is a required field
3344	Expression *ExpressionStatus `type:"structure" required:"true"`
3345}
3346
3347// String returns the string representation
3348func (s DeleteExpressionOutput) String() string {
3349	return awsutil.Prettify(s)
3350}
3351
3352// GoString returns the string representation
3353func (s DeleteExpressionOutput) GoString() string {
3354	return s.String()
3355}
3356
3357// SetExpression sets the Expression field's value.
3358func (s *DeleteExpressionOutput) SetExpression(v *ExpressionStatus) *DeleteExpressionOutput {
3359	s.Expression = v
3360	return s
3361}
3362
3363// Container for the parameters to the DeleteIndexField operation. Specifies
3364// the name of the domain you want to update and the name of the index field
3365// you want to delete.
3366type DeleteIndexFieldInput struct {
3367	_ struct{} `type:"structure"`
3368
3369	// A string that represents the name of a domain. Domain names are unique across
3370	// the domains owned by an account within an AWS region. Domain names start
3371	// with a letter or number and can contain the following characters: a-z (lowercase),
3372	// 0-9, and - (hyphen).
3373	//
3374	// DomainName is a required field
3375	DomainName *string `min:"3" type:"string" required:"true"`
3376
3377	// The name of the index field your want to remove from the domain's indexing
3378	// options.
3379	//
3380	// IndexFieldName is a required field
3381	IndexFieldName *string `min:"1" type:"string" required:"true"`
3382}
3383
3384// String returns the string representation
3385func (s DeleteIndexFieldInput) String() string {
3386	return awsutil.Prettify(s)
3387}
3388
3389// GoString returns the string representation
3390func (s DeleteIndexFieldInput) GoString() string {
3391	return s.String()
3392}
3393
3394// Validate inspects the fields of the type to determine if they are valid.
3395func (s *DeleteIndexFieldInput) Validate() error {
3396	invalidParams := request.ErrInvalidParams{Context: "DeleteIndexFieldInput"}
3397	if s.DomainName == nil {
3398		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3399	}
3400	if s.DomainName != nil && len(*s.DomainName) < 3 {
3401		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3402	}
3403	if s.IndexFieldName == nil {
3404		invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
3405	}
3406	if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
3407		invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
3408	}
3409
3410	if invalidParams.Len() > 0 {
3411		return invalidParams
3412	}
3413	return nil
3414}
3415
3416// SetDomainName sets the DomainName field's value.
3417func (s *DeleteIndexFieldInput) SetDomainName(v string) *DeleteIndexFieldInput {
3418	s.DomainName = &v
3419	return s
3420}
3421
3422// SetIndexFieldName sets the IndexFieldName field's value.
3423func (s *DeleteIndexFieldInput) SetIndexFieldName(v string) *DeleteIndexFieldInput {
3424	s.IndexFieldName = &v
3425	return s
3426}
3427
3428// The result of a DeleteIndexField request.
3429type DeleteIndexFieldOutput struct {
3430	_ struct{} `type:"structure"`
3431
3432	// The status of the index field being deleted.
3433	//
3434	// IndexField is a required field
3435	IndexField *IndexFieldStatus `type:"structure" required:"true"`
3436}
3437
3438// String returns the string representation
3439func (s DeleteIndexFieldOutput) String() string {
3440	return awsutil.Prettify(s)
3441}
3442
3443// GoString returns the string representation
3444func (s DeleteIndexFieldOutput) GoString() string {
3445	return s.String()
3446}
3447
3448// SetIndexField sets the IndexField field's value.
3449func (s *DeleteIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DeleteIndexFieldOutput {
3450	s.IndexField = v
3451	return s
3452}
3453
3454// Container for the parameters to the DeleteSuggester operation. Specifies
3455// the name of the domain you want to update and name of the suggester you want
3456// to delete.
3457type DeleteSuggesterInput struct {
3458	_ struct{} `type:"structure"`
3459
3460	// A string that represents the name of a domain. Domain names are unique across
3461	// the domains owned by an account within an AWS region. Domain names start
3462	// with a letter or number and can contain the following characters: a-z (lowercase),
3463	// 0-9, and - (hyphen).
3464	//
3465	// DomainName is a required field
3466	DomainName *string `min:"3" type:"string" required:"true"`
3467
3468	// Specifies the name of the suggester you want to delete.
3469	//
3470	// SuggesterName is a required field
3471	SuggesterName *string `min:"1" type:"string" required:"true"`
3472}
3473
3474// String returns the string representation
3475func (s DeleteSuggesterInput) String() string {
3476	return awsutil.Prettify(s)
3477}
3478
3479// GoString returns the string representation
3480func (s DeleteSuggesterInput) GoString() string {
3481	return s.String()
3482}
3483
3484// Validate inspects the fields of the type to determine if they are valid.
3485func (s *DeleteSuggesterInput) Validate() error {
3486	invalidParams := request.ErrInvalidParams{Context: "DeleteSuggesterInput"}
3487	if s.DomainName == nil {
3488		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3489	}
3490	if s.DomainName != nil && len(*s.DomainName) < 3 {
3491		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3492	}
3493	if s.SuggesterName == nil {
3494		invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
3495	}
3496	if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
3497		invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
3498	}
3499
3500	if invalidParams.Len() > 0 {
3501		return invalidParams
3502	}
3503	return nil
3504}
3505
3506// SetDomainName sets the DomainName field's value.
3507func (s *DeleteSuggesterInput) SetDomainName(v string) *DeleteSuggesterInput {
3508	s.DomainName = &v
3509	return s
3510}
3511
3512// SetSuggesterName sets the SuggesterName field's value.
3513func (s *DeleteSuggesterInput) SetSuggesterName(v string) *DeleteSuggesterInput {
3514	s.SuggesterName = &v
3515	return s
3516}
3517
3518// The result of a DeleteSuggester request. Contains the status of the deleted
3519// suggester.
3520type DeleteSuggesterOutput struct {
3521	_ struct{} `type:"structure"`
3522
3523	// The status of the suggester being deleted.
3524	//
3525	// Suggester is a required field
3526	Suggester *SuggesterStatus `type:"structure" required:"true"`
3527}
3528
3529// String returns the string representation
3530func (s DeleteSuggesterOutput) String() string {
3531	return awsutil.Prettify(s)
3532}
3533
3534// GoString returns the string representation
3535func (s DeleteSuggesterOutput) GoString() string {
3536	return s.String()
3537}
3538
3539// SetSuggester sets the Suggester field's value.
3540func (s *DeleteSuggesterOutput) SetSuggester(v *SuggesterStatus) *DeleteSuggesterOutput {
3541	s.Suggester = v
3542	return s
3543}
3544
3545// Container for the parameters to the DescribeAnalysisSchemes operation. Specifies
3546// the name of the domain you want to describe. To limit the response to particular
3547// analysis schemes, specify the names of the analysis schemes you want to describe.
3548// To show the active configuration and exclude any pending changes, set the
3549// Deployed option to true.
3550type DescribeAnalysisSchemesInput struct {
3551	_ struct{} `type:"structure"`
3552
3553	// The analysis schemes you want to describe.
3554	AnalysisSchemeNames []*string `type:"list"`
3555
3556	// Whether to display the deployed configuration (true) or include any pending
3557	// changes (false). Defaults to false.
3558	Deployed *bool `type:"boolean"`
3559
3560	// The name of the domain you want to describe.
3561	//
3562	// DomainName is a required field
3563	DomainName *string `min:"3" type:"string" required:"true"`
3564}
3565
3566// String returns the string representation
3567func (s DescribeAnalysisSchemesInput) String() string {
3568	return awsutil.Prettify(s)
3569}
3570
3571// GoString returns the string representation
3572func (s DescribeAnalysisSchemesInput) GoString() string {
3573	return s.String()
3574}
3575
3576// Validate inspects the fields of the type to determine if they are valid.
3577func (s *DescribeAnalysisSchemesInput) Validate() error {
3578	invalidParams := request.ErrInvalidParams{Context: "DescribeAnalysisSchemesInput"}
3579	if s.DomainName == nil {
3580		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3581	}
3582	if s.DomainName != nil && len(*s.DomainName) < 3 {
3583		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3584	}
3585
3586	if invalidParams.Len() > 0 {
3587		return invalidParams
3588	}
3589	return nil
3590}
3591
3592// SetAnalysisSchemeNames sets the AnalysisSchemeNames field's value.
3593func (s *DescribeAnalysisSchemesInput) SetAnalysisSchemeNames(v []*string) *DescribeAnalysisSchemesInput {
3594	s.AnalysisSchemeNames = v
3595	return s
3596}
3597
3598// SetDeployed sets the Deployed field's value.
3599func (s *DescribeAnalysisSchemesInput) SetDeployed(v bool) *DescribeAnalysisSchemesInput {
3600	s.Deployed = &v
3601	return s
3602}
3603
3604// SetDomainName sets the DomainName field's value.
3605func (s *DescribeAnalysisSchemesInput) SetDomainName(v string) *DescribeAnalysisSchemesInput {
3606	s.DomainName = &v
3607	return s
3608}
3609
3610// The result of a DescribeAnalysisSchemes request. Contains the analysis schemes
3611// configured for the domain specified in the request.
3612type DescribeAnalysisSchemesOutput struct {
3613	_ struct{} `type:"structure"`
3614
3615	// The analysis scheme descriptions.
3616	//
3617	// AnalysisSchemes is a required field
3618	AnalysisSchemes []*AnalysisSchemeStatus `type:"list" required:"true"`
3619}
3620
3621// String returns the string representation
3622func (s DescribeAnalysisSchemesOutput) String() string {
3623	return awsutil.Prettify(s)
3624}
3625
3626// GoString returns the string representation
3627func (s DescribeAnalysisSchemesOutput) GoString() string {
3628	return s.String()
3629}
3630
3631// SetAnalysisSchemes sets the AnalysisSchemes field's value.
3632func (s *DescribeAnalysisSchemesOutput) SetAnalysisSchemes(v []*AnalysisSchemeStatus) *DescribeAnalysisSchemesOutput {
3633	s.AnalysisSchemes = v
3634	return s
3635}
3636
3637// Container for the parameters to the DescribeAvailabilityOptions operation.
3638// Specifies the name of the domain you want to describe. To show the active
3639// configuration and exclude any pending changes, set the Deployed option to
3640// true.
3641type DescribeAvailabilityOptionsInput struct {
3642	_ struct{} `type:"structure"`
3643
3644	// Whether to display the deployed configuration (true) or include any pending
3645	// changes (false). Defaults to false.
3646	Deployed *bool `type:"boolean"`
3647
3648	// The name of the domain you want to describe.
3649	//
3650	// DomainName is a required field
3651	DomainName *string `min:"3" type:"string" required:"true"`
3652}
3653
3654// String returns the string representation
3655func (s DescribeAvailabilityOptionsInput) String() string {
3656	return awsutil.Prettify(s)
3657}
3658
3659// GoString returns the string representation
3660func (s DescribeAvailabilityOptionsInput) GoString() string {
3661	return s.String()
3662}
3663
3664// Validate inspects the fields of the type to determine if they are valid.
3665func (s *DescribeAvailabilityOptionsInput) Validate() error {
3666	invalidParams := request.ErrInvalidParams{Context: "DescribeAvailabilityOptionsInput"}
3667	if s.DomainName == nil {
3668		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3669	}
3670	if s.DomainName != nil && len(*s.DomainName) < 3 {
3671		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3672	}
3673
3674	if invalidParams.Len() > 0 {
3675		return invalidParams
3676	}
3677	return nil
3678}
3679
3680// SetDeployed sets the Deployed field's value.
3681func (s *DescribeAvailabilityOptionsInput) SetDeployed(v bool) *DescribeAvailabilityOptionsInput {
3682	s.Deployed = &v
3683	return s
3684}
3685
3686// SetDomainName sets the DomainName field's value.
3687func (s *DescribeAvailabilityOptionsInput) SetDomainName(v string) *DescribeAvailabilityOptionsInput {
3688	s.DomainName = &v
3689	return s
3690}
3691
3692// The result of a DescribeAvailabilityOptions request. Indicates whether or
3693// not the Multi-AZ option is enabled for the domain specified in the request.
3694type DescribeAvailabilityOptionsOutput struct {
3695	_ struct{} `type:"structure"`
3696
3697	// The availability options configured for the domain. Indicates whether Multi-AZ
3698	// is enabled for the domain.
3699	AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
3700}
3701
3702// String returns the string representation
3703func (s DescribeAvailabilityOptionsOutput) String() string {
3704	return awsutil.Prettify(s)
3705}
3706
3707// GoString returns the string representation
3708func (s DescribeAvailabilityOptionsOutput) GoString() string {
3709	return s.String()
3710}
3711
3712// SetAvailabilityOptions sets the AvailabilityOptions field's value.
3713func (s *DescribeAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *DescribeAvailabilityOptionsOutput {
3714	s.AvailabilityOptions = v
3715	return s
3716}
3717
3718// Container for the parameters to the DescribeDomains operation. By default
3719// shows the status of all domains. To restrict the response to particular domains,
3720// specify the names of the domains you want to describe.
3721type DescribeDomainsInput struct {
3722	_ struct{} `type:"structure"`
3723
3724	// The names of the domains you want to include in the response.
3725	DomainNames []*string `type:"list"`
3726}
3727
3728// String returns the string representation
3729func (s DescribeDomainsInput) String() string {
3730	return awsutil.Prettify(s)
3731}
3732
3733// GoString returns the string representation
3734func (s DescribeDomainsInput) GoString() string {
3735	return s.String()
3736}
3737
3738// SetDomainNames sets the DomainNames field's value.
3739func (s *DescribeDomainsInput) SetDomainNames(v []*string) *DescribeDomainsInput {
3740	s.DomainNames = v
3741	return s
3742}
3743
3744// The result of a DescribeDomains request. Contains the status of the domains
3745// specified in the request or all domains owned by the account.
3746type DescribeDomainsOutput struct {
3747	_ struct{} `type:"structure"`
3748
3749	// A list that contains the status of each requested domain.
3750	//
3751	// DomainStatusList is a required field
3752	DomainStatusList []*DomainStatus `type:"list" required:"true"`
3753}
3754
3755// String returns the string representation
3756func (s DescribeDomainsOutput) String() string {
3757	return awsutil.Prettify(s)
3758}
3759
3760// GoString returns the string representation
3761func (s DescribeDomainsOutput) GoString() string {
3762	return s.String()
3763}
3764
3765// SetDomainStatusList sets the DomainStatusList field's value.
3766func (s *DescribeDomainsOutput) SetDomainStatusList(v []*DomainStatus) *DescribeDomainsOutput {
3767	s.DomainStatusList = v
3768	return s
3769}
3770
3771// Container for the parameters to the DescribeDomains operation. Specifies
3772// the name of the domain you want to describe. To restrict the response to
3773// particular expressions, specify the names of the expressions you want to
3774// describe. To show the active configuration and exclude any pending changes,
3775// set the Deployed option to true.
3776type DescribeExpressionsInput struct {
3777	_ struct{} `type:"structure"`
3778
3779	// Whether to display the deployed configuration (true) or include any pending
3780	// changes (false). Defaults to false.
3781	Deployed *bool `type:"boolean"`
3782
3783	// The name of the domain you want to describe.
3784	//
3785	// DomainName is a required field
3786	DomainName *string `min:"3" type:"string" required:"true"`
3787
3788	// Limits the DescribeExpressions response to the specified expressions. If
3789	// not specified, all expressions are shown.
3790	ExpressionNames []*string `type:"list"`
3791}
3792
3793// String returns the string representation
3794func (s DescribeExpressionsInput) String() string {
3795	return awsutil.Prettify(s)
3796}
3797
3798// GoString returns the string representation
3799func (s DescribeExpressionsInput) GoString() string {
3800	return s.String()
3801}
3802
3803// Validate inspects the fields of the type to determine if they are valid.
3804func (s *DescribeExpressionsInput) Validate() error {
3805	invalidParams := request.ErrInvalidParams{Context: "DescribeExpressionsInput"}
3806	if s.DomainName == nil {
3807		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3808	}
3809	if s.DomainName != nil && len(*s.DomainName) < 3 {
3810		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3811	}
3812
3813	if invalidParams.Len() > 0 {
3814		return invalidParams
3815	}
3816	return nil
3817}
3818
3819// SetDeployed sets the Deployed field's value.
3820func (s *DescribeExpressionsInput) SetDeployed(v bool) *DescribeExpressionsInput {
3821	s.Deployed = &v
3822	return s
3823}
3824
3825// SetDomainName sets the DomainName field's value.
3826func (s *DescribeExpressionsInput) SetDomainName(v string) *DescribeExpressionsInput {
3827	s.DomainName = &v
3828	return s
3829}
3830
3831// SetExpressionNames sets the ExpressionNames field's value.
3832func (s *DescribeExpressionsInput) SetExpressionNames(v []*string) *DescribeExpressionsInput {
3833	s.ExpressionNames = v
3834	return s
3835}
3836
3837// The result of a DescribeExpressions request. Contains the expressions configured
3838// for the domain specified in the request.
3839type DescribeExpressionsOutput struct {
3840	_ struct{} `type:"structure"`
3841
3842	// The expressions configured for the domain.
3843	//
3844	// Expressions is a required field
3845	Expressions []*ExpressionStatus `type:"list" required:"true"`
3846}
3847
3848// String returns the string representation
3849func (s DescribeExpressionsOutput) String() string {
3850	return awsutil.Prettify(s)
3851}
3852
3853// GoString returns the string representation
3854func (s DescribeExpressionsOutput) GoString() string {
3855	return s.String()
3856}
3857
3858// SetExpressions sets the Expressions field's value.
3859func (s *DescribeExpressionsOutput) SetExpressions(v []*ExpressionStatus) *DescribeExpressionsOutput {
3860	s.Expressions = v
3861	return s
3862}
3863
3864// Container for the parameters to the DescribeIndexFields operation. Specifies
3865// the name of the domain you want to describe. To restrict the response to
3866// particular index fields, specify the names of the index fields you want to
3867// describe. To show the active configuration and exclude any pending changes,
3868// set the Deployed option to true.
3869type DescribeIndexFieldsInput struct {
3870	_ struct{} `type:"structure"`
3871
3872	// Whether to display the deployed configuration (true) or include any pending
3873	// changes (false). Defaults to false.
3874	Deployed *bool `type:"boolean"`
3875
3876	// The name of the domain you want to describe.
3877	//
3878	// DomainName is a required field
3879	DomainName *string `min:"3" type:"string" required:"true"`
3880
3881	// A list of the index fields you want to describe. If not specified, information
3882	// is returned for all configured index fields.
3883	FieldNames []*string `type:"list"`
3884}
3885
3886// String returns the string representation
3887func (s DescribeIndexFieldsInput) String() string {
3888	return awsutil.Prettify(s)
3889}
3890
3891// GoString returns the string representation
3892func (s DescribeIndexFieldsInput) GoString() string {
3893	return s.String()
3894}
3895
3896// Validate inspects the fields of the type to determine if they are valid.
3897func (s *DescribeIndexFieldsInput) Validate() error {
3898	invalidParams := request.ErrInvalidParams{Context: "DescribeIndexFieldsInput"}
3899	if s.DomainName == nil {
3900		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3901	}
3902	if s.DomainName != nil && len(*s.DomainName) < 3 {
3903		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3904	}
3905
3906	if invalidParams.Len() > 0 {
3907		return invalidParams
3908	}
3909	return nil
3910}
3911
3912// SetDeployed sets the Deployed field's value.
3913func (s *DescribeIndexFieldsInput) SetDeployed(v bool) *DescribeIndexFieldsInput {
3914	s.Deployed = &v
3915	return s
3916}
3917
3918// SetDomainName sets the DomainName field's value.
3919func (s *DescribeIndexFieldsInput) SetDomainName(v string) *DescribeIndexFieldsInput {
3920	s.DomainName = &v
3921	return s
3922}
3923
3924// SetFieldNames sets the FieldNames field's value.
3925func (s *DescribeIndexFieldsInput) SetFieldNames(v []*string) *DescribeIndexFieldsInput {
3926	s.FieldNames = v
3927	return s
3928}
3929
3930// The result of a DescribeIndexFields request. Contains the index fields configured
3931// for the domain specified in the request.
3932type DescribeIndexFieldsOutput struct {
3933	_ struct{} `type:"structure"`
3934
3935	// The index fields configured for the domain.
3936	//
3937	// IndexFields is a required field
3938	IndexFields []*IndexFieldStatus `type:"list" required:"true"`
3939}
3940
3941// String returns the string representation
3942func (s DescribeIndexFieldsOutput) String() string {
3943	return awsutil.Prettify(s)
3944}
3945
3946// GoString returns the string representation
3947func (s DescribeIndexFieldsOutput) GoString() string {
3948	return s.String()
3949}
3950
3951// SetIndexFields sets the IndexFields field's value.
3952func (s *DescribeIndexFieldsOutput) SetIndexFields(v []*IndexFieldStatus) *DescribeIndexFieldsOutput {
3953	s.IndexFields = v
3954	return s
3955}
3956
3957// Container for the parameters to the DescribeScalingParameters operation.
3958// Specifies the name of the domain you want to describe.
3959type DescribeScalingParametersInput struct {
3960	_ struct{} `type:"structure"`
3961
3962	// A string that represents the name of a domain. Domain names are unique across
3963	// the domains owned by an account within an AWS region. Domain names start
3964	// with a letter or number and can contain the following characters: a-z (lowercase),
3965	// 0-9, and - (hyphen).
3966	//
3967	// DomainName is a required field
3968	DomainName *string `min:"3" type:"string" required:"true"`
3969}
3970
3971// String returns the string representation
3972func (s DescribeScalingParametersInput) String() string {
3973	return awsutil.Prettify(s)
3974}
3975
3976// GoString returns the string representation
3977func (s DescribeScalingParametersInput) GoString() string {
3978	return s.String()
3979}
3980
3981// Validate inspects the fields of the type to determine if they are valid.
3982func (s *DescribeScalingParametersInput) Validate() error {
3983	invalidParams := request.ErrInvalidParams{Context: "DescribeScalingParametersInput"}
3984	if s.DomainName == nil {
3985		invalidParams.Add(request.NewErrParamRequired("DomainName"))
3986	}
3987	if s.DomainName != nil && len(*s.DomainName) < 3 {
3988		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
3989	}
3990
3991	if invalidParams.Len() > 0 {
3992		return invalidParams
3993	}
3994	return nil
3995}
3996
3997// SetDomainName sets the DomainName field's value.
3998func (s *DescribeScalingParametersInput) SetDomainName(v string) *DescribeScalingParametersInput {
3999	s.DomainName = &v
4000	return s
4001}
4002
4003// The result of a DescribeScalingParameters request. Contains the scaling parameters
4004// configured for the domain specified in the request.
4005type DescribeScalingParametersOutput struct {
4006	_ struct{} `type:"structure"`
4007
4008	// The status and configuration of a search domain's scaling parameters.
4009	//
4010	// ScalingParameters is a required field
4011	ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
4012}
4013
4014// String returns the string representation
4015func (s DescribeScalingParametersOutput) String() string {
4016	return awsutil.Prettify(s)
4017}
4018
4019// GoString returns the string representation
4020func (s DescribeScalingParametersOutput) GoString() string {
4021	return s.String()
4022}
4023
4024// SetScalingParameters sets the ScalingParameters field's value.
4025func (s *DescribeScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *DescribeScalingParametersOutput {
4026	s.ScalingParameters = v
4027	return s
4028}
4029
4030// Container for the parameters to the DescribeServiceAccessPolicies operation.
4031// Specifies the name of the domain you want to describe. To show the active
4032// configuration and exclude any pending changes, set the Deployed option to
4033// true.
4034type DescribeServiceAccessPoliciesInput struct {
4035	_ struct{} `type:"structure"`
4036
4037	// Whether to display the deployed configuration (true) or include any pending
4038	// changes (false). Defaults to false.
4039	Deployed *bool `type:"boolean"`
4040
4041	// The name of the domain you want to describe.
4042	//
4043	// DomainName is a required field
4044	DomainName *string `min:"3" type:"string" required:"true"`
4045}
4046
4047// String returns the string representation
4048func (s DescribeServiceAccessPoliciesInput) String() string {
4049	return awsutil.Prettify(s)
4050}
4051
4052// GoString returns the string representation
4053func (s DescribeServiceAccessPoliciesInput) GoString() string {
4054	return s.String()
4055}
4056
4057// Validate inspects the fields of the type to determine if they are valid.
4058func (s *DescribeServiceAccessPoliciesInput) Validate() error {
4059	invalidParams := request.ErrInvalidParams{Context: "DescribeServiceAccessPoliciesInput"}
4060	if s.DomainName == nil {
4061		invalidParams.Add(request.NewErrParamRequired("DomainName"))
4062	}
4063	if s.DomainName != nil && len(*s.DomainName) < 3 {
4064		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
4065	}
4066
4067	if invalidParams.Len() > 0 {
4068		return invalidParams
4069	}
4070	return nil
4071}
4072
4073// SetDeployed sets the Deployed field's value.
4074func (s *DescribeServiceAccessPoliciesInput) SetDeployed(v bool) *DescribeServiceAccessPoliciesInput {
4075	s.Deployed = &v
4076	return s
4077}
4078
4079// SetDomainName sets the DomainName field's value.
4080func (s *DescribeServiceAccessPoliciesInput) SetDomainName(v string) *DescribeServiceAccessPoliciesInput {
4081	s.DomainName = &v
4082	return s
4083}
4084
4085// The result of a DescribeServiceAccessPolicies request.
4086type DescribeServiceAccessPoliciesOutput struct {
4087	_ struct{} `type:"structure"`
4088
4089	// The access rules configured for the domain specified in the request.
4090	//
4091	// AccessPolicies is a required field
4092	AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
4093}
4094
4095// String returns the string representation
4096func (s DescribeServiceAccessPoliciesOutput) String() string {
4097	return awsutil.Prettify(s)
4098}
4099
4100// GoString returns the string representation
4101func (s DescribeServiceAccessPoliciesOutput) GoString() string {
4102	return s.String()
4103}
4104
4105// SetAccessPolicies sets the AccessPolicies field's value.
4106func (s *DescribeServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *DescribeServiceAccessPoliciesOutput {
4107	s.AccessPolicies = v
4108	return s
4109}
4110
4111// Container for the parameters to the DescribeSuggester operation. Specifies
4112// the name of the domain you want to describe. To restrict the response to
4113// particular suggesters, specify the names of the suggesters you want to describe.
4114// To show the active configuration and exclude any pending changes, set the
4115// Deployed option to true.
4116type DescribeSuggestersInput struct {
4117	_ struct{} `type:"structure"`
4118
4119	// Whether to display the deployed configuration (true) or include any pending
4120	// changes (false). Defaults to false.
4121	Deployed *bool `type:"boolean"`
4122
4123	// The name of the domain you want to describe.
4124	//
4125	// DomainName is a required field
4126	DomainName *string `min:"3" type:"string" required:"true"`
4127
4128	// The suggesters you want to describe.
4129	SuggesterNames []*string `type:"list"`
4130}
4131
4132// String returns the string representation
4133func (s DescribeSuggestersInput) String() string {
4134	return awsutil.Prettify(s)
4135}
4136
4137// GoString returns the string representation
4138func (s DescribeSuggestersInput) GoString() string {
4139	return s.String()
4140}
4141
4142// Validate inspects the fields of the type to determine if they are valid.
4143func (s *DescribeSuggestersInput) Validate() error {
4144	invalidParams := request.ErrInvalidParams{Context: "DescribeSuggestersInput"}
4145	if s.DomainName == nil {
4146		invalidParams.Add(request.NewErrParamRequired("DomainName"))
4147	}
4148	if s.DomainName != nil && len(*s.DomainName) < 3 {
4149		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
4150	}
4151
4152	if invalidParams.Len() > 0 {
4153		return invalidParams
4154	}
4155	return nil
4156}
4157
4158// SetDeployed sets the Deployed field's value.
4159func (s *DescribeSuggestersInput) SetDeployed(v bool) *DescribeSuggestersInput {
4160	s.Deployed = &v
4161	return s
4162}
4163
4164// SetDomainName sets the DomainName field's value.
4165func (s *DescribeSuggestersInput) SetDomainName(v string) *DescribeSuggestersInput {
4166	s.DomainName = &v
4167	return s
4168}
4169
4170// SetSuggesterNames sets the SuggesterNames field's value.
4171func (s *DescribeSuggestersInput) SetSuggesterNames(v []*string) *DescribeSuggestersInput {
4172	s.SuggesterNames = v
4173	return s
4174}
4175
4176// The result of a DescribeSuggesters request.
4177type DescribeSuggestersOutput struct {
4178	_ struct{} `type:"structure"`
4179
4180	// The suggesters configured for the domain specified in the request.
4181	//
4182	// Suggesters is a required field
4183	Suggesters []*SuggesterStatus `type:"list" required:"true"`
4184}
4185
4186// String returns the string representation
4187func (s DescribeSuggestersOutput) String() string {
4188	return awsutil.Prettify(s)
4189}
4190
4191// GoString returns the string representation
4192func (s DescribeSuggestersOutput) GoString() string {
4193	return s.String()
4194}
4195
4196// SetSuggesters sets the Suggesters field's value.
4197func (s *DescribeSuggestersOutput) SetSuggesters(v []*SuggesterStatus) *DescribeSuggestersOutput {
4198	s.Suggesters = v
4199	return s
4200}
4201
4202// Options for a search suggester.
4203type DocumentSuggesterOptions struct {
4204	_ struct{} `type:"structure"`
4205
4206	// The level of fuzziness allowed when suggesting matches for a string: none,
4207	// low, or high. With none, the specified string is treated as an exact prefix.
4208	// With low, suggestions must differ from the specified string by no more than
4209	// one character. With high, suggestions can differ by up to two characters.
4210	// The default is none.
4211	FuzzyMatching *string `type:"string" enum:"SuggesterFuzzyMatching"`
4212
4213	// An expression that computes a score for each suggestion to control how they
4214	// are sorted. The scores are rounded to the nearest integer, with a floor of
4215	// 0 and a ceiling of 2^31-1. A document's relevance score is not computed for
4216	// suggestions, so sort expressions cannot reference the _score value. To sort
4217	// suggestions using a numeric field or existing expression, simply specify
4218	// the name of the field or expression. If no expression is configured for the
4219	// suggester, the suggestions are sorted with the closest matches listed first.
4220	SortExpression *string `type:"string"`
4221
4222	// The name of the index field you want to use for suggestions.
4223	//
4224	// SourceField is a required field
4225	SourceField *string `min:"1" type:"string" required:"true"`
4226}
4227
4228// String returns the string representation
4229func (s DocumentSuggesterOptions) String() string {
4230	return awsutil.Prettify(s)
4231}
4232
4233// GoString returns the string representation
4234func (s DocumentSuggesterOptions) GoString() string {
4235	return s.String()
4236}
4237
4238// Validate inspects the fields of the type to determine if they are valid.
4239func (s *DocumentSuggesterOptions) Validate() error {
4240	invalidParams := request.ErrInvalidParams{Context: "DocumentSuggesterOptions"}
4241	if s.SourceField == nil {
4242		invalidParams.Add(request.NewErrParamRequired("SourceField"))
4243	}
4244	if s.SourceField != nil && len(*s.SourceField) < 1 {
4245		invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
4246	}
4247
4248	if invalidParams.Len() > 0 {
4249		return invalidParams
4250	}
4251	return nil
4252}
4253
4254// SetFuzzyMatching sets the FuzzyMatching field's value.
4255func (s *DocumentSuggesterOptions) SetFuzzyMatching(v string) *DocumentSuggesterOptions {
4256	s.FuzzyMatching = &v
4257	return s
4258}
4259
4260// SetSortExpression sets the SortExpression field's value.
4261func (s *DocumentSuggesterOptions) SetSortExpression(v string) *DocumentSuggesterOptions {
4262	s.SortExpression = &v
4263	return s
4264}
4265
4266// SetSourceField sets the SourceField field's value.
4267func (s *DocumentSuggesterOptions) SetSourceField(v string) *DocumentSuggesterOptions {
4268	s.SourceField = &v
4269	return s
4270}
4271
4272// The current status of the search domain.
4273type DomainStatus struct {
4274	_ struct{} `type:"structure"`
4275
4276	// The Amazon Resource Name (ARN) of the search domain. See Identifiers for
4277	// IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html)
4278	// in Using AWS Identity and Access Management for more information.
4279	ARN *string `type:"string"`
4280
4281	// True if the search domain is created. It can take several minutes to initialize
4282	// a domain when CreateDomain is called. Newly created search domains are returned
4283	// from DescribeDomains with a false value for Created until domain creation
4284	// is complete.
4285	Created *bool `type:"boolean"`
4286
4287	// True if the search domain has been deleted. The system must clean up resources
4288	// dedicated to the search domain when DeleteDomain is called. Newly deleted
4289	// search domains are returned from DescribeDomains with a true value for IsDeleted
4290	// for several minutes until resource cleanup is complete.
4291	Deleted *bool `type:"boolean"`
4292
4293	// The service endpoint for updating documents in a search domain.
4294	DocService *ServiceEndpoint `type:"structure"`
4295
4296	// An internally generated unique identifier for a domain.
4297	//
4298	// DomainId is a required field
4299	DomainId *string `min:"1" type:"string" required:"true"`
4300
4301	// A string that represents the name of a domain. Domain names are unique across
4302	// the domains owned by an account within an AWS region. Domain names start
4303	// with a letter or number and can contain the following characters: a-z (lowercase),
4304	// 0-9, and - (hyphen).
4305	//
4306	// DomainName is a required field
4307	DomainName *string `min:"3" type:"string" required:"true"`
4308
4309	Limits *Limits `type:"structure"`
4310
4311	// True if processing is being done to activate the current domain configuration.
4312	Processing *bool `type:"boolean"`
4313
4314	// True if IndexDocuments needs to be called to activate the current domain
4315	// configuration.
4316	//
4317	// RequiresIndexDocuments is a required field
4318	RequiresIndexDocuments *bool `type:"boolean" required:"true"`
4319
4320	// The number of search instances that are available to process search requests.
4321	SearchInstanceCount *int64 `min:"1" type:"integer"`
4322
4323	// The instance type that is being used to process search requests.
4324	SearchInstanceType *string `type:"string"`
4325
4326	// The number of partitions across which the search index is spread.
4327	SearchPartitionCount *int64 `min:"1" type:"integer"`
4328
4329	// The service endpoint for requesting search results from a search domain.
4330	SearchService *ServiceEndpoint `type:"structure"`
4331}
4332
4333// String returns the string representation
4334func (s DomainStatus) String() string {
4335	return awsutil.Prettify(s)
4336}
4337
4338// GoString returns the string representation
4339func (s DomainStatus) GoString() string {
4340	return s.String()
4341}
4342
4343// SetARN sets the ARN field's value.
4344func (s *DomainStatus) SetARN(v string) *DomainStatus {
4345	s.ARN = &v
4346	return s
4347}
4348
4349// SetCreated sets the Created field's value.
4350func (s *DomainStatus) SetCreated(v bool) *DomainStatus {
4351	s.Created = &v
4352	return s
4353}
4354
4355// SetDeleted sets the Deleted field's value.
4356func (s *DomainStatus) SetDeleted(v bool) *DomainStatus {
4357	s.Deleted = &v
4358	return s
4359}
4360
4361// SetDocService sets the DocService field's value.
4362func (s *DomainStatus) SetDocService(v *ServiceEndpoint) *DomainStatus {
4363	s.DocService = v
4364	return s
4365}
4366
4367// SetDomainId sets the DomainId field's value.
4368func (s *DomainStatus) SetDomainId(v string) *DomainStatus {
4369	s.DomainId = &v
4370	return s
4371}
4372
4373// SetDomainName sets the DomainName field's value.
4374func (s *DomainStatus) SetDomainName(v string) *DomainStatus {
4375	s.DomainName = &v
4376	return s
4377}
4378
4379// SetLimits sets the Limits field's value.
4380func (s *DomainStatus) SetLimits(v *Limits) *DomainStatus {
4381	s.Limits = v
4382	return s
4383}
4384
4385// SetProcessing sets the Processing field's value.
4386func (s *DomainStatus) SetProcessing(v bool) *DomainStatus {
4387	s.Processing = &v
4388	return s
4389}
4390
4391// SetRequiresIndexDocuments sets the RequiresIndexDocuments field's value.
4392func (s *DomainStatus) SetRequiresIndexDocuments(v bool) *DomainStatus {
4393	s.RequiresIndexDocuments = &v
4394	return s
4395}
4396
4397// SetSearchInstanceCount sets the SearchInstanceCount field's value.
4398func (s *DomainStatus) SetSearchInstanceCount(v int64) *DomainStatus {
4399	s.SearchInstanceCount = &v
4400	return s
4401}
4402
4403// SetSearchInstanceType sets the SearchInstanceType field's value.
4404func (s *DomainStatus) SetSearchInstanceType(v string) *DomainStatus {
4405	s.SearchInstanceType = &v
4406	return s
4407}
4408
4409// SetSearchPartitionCount sets the SearchPartitionCount field's value.
4410func (s *DomainStatus) SetSearchPartitionCount(v int64) *DomainStatus {
4411	s.SearchPartitionCount = &v
4412	return s
4413}
4414
4415// SetSearchService sets the SearchService field's value.
4416func (s *DomainStatus) SetSearchService(v *ServiceEndpoint) *DomainStatus {
4417	s.SearchService = v
4418	return s
4419}
4420
4421// Options for a field that contains an array of double-precision 64-bit floating
4422// point values. Present if IndexFieldType specifies the field is of type double-array.
4423// All options are enabled by default.
4424type DoubleArrayOptions struct {
4425	_ struct{} `type:"structure"`
4426
4427	// A value to use for the field if the field isn't specified for a document.
4428	DefaultValue *float64 `type:"double"`
4429
4430	// Whether facet information can be returned for the field.
4431	FacetEnabled *bool `type:"boolean"`
4432
4433	// Whether the contents of the field can be returned in the search results.
4434	ReturnEnabled *bool `type:"boolean"`
4435
4436	// Whether the contents of the field are searchable.
4437	SearchEnabled *bool `type:"boolean"`
4438
4439	// A list of source fields to map to the field.
4440	SourceFields *string `type:"string"`
4441}
4442
4443// String returns the string representation
4444func (s DoubleArrayOptions) String() string {
4445	return awsutil.Prettify(s)
4446}
4447
4448// GoString returns the string representation
4449func (s DoubleArrayOptions) GoString() string {
4450	return s.String()
4451}
4452
4453// SetDefaultValue sets the DefaultValue field's value.
4454func (s *DoubleArrayOptions) SetDefaultValue(v float64) *DoubleArrayOptions {
4455	s.DefaultValue = &v
4456	return s
4457}
4458
4459// SetFacetEnabled sets the FacetEnabled field's value.
4460func (s *DoubleArrayOptions) SetFacetEnabled(v bool) *DoubleArrayOptions {
4461	s.FacetEnabled = &v
4462	return s
4463}
4464
4465// SetReturnEnabled sets the ReturnEnabled field's value.
4466func (s *DoubleArrayOptions) SetReturnEnabled(v bool) *DoubleArrayOptions {
4467	s.ReturnEnabled = &v
4468	return s
4469}
4470
4471// SetSearchEnabled sets the SearchEnabled field's value.
4472func (s *DoubleArrayOptions) SetSearchEnabled(v bool) *DoubleArrayOptions {
4473	s.SearchEnabled = &v
4474	return s
4475}
4476
4477// SetSourceFields sets the SourceFields field's value.
4478func (s *DoubleArrayOptions) SetSourceFields(v string) *DoubleArrayOptions {
4479	s.SourceFields = &v
4480	return s
4481}
4482
4483// Options for a double-precision 64-bit floating point field. Present if IndexFieldType
4484// specifies the field is of type double. All options are enabled by default.
4485type DoubleOptions struct {
4486	_ struct{} `type:"structure"`
4487
4488	// A value to use for the field if the field isn't specified for a document.
4489	// This can be important if you are using the field in an expression and that
4490	// field is not present in every document.
4491	DefaultValue *float64 `type:"double"`
4492
4493	// Whether facet information can be returned for the field.
4494	FacetEnabled *bool `type:"boolean"`
4495
4496	// Whether the contents of the field can be returned in the search results.
4497	ReturnEnabled *bool `type:"boolean"`
4498
4499	// Whether the contents of the field are searchable.
4500	SearchEnabled *bool `type:"boolean"`
4501
4502	// Whether the field can be used to sort the search results.
4503	SortEnabled *bool `type:"boolean"`
4504
4505	// The name of the source field to map to the field.
4506	SourceField *string `min:"1" type:"string"`
4507}
4508
4509// String returns the string representation
4510func (s DoubleOptions) String() string {
4511	return awsutil.Prettify(s)
4512}
4513
4514// GoString returns the string representation
4515func (s DoubleOptions) GoString() string {
4516	return s.String()
4517}
4518
4519// Validate inspects the fields of the type to determine if they are valid.
4520func (s *DoubleOptions) Validate() error {
4521	invalidParams := request.ErrInvalidParams{Context: "DoubleOptions"}
4522	if s.SourceField != nil && len(*s.SourceField) < 1 {
4523		invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
4524	}
4525
4526	if invalidParams.Len() > 0 {
4527		return invalidParams
4528	}
4529	return nil
4530}
4531
4532// SetDefaultValue sets the DefaultValue field's value.
4533func (s *DoubleOptions) SetDefaultValue(v float64) *DoubleOptions {
4534	s.DefaultValue = &v
4535	return s
4536}
4537
4538// SetFacetEnabled sets the FacetEnabled field's value.
4539func (s *DoubleOptions) SetFacetEnabled(v bool) *DoubleOptions {
4540	s.FacetEnabled = &v
4541	return s
4542}
4543
4544// SetReturnEnabled sets the ReturnEnabled field's value.
4545func (s *DoubleOptions) SetReturnEnabled(v bool) *DoubleOptions {
4546	s.ReturnEnabled = &v
4547	return s
4548}
4549
4550// SetSearchEnabled sets the SearchEnabled field's value.
4551func (s *DoubleOptions) SetSearchEnabled(v bool) *DoubleOptions {
4552	s.SearchEnabled = &v
4553	return s
4554}
4555
4556// SetSortEnabled sets the SortEnabled field's value.
4557func (s *DoubleOptions) SetSortEnabled(v bool) *DoubleOptions {
4558	s.SortEnabled = &v
4559	return s
4560}
4561
4562// SetSourceField sets the SourceField field's value.
4563func (s *DoubleOptions) SetSourceField(v string) *DoubleOptions {
4564	s.SourceField = &v
4565	return s
4566}
4567
4568// A named expression that can be evaluated at search time. Can be used to sort
4569// the search results, define other expressions, or return computed information
4570// in the search results.
4571type Expression struct {
4572	_ struct{} `type:"structure"`
4573
4574	// Names must begin with a letter and can contain the following characters:
4575	// a-z (lowercase), 0-9, and _ (underscore).
4576	//
4577	// ExpressionName is a required field
4578	ExpressionName *string `min:"1" type:"string" required:"true"`
4579
4580	// The expression to evaluate for sorting while processing a search request.
4581	// The Expression syntax is based on JavaScript expressions. For more information,
4582	// see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
4583	// in the Amazon CloudSearch Developer Guide.
4584	//
4585	// ExpressionValue is a required field
4586	ExpressionValue *string `min:"1" type:"string" required:"true"`
4587}
4588
4589// String returns the string representation
4590func (s Expression) String() string {
4591	return awsutil.Prettify(s)
4592}
4593
4594// GoString returns the string representation
4595func (s Expression) GoString() string {
4596	return s.String()
4597}
4598
4599// Validate inspects the fields of the type to determine if they are valid.
4600func (s *Expression) Validate() error {
4601	invalidParams := request.ErrInvalidParams{Context: "Expression"}
4602	if s.ExpressionName == nil {
4603		invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
4604	}
4605	if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
4606		invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
4607	}
4608	if s.ExpressionValue == nil {
4609		invalidParams.Add(request.NewErrParamRequired("ExpressionValue"))
4610	}
4611	if s.ExpressionValue != nil && len(*s.ExpressionValue) < 1 {
4612		invalidParams.Add(request.NewErrParamMinLen("ExpressionValue", 1))
4613	}
4614
4615	if invalidParams.Len() > 0 {
4616		return invalidParams
4617	}
4618	return nil
4619}
4620
4621// SetExpressionName sets the ExpressionName field's value.
4622func (s *Expression) SetExpressionName(v string) *Expression {
4623	s.ExpressionName = &v
4624	return s
4625}
4626
4627// SetExpressionValue sets the ExpressionValue field's value.
4628func (s *Expression) SetExpressionValue(v string) *Expression {
4629	s.ExpressionValue = &v
4630	return s
4631}
4632
4633// The value of an Expression and its current status.
4634type ExpressionStatus struct {
4635	_ struct{} `type:"structure"`
4636
4637	// The expression that is evaluated for sorting while processing a search request.
4638	//
4639	// Options is a required field
4640	Options *Expression `type:"structure" required:"true"`
4641
4642	// The status of domain configuration option.
4643	//
4644	// Status is a required field
4645	Status *OptionStatus `type:"structure" required:"true"`
4646}
4647
4648// String returns the string representation
4649func (s ExpressionStatus) String() string {
4650	return awsutil.Prettify(s)
4651}
4652
4653// GoString returns the string representation
4654func (s ExpressionStatus) GoString() string {
4655	return s.String()
4656}
4657
4658// SetOptions sets the Options field's value.
4659func (s *ExpressionStatus) SetOptions(v *Expression) *ExpressionStatus {
4660	s.Options = v
4661	return s
4662}
4663
4664// SetStatus sets the Status field's value.
4665func (s *ExpressionStatus) SetStatus(v *OptionStatus) *ExpressionStatus {
4666	s.Status = v
4667	return s
4668}
4669
4670// Container for the parameters to the IndexDocuments operation. Specifies the
4671// name of the domain you want to re-index.
4672type IndexDocumentsInput struct {
4673	_ struct{} `type:"structure"`
4674
4675	// A string that represents the name of a domain. Domain names are unique across
4676	// the domains owned by an account within an AWS region. Domain names start
4677	// with a letter or number and can contain the following characters: a-z (lowercase),
4678	// 0-9, and - (hyphen).
4679	//
4680	// DomainName is a required field
4681	DomainName *string `min:"3" type:"string" required:"true"`
4682}
4683
4684// String returns the string representation
4685func (s IndexDocumentsInput) String() string {
4686	return awsutil.Prettify(s)
4687}
4688
4689// GoString returns the string representation
4690func (s IndexDocumentsInput) GoString() string {
4691	return s.String()
4692}
4693
4694// Validate inspects the fields of the type to determine if they are valid.
4695func (s *IndexDocumentsInput) Validate() error {
4696	invalidParams := request.ErrInvalidParams{Context: "IndexDocumentsInput"}
4697	if s.DomainName == nil {
4698		invalidParams.Add(request.NewErrParamRequired("DomainName"))
4699	}
4700	if s.DomainName != nil && len(*s.DomainName) < 3 {
4701		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
4702	}
4703
4704	if invalidParams.Len() > 0 {
4705		return invalidParams
4706	}
4707	return nil
4708}
4709
4710// SetDomainName sets the DomainName field's value.
4711func (s *IndexDocumentsInput) SetDomainName(v string) *IndexDocumentsInput {
4712	s.DomainName = &v
4713	return s
4714}
4715
4716// The result of an IndexDocuments request. Contains the status of the indexing
4717// operation, including the fields being indexed.
4718type IndexDocumentsOutput struct {
4719	_ struct{} `type:"structure"`
4720
4721	// The names of the fields that are currently being indexed.
4722	FieldNames []*string `type:"list"`
4723}
4724
4725// String returns the string representation
4726func (s IndexDocumentsOutput) String() string {
4727	return awsutil.Prettify(s)
4728}
4729
4730// GoString returns the string representation
4731func (s IndexDocumentsOutput) GoString() string {
4732	return s.String()
4733}
4734
4735// SetFieldNames sets the FieldNames field's value.
4736func (s *IndexDocumentsOutput) SetFieldNames(v []*string) *IndexDocumentsOutput {
4737	s.FieldNames = v
4738	return s
4739}
4740
4741// Configuration information for a field in the index, including its name, type,
4742// and options. The supported options depend on the IndexFieldType.
4743type IndexField struct {
4744	_ struct{} `type:"structure"`
4745
4746	// Options for a field that contains an array of dates. Present if IndexFieldType
4747	// specifies the field is of type date-array. All options are enabled by default.
4748	DateArrayOptions *DateArrayOptions `type:"structure"`
4749
4750	// Options for a date field. Dates and times are specified in UTC (Coordinated
4751	// Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
4752	// if IndexFieldType specifies the field is of type date. All options are enabled
4753	// by default.
4754	DateOptions *DateOptions `type:"structure"`
4755
4756	// Options for a field that contains an array of double-precision 64-bit floating
4757	// point values. Present if IndexFieldType specifies the field is of type double-array.
4758	// All options are enabled by default.
4759	DoubleArrayOptions *DoubleArrayOptions `type:"structure"`
4760
4761	// Options for a double-precision 64-bit floating point field. Present if IndexFieldType
4762	// specifies the field is of type double. All options are enabled by default.
4763	DoubleOptions *DoubleOptions `type:"structure"`
4764
4765	// A string that represents the name of an index field. CloudSearch supports
4766	// regular index fields as well as dynamic fields. A dynamic field's name defines
4767	// a pattern that begins or ends with a wildcard. Any document fields that don't
4768	// map to a regular index field but do match a dynamic field's pattern are configured
4769	// with the dynamic field's indexing options.
4770	//
4771	// Regular field names begin with a letter and can contain the following characters:
4772	// a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
4773	// or end with a wildcard (*). The wildcard can also be the only character in
4774	// a dynamic field name. Multiple wildcards, and wildcards embedded within a
4775	// string are not supported.
4776	//
4777	// The name score is reserved and cannot be used as a field name. To reference
4778	// a document's ID, you can use the name _id.
4779	//
4780	// IndexFieldName is a required field
4781	IndexFieldName *string `min:"1" type:"string" required:"true"`
4782
4783	// The type of field. The valid options for a field depend on the field type.
4784	// For more information about the supported field types, see Configuring Index
4785	// Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
4786	// in the Amazon CloudSearch Developer Guide.
4787	//
4788	// IndexFieldType is a required field
4789	IndexFieldType *string `type:"string" required:"true" enum:"IndexFieldType"`
4790
4791	// Options for a field that contains an array of 64-bit signed integers. Present
4792	// if IndexFieldType specifies the field is of type int-array. All options are
4793	// enabled by default.
4794	IntArrayOptions *IntArrayOptions `type:"structure"`
4795
4796	// Options for a 64-bit signed integer field. Present if IndexFieldType specifies
4797	// the field is of type int. All options are enabled by default.
4798	IntOptions *IntOptions `type:"structure"`
4799
4800	// Options for a latlon field. A latlon field contains a location stored as
4801	// a latitude and longitude value pair. Present if IndexFieldType specifies
4802	// the field is of type latlon. All options are enabled by default.
4803	LatLonOptions *LatLonOptions `type:"structure"`
4804
4805	// Options for a field that contains an array of literal strings. Present if
4806	// IndexFieldType specifies the field is of type literal-array. All options
4807	// are enabled by default.
4808	LiteralArrayOptions *LiteralArrayOptions `type:"structure"`
4809
4810	// Options for literal field. Present if IndexFieldType specifies the field
4811	// is of type literal. All options are enabled by default.
4812	LiteralOptions *LiteralOptions `type:"structure"`
4813
4814	// Options for a field that contains an array of text strings. Present if IndexFieldType
4815	// specifies the field is of type text-array. A text-array field is always searchable.
4816	// All options are enabled by default.
4817	TextArrayOptions *TextArrayOptions `type:"structure"`
4818
4819	// Options for text field. Present if IndexFieldType specifies the field is
4820	// of type text. A text field is always searchable. All options are enabled
4821	// by default.
4822	TextOptions *TextOptions `type:"structure"`
4823}
4824
4825// String returns the string representation
4826func (s IndexField) String() string {
4827	return awsutil.Prettify(s)
4828}
4829
4830// GoString returns the string representation
4831func (s IndexField) GoString() string {
4832	return s.String()
4833}
4834
4835// Validate inspects the fields of the type to determine if they are valid.
4836func (s *IndexField) Validate() error {
4837	invalidParams := request.ErrInvalidParams{Context: "IndexField"}
4838	if s.IndexFieldName == nil {
4839		invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
4840	}
4841	if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
4842		invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
4843	}
4844	if s.IndexFieldType == nil {
4845		invalidParams.Add(request.NewErrParamRequired("IndexFieldType"))
4846	}
4847	if s.DateOptions != nil {
4848		if err := s.DateOptions.Validate(); err != nil {
4849			invalidParams.AddNested("DateOptions", err.(request.ErrInvalidParams))
4850		}
4851	}
4852	if s.DoubleOptions != nil {
4853		if err := s.DoubleOptions.Validate(); err != nil {
4854			invalidParams.AddNested("DoubleOptions", err.(request.ErrInvalidParams))
4855		}
4856	}
4857	if s.IntOptions != nil {
4858		if err := s.IntOptions.Validate(); err != nil {
4859			invalidParams.AddNested("IntOptions", err.(request.ErrInvalidParams))
4860		}
4861	}
4862	if s.LatLonOptions != nil {
4863		if err := s.LatLonOptions.Validate(); err != nil {
4864			invalidParams.AddNested("LatLonOptions", err.(request.ErrInvalidParams))
4865		}
4866	}
4867	if s.LiteralOptions != nil {
4868		if err := s.LiteralOptions.Validate(); err != nil {
4869			invalidParams.AddNested("LiteralOptions", err.(request.ErrInvalidParams))
4870		}
4871	}
4872	if s.TextOptions != nil {
4873		if err := s.TextOptions.Validate(); err != nil {
4874			invalidParams.AddNested("TextOptions", err.(request.ErrInvalidParams))
4875		}
4876	}
4877
4878	if invalidParams.Len() > 0 {
4879		return invalidParams
4880	}
4881	return nil
4882}
4883
4884// SetDateArrayOptions sets the DateArrayOptions field's value.
4885func (s *IndexField) SetDateArrayOptions(v *DateArrayOptions) *IndexField {
4886	s.DateArrayOptions = v
4887	return s
4888}
4889
4890// SetDateOptions sets the DateOptions field's value.
4891func (s *IndexField) SetDateOptions(v *DateOptions) *IndexField {
4892	s.DateOptions = v
4893	return s
4894}
4895
4896// SetDoubleArrayOptions sets the DoubleArrayOptions field's value.
4897func (s *IndexField) SetDoubleArrayOptions(v *DoubleArrayOptions) *IndexField {
4898	s.DoubleArrayOptions = v
4899	return s
4900}
4901
4902// SetDoubleOptions sets the DoubleOptions field's value.
4903func (s *IndexField) SetDoubleOptions(v *DoubleOptions) *IndexField {
4904	s.DoubleOptions = v
4905	return s
4906}
4907
4908// SetIndexFieldName sets the IndexFieldName field's value.
4909func (s *IndexField) SetIndexFieldName(v string) *IndexField {
4910	s.IndexFieldName = &v
4911	return s
4912}
4913
4914// SetIndexFieldType sets the IndexFieldType field's value.
4915func (s *IndexField) SetIndexFieldType(v string) *IndexField {
4916	s.IndexFieldType = &v
4917	return s
4918}
4919
4920// SetIntArrayOptions sets the IntArrayOptions field's value.
4921func (s *IndexField) SetIntArrayOptions(v *IntArrayOptions) *IndexField {
4922	s.IntArrayOptions = v
4923	return s
4924}
4925
4926// SetIntOptions sets the IntOptions field's value.
4927func (s *IndexField) SetIntOptions(v *IntOptions) *IndexField {
4928	s.IntOptions = v
4929	return s
4930}
4931
4932// SetLatLonOptions sets the LatLonOptions field's value.
4933func (s *IndexField) SetLatLonOptions(v *LatLonOptions) *IndexField {
4934	s.LatLonOptions = v
4935	return s
4936}
4937
4938// SetLiteralArrayOptions sets the LiteralArrayOptions field's value.
4939func (s *IndexField) SetLiteralArrayOptions(v *LiteralArrayOptions) *IndexField {
4940	s.LiteralArrayOptions = v
4941	return s
4942}
4943
4944// SetLiteralOptions sets the LiteralOptions field's value.
4945func (s *IndexField) SetLiteralOptions(v *LiteralOptions) *IndexField {
4946	s.LiteralOptions = v
4947	return s
4948}
4949
4950// SetTextArrayOptions sets the TextArrayOptions field's value.
4951func (s *IndexField) SetTextArrayOptions(v *TextArrayOptions) *IndexField {
4952	s.TextArrayOptions = v
4953	return s
4954}
4955
4956// SetTextOptions sets the TextOptions field's value.
4957func (s *IndexField) SetTextOptions(v *TextOptions) *IndexField {
4958	s.TextOptions = v
4959	return s
4960}
4961
4962// The value of an IndexField and its current status.
4963type IndexFieldStatus struct {
4964	_ struct{} `type:"structure"`
4965
4966	// Configuration information for a field in the index, including its name, type,
4967	// and options. The supported options depend on the IndexFieldType.
4968	//
4969	// Options is a required field
4970	Options *IndexField `type:"structure" required:"true"`
4971
4972	// The status of domain configuration option.
4973	//
4974	// Status is a required field
4975	Status *OptionStatus `type:"structure" required:"true"`
4976}
4977
4978// String returns the string representation
4979func (s IndexFieldStatus) String() string {
4980	return awsutil.Prettify(s)
4981}
4982
4983// GoString returns the string representation
4984func (s IndexFieldStatus) GoString() string {
4985	return s.String()
4986}
4987
4988// SetOptions sets the Options field's value.
4989func (s *IndexFieldStatus) SetOptions(v *IndexField) *IndexFieldStatus {
4990	s.Options = v
4991	return s
4992}
4993
4994// SetStatus sets the Status field's value.
4995func (s *IndexFieldStatus) SetStatus(v *OptionStatus) *IndexFieldStatus {
4996	s.Status = v
4997	return s
4998}
4999
5000// Options for a field that contains an array of 64-bit signed integers. Present
5001// if IndexFieldType specifies the field is of type int-array. All options are
5002// enabled by default.
5003type IntArrayOptions struct {
5004	_ struct{} `type:"structure"`
5005
5006	// A value to use for the field if the field isn't specified for a document.
5007	DefaultValue *int64 `type:"long"`
5008
5009	// Whether facet information can be returned for the field.
5010	FacetEnabled *bool `type:"boolean"`
5011
5012	// Whether the contents of the field can be returned in the search results.
5013	ReturnEnabled *bool `type:"boolean"`
5014
5015	// Whether the contents of the field are searchable.
5016	SearchEnabled *bool `type:"boolean"`
5017
5018	// A list of source fields to map to the field.
5019	SourceFields *string `type:"string"`
5020}
5021
5022// String returns the string representation
5023func (s IntArrayOptions) String() string {
5024	return awsutil.Prettify(s)
5025}
5026
5027// GoString returns the string representation
5028func (s IntArrayOptions) GoString() string {
5029	return s.String()
5030}
5031
5032// SetDefaultValue sets the DefaultValue field's value.
5033func (s *IntArrayOptions) SetDefaultValue(v int64) *IntArrayOptions {
5034	s.DefaultValue = &v
5035	return s
5036}
5037
5038// SetFacetEnabled sets the FacetEnabled field's value.
5039func (s *IntArrayOptions) SetFacetEnabled(v bool) *IntArrayOptions {
5040	s.FacetEnabled = &v
5041	return s
5042}
5043
5044// SetReturnEnabled sets the ReturnEnabled field's value.
5045func (s *IntArrayOptions) SetReturnEnabled(v bool) *IntArrayOptions {
5046	s.ReturnEnabled = &v
5047	return s
5048}
5049
5050// SetSearchEnabled sets the SearchEnabled field's value.
5051func (s *IntArrayOptions) SetSearchEnabled(v bool) *IntArrayOptions {
5052	s.SearchEnabled = &v
5053	return s
5054}
5055
5056// SetSourceFields sets the SourceFields field's value.
5057func (s *IntArrayOptions) SetSourceFields(v string) *IntArrayOptions {
5058	s.SourceFields = &v
5059	return s
5060}
5061
5062// Options for a 64-bit signed integer field. Present if IndexFieldType specifies
5063// the field is of type int. All options are enabled by default.
5064type IntOptions struct {
5065	_ struct{} `type:"structure"`
5066
5067	// A value to use for the field if the field isn't specified for a document.
5068	// This can be important if you are using the field in an expression and that
5069	// field is not present in every document.
5070	DefaultValue *int64 `type:"long"`
5071
5072	// Whether facet information can be returned for the field.
5073	FacetEnabled *bool `type:"boolean"`
5074
5075	// Whether the contents of the field can be returned in the search results.
5076	ReturnEnabled *bool `type:"boolean"`
5077
5078	// Whether the contents of the field are searchable.
5079	SearchEnabled *bool `type:"boolean"`
5080
5081	// Whether the field can be used to sort the search results.
5082	SortEnabled *bool `type:"boolean"`
5083
5084	// The name of the source field to map to the field.
5085	SourceField *string `min:"1" type:"string"`
5086}
5087
5088// String returns the string representation
5089func (s IntOptions) String() string {
5090	return awsutil.Prettify(s)
5091}
5092
5093// GoString returns the string representation
5094func (s IntOptions) GoString() string {
5095	return s.String()
5096}
5097
5098// Validate inspects the fields of the type to determine if they are valid.
5099func (s *IntOptions) Validate() error {
5100	invalidParams := request.ErrInvalidParams{Context: "IntOptions"}
5101	if s.SourceField != nil && len(*s.SourceField) < 1 {
5102		invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
5103	}
5104
5105	if invalidParams.Len() > 0 {
5106		return invalidParams
5107	}
5108	return nil
5109}
5110
5111// SetDefaultValue sets the DefaultValue field's value.
5112func (s *IntOptions) SetDefaultValue(v int64) *IntOptions {
5113	s.DefaultValue = &v
5114	return s
5115}
5116
5117// SetFacetEnabled sets the FacetEnabled field's value.
5118func (s *IntOptions) SetFacetEnabled(v bool) *IntOptions {
5119	s.FacetEnabled = &v
5120	return s
5121}
5122
5123// SetReturnEnabled sets the ReturnEnabled field's value.
5124func (s *IntOptions) SetReturnEnabled(v bool) *IntOptions {
5125	s.ReturnEnabled = &v
5126	return s
5127}
5128
5129// SetSearchEnabled sets the SearchEnabled field's value.
5130func (s *IntOptions) SetSearchEnabled(v bool) *IntOptions {
5131	s.SearchEnabled = &v
5132	return s
5133}
5134
5135// SetSortEnabled sets the SortEnabled field's value.
5136func (s *IntOptions) SetSortEnabled(v bool) *IntOptions {
5137	s.SortEnabled = &v
5138	return s
5139}
5140
5141// SetSourceField sets the SourceField field's value.
5142func (s *IntOptions) SetSourceField(v string) *IntOptions {
5143	s.SourceField = &v
5144	return s
5145}
5146
5147// Options for a latlon field. A latlon field contains a location stored as
5148// a latitude and longitude value pair. Present if IndexFieldType specifies
5149// the field is of type latlon. All options are enabled by default.
5150type LatLonOptions struct {
5151	_ struct{} `type:"structure"`
5152
5153	// A value to use for the field if the field isn't specified for a document.
5154	DefaultValue *string `type:"string"`
5155
5156	// Whether facet information can be returned for the field.
5157	FacetEnabled *bool `type:"boolean"`
5158
5159	// Whether the contents of the field can be returned in the search results.
5160	ReturnEnabled *bool `type:"boolean"`
5161
5162	// Whether the contents of the field are searchable.
5163	SearchEnabled *bool `type:"boolean"`
5164
5165	// Whether the field can be used to sort the search results.
5166	SortEnabled *bool `type:"boolean"`
5167
5168	// A string that represents the name of an index field. CloudSearch supports
5169	// regular index fields as well as dynamic fields. A dynamic field's name defines
5170	// a pattern that begins or ends with a wildcard. Any document fields that don't
5171	// map to a regular index field but do match a dynamic field's pattern are configured
5172	// with the dynamic field's indexing options.
5173	//
5174	// Regular field names begin with a letter and can contain the following characters:
5175	// a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
5176	// or end with a wildcard (*). The wildcard can also be the only character in
5177	// a dynamic field name. Multiple wildcards, and wildcards embedded within a
5178	// string are not supported.
5179	//
5180	// The name score is reserved and cannot be used as a field name. To reference
5181	// a document's ID, you can use the name _id.
5182	SourceField *string `min:"1" type:"string"`
5183}
5184
5185// String returns the string representation
5186func (s LatLonOptions) String() string {
5187	return awsutil.Prettify(s)
5188}
5189
5190// GoString returns the string representation
5191func (s LatLonOptions) GoString() string {
5192	return s.String()
5193}
5194
5195// Validate inspects the fields of the type to determine if they are valid.
5196func (s *LatLonOptions) Validate() error {
5197	invalidParams := request.ErrInvalidParams{Context: "LatLonOptions"}
5198	if s.SourceField != nil && len(*s.SourceField) < 1 {
5199		invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
5200	}
5201
5202	if invalidParams.Len() > 0 {
5203		return invalidParams
5204	}
5205	return nil
5206}
5207
5208// SetDefaultValue sets the DefaultValue field's value.
5209func (s *LatLonOptions) SetDefaultValue(v string) *LatLonOptions {
5210	s.DefaultValue = &v
5211	return s
5212}
5213
5214// SetFacetEnabled sets the FacetEnabled field's value.
5215func (s *LatLonOptions) SetFacetEnabled(v bool) *LatLonOptions {
5216	s.FacetEnabled = &v
5217	return s
5218}
5219
5220// SetReturnEnabled sets the ReturnEnabled field's value.
5221func (s *LatLonOptions) SetReturnEnabled(v bool) *LatLonOptions {
5222	s.ReturnEnabled = &v
5223	return s
5224}
5225
5226// SetSearchEnabled sets the SearchEnabled field's value.
5227func (s *LatLonOptions) SetSearchEnabled(v bool) *LatLonOptions {
5228	s.SearchEnabled = &v
5229	return s
5230}
5231
5232// SetSortEnabled sets the SortEnabled field's value.
5233func (s *LatLonOptions) SetSortEnabled(v bool) *LatLonOptions {
5234	s.SortEnabled = &v
5235	return s
5236}
5237
5238// SetSourceField sets the SourceField field's value.
5239func (s *LatLonOptions) SetSourceField(v string) *LatLonOptions {
5240	s.SourceField = &v
5241	return s
5242}
5243
5244type Limits struct {
5245	_ struct{} `type:"structure"`
5246
5247	// MaximumPartitionCount is a required field
5248	MaximumPartitionCount *int64 `min:"1" type:"integer" required:"true"`
5249
5250	// MaximumReplicationCount is a required field
5251	MaximumReplicationCount *int64 `min:"1" type:"integer" required:"true"`
5252}
5253
5254// String returns the string representation
5255func (s Limits) String() string {
5256	return awsutil.Prettify(s)
5257}
5258
5259// GoString returns the string representation
5260func (s Limits) GoString() string {
5261	return s.String()
5262}
5263
5264// SetMaximumPartitionCount sets the MaximumPartitionCount field's value.
5265func (s *Limits) SetMaximumPartitionCount(v int64) *Limits {
5266	s.MaximumPartitionCount = &v
5267	return s
5268}
5269
5270// SetMaximumReplicationCount sets the MaximumReplicationCount field's value.
5271func (s *Limits) SetMaximumReplicationCount(v int64) *Limits {
5272	s.MaximumReplicationCount = &v
5273	return s
5274}
5275
5276type ListDomainNamesInput struct {
5277	_ struct{} `type:"structure"`
5278}
5279
5280// String returns the string representation
5281func (s ListDomainNamesInput) String() string {
5282	return awsutil.Prettify(s)
5283}
5284
5285// GoString returns the string representation
5286func (s ListDomainNamesInput) GoString() string {
5287	return s.String()
5288}
5289
5290// The result of a ListDomainNames request. Contains a list of the domains owned
5291// by an account.
5292type ListDomainNamesOutput struct {
5293	_ struct{} `type:"structure"`
5294
5295	// The names of the search domains owned by an account.
5296	DomainNames map[string]*string `type:"map"`
5297}
5298
5299// String returns the string representation
5300func (s ListDomainNamesOutput) String() string {
5301	return awsutil.Prettify(s)
5302}
5303
5304// GoString returns the string representation
5305func (s ListDomainNamesOutput) GoString() string {
5306	return s.String()
5307}
5308
5309// SetDomainNames sets the DomainNames field's value.
5310func (s *ListDomainNamesOutput) SetDomainNames(v map[string]*string) *ListDomainNamesOutput {
5311	s.DomainNames = v
5312	return s
5313}
5314
5315// Options for a field that contains an array of literal strings. Present if
5316// IndexFieldType specifies the field is of type literal-array. All options
5317// are enabled by default.
5318type LiteralArrayOptions struct {
5319	_ struct{} `type:"structure"`
5320
5321	// A value to use for the field if the field isn't specified for a document.
5322	DefaultValue *string `type:"string"`
5323
5324	// Whether facet information can be returned for the field.
5325	FacetEnabled *bool `type:"boolean"`
5326
5327	// Whether the contents of the field can be returned in the search results.
5328	ReturnEnabled *bool `type:"boolean"`
5329
5330	// Whether the contents of the field are searchable.
5331	SearchEnabled *bool `type:"boolean"`
5332
5333	// A list of source fields to map to the field.
5334	SourceFields *string `type:"string"`
5335}
5336
5337// String returns the string representation
5338func (s LiteralArrayOptions) String() string {
5339	return awsutil.Prettify(s)
5340}
5341
5342// GoString returns the string representation
5343func (s LiteralArrayOptions) GoString() string {
5344	return s.String()
5345}
5346
5347// SetDefaultValue sets the DefaultValue field's value.
5348func (s *LiteralArrayOptions) SetDefaultValue(v string) *LiteralArrayOptions {
5349	s.DefaultValue = &v
5350	return s
5351}
5352
5353// SetFacetEnabled sets the FacetEnabled field's value.
5354func (s *LiteralArrayOptions) SetFacetEnabled(v bool) *LiteralArrayOptions {
5355	s.FacetEnabled = &v
5356	return s
5357}
5358
5359// SetReturnEnabled sets the ReturnEnabled field's value.
5360func (s *LiteralArrayOptions) SetReturnEnabled(v bool) *LiteralArrayOptions {
5361	s.ReturnEnabled = &v
5362	return s
5363}
5364
5365// SetSearchEnabled sets the SearchEnabled field's value.
5366func (s *LiteralArrayOptions) SetSearchEnabled(v bool) *LiteralArrayOptions {
5367	s.SearchEnabled = &v
5368	return s
5369}
5370
5371// SetSourceFields sets the SourceFields field's value.
5372func (s *LiteralArrayOptions) SetSourceFields(v string) *LiteralArrayOptions {
5373	s.SourceFields = &v
5374	return s
5375}
5376
5377// Options for literal field. Present if IndexFieldType specifies the field
5378// is of type literal. All options are enabled by default.
5379type LiteralOptions struct {
5380	_ struct{} `type:"structure"`
5381
5382	// A value to use for the field if the field isn't specified for a document.
5383	DefaultValue *string `type:"string"`
5384
5385	// Whether facet information can be returned for the field.
5386	FacetEnabled *bool `type:"boolean"`
5387
5388	// Whether the contents of the field can be returned in the search results.
5389	ReturnEnabled *bool `type:"boolean"`
5390
5391	// Whether the contents of the field are searchable.
5392	SearchEnabled *bool `type:"boolean"`
5393
5394	// Whether the field can be used to sort the search results.
5395	SortEnabled *bool `type:"boolean"`
5396
5397	// A string that represents the name of an index field. CloudSearch supports
5398	// regular index fields as well as dynamic fields. A dynamic field's name defines
5399	// a pattern that begins or ends with a wildcard. Any document fields that don't
5400	// map to a regular index field but do match a dynamic field's pattern are configured
5401	// with the dynamic field's indexing options.
5402	//
5403	// Regular field names begin with a letter and can contain the following characters:
5404	// a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
5405	// or end with a wildcard (*). The wildcard can also be the only character in
5406	// a dynamic field name. Multiple wildcards, and wildcards embedded within a
5407	// string are not supported.
5408	//
5409	// The name score is reserved and cannot be used as a field name. To reference
5410	// a document's ID, you can use the name _id.
5411	SourceField *string `min:"1" type:"string"`
5412}
5413
5414// String returns the string representation
5415func (s LiteralOptions) String() string {
5416	return awsutil.Prettify(s)
5417}
5418
5419// GoString returns the string representation
5420func (s LiteralOptions) GoString() string {
5421	return s.String()
5422}
5423
5424// Validate inspects the fields of the type to determine if they are valid.
5425func (s *LiteralOptions) Validate() error {
5426	invalidParams := request.ErrInvalidParams{Context: "LiteralOptions"}
5427	if s.SourceField != nil && len(*s.SourceField) < 1 {
5428		invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
5429	}
5430
5431	if invalidParams.Len() > 0 {
5432		return invalidParams
5433	}
5434	return nil
5435}
5436
5437// SetDefaultValue sets the DefaultValue field's value.
5438func (s *LiteralOptions) SetDefaultValue(v string) *LiteralOptions {
5439	s.DefaultValue = &v
5440	return s
5441}
5442
5443// SetFacetEnabled sets the FacetEnabled field's value.
5444func (s *LiteralOptions) SetFacetEnabled(v bool) *LiteralOptions {
5445	s.FacetEnabled = &v
5446	return s
5447}
5448
5449// SetReturnEnabled sets the ReturnEnabled field's value.
5450func (s *LiteralOptions) SetReturnEnabled(v bool) *LiteralOptions {
5451	s.ReturnEnabled = &v
5452	return s
5453}
5454
5455// SetSearchEnabled sets the SearchEnabled field's value.
5456func (s *LiteralOptions) SetSearchEnabled(v bool) *LiteralOptions {
5457	s.SearchEnabled = &v
5458	return s
5459}
5460
5461// SetSortEnabled sets the SortEnabled field's value.
5462func (s *LiteralOptions) SetSortEnabled(v bool) *LiteralOptions {
5463	s.SortEnabled = &v
5464	return s
5465}
5466
5467// SetSourceField sets the SourceField field's value.
5468func (s *LiteralOptions) SetSourceField(v string) *LiteralOptions {
5469	s.SourceField = &v
5470	return s
5471}
5472
5473// The status of domain configuration option.
5474type OptionStatus struct {
5475	_ struct{} `type:"structure"`
5476
5477	// A timestamp for when this option was created.
5478	//
5479	// CreationDate is a required field
5480	CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
5481
5482	// Indicates that the option will be deleted once processing is complete.
5483	PendingDeletion *bool `type:"boolean"`
5484
5485	// The state of processing a change to an option. Possible values:
5486	//
5487	//    * RequiresIndexDocuments: the option's latest value will not be deployed
5488	//    until IndexDocuments has been called and indexing is complete.
5489	//    * Processing: the option's latest value is in the process of being activated.
5490	//
5491	//    * Active: the option's latest value is completely deployed.
5492	//    * FailedToValidate: the option value is not compatible with the domain's
5493	//    data and cannot be used to index the data. You must either modify the
5494	//    option value or update or remove the incompatible documents.
5495	//
5496	// State is a required field
5497	State *string `type:"string" required:"true" enum:"OptionState"`
5498
5499	// A timestamp for when this option was last updated.
5500	//
5501	// UpdateDate is a required field
5502	UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
5503
5504	// A unique integer that indicates when this option was last updated.
5505	UpdateVersion *int64 `type:"integer"`
5506}
5507
5508// String returns the string representation
5509func (s OptionStatus) String() string {
5510	return awsutil.Prettify(s)
5511}
5512
5513// GoString returns the string representation
5514func (s OptionStatus) GoString() string {
5515	return s.String()
5516}
5517
5518// SetCreationDate sets the CreationDate field's value.
5519func (s *OptionStatus) SetCreationDate(v time.Time) *OptionStatus {
5520	s.CreationDate = &v
5521	return s
5522}
5523
5524// SetPendingDeletion sets the PendingDeletion field's value.
5525func (s *OptionStatus) SetPendingDeletion(v bool) *OptionStatus {
5526	s.PendingDeletion = &v
5527	return s
5528}
5529
5530// SetState sets the State field's value.
5531func (s *OptionStatus) SetState(v string) *OptionStatus {
5532	s.State = &v
5533	return s
5534}
5535
5536// SetUpdateDate sets the UpdateDate field's value.
5537func (s *OptionStatus) SetUpdateDate(v time.Time) *OptionStatus {
5538	s.UpdateDate = &v
5539	return s
5540}
5541
5542// SetUpdateVersion sets the UpdateVersion field's value.
5543func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus {
5544	s.UpdateVersion = &v
5545	return s
5546}
5547
5548// The desired instance type and desired number of replicas of each index partition.
5549type ScalingParameters struct {
5550	_ struct{} `type:"structure"`
5551
5552	// The instance type that you want to preconfigure for your domain. For example,
5553	// search.m1.small.
5554	DesiredInstanceType *string `type:"string" enum:"PartitionInstanceType"`
5555
5556	// The number of partitions you want to preconfigure for your domain. Only valid
5557	// when you select m2.2xlarge as the desired instance type.
5558	DesiredPartitionCount *int64 `type:"integer"`
5559
5560	// The number of replicas you want to preconfigure for each index partition.
5561	DesiredReplicationCount *int64 `type:"integer"`
5562}
5563
5564// String returns the string representation
5565func (s ScalingParameters) String() string {
5566	return awsutil.Prettify(s)
5567}
5568
5569// GoString returns the string representation
5570func (s ScalingParameters) GoString() string {
5571	return s.String()
5572}
5573
5574// SetDesiredInstanceType sets the DesiredInstanceType field's value.
5575func (s *ScalingParameters) SetDesiredInstanceType(v string) *ScalingParameters {
5576	s.DesiredInstanceType = &v
5577	return s
5578}
5579
5580// SetDesiredPartitionCount sets the DesiredPartitionCount field's value.
5581func (s *ScalingParameters) SetDesiredPartitionCount(v int64) *ScalingParameters {
5582	s.DesiredPartitionCount = &v
5583	return s
5584}
5585
5586// SetDesiredReplicationCount sets the DesiredReplicationCount field's value.
5587func (s *ScalingParameters) SetDesiredReplicationCount(v int64) *ScalingParameters {
5588	s.DesiredReplicationCount = &v
5589	return s
5590}
5591
5592// The status and configuration of a search domain's scaling parameters.
5593type ScalingParametersStatus struct {
5594	_ struct{} `type:"structure"`
5595
5596	// The desired instance type and desired number of replicas of each index partition.
5597	//
5598	// Options is a required field
5599	Options *ScalingParameters `type:"structure" required:"true"`
5600
5601	// The status of domain configuration option.
5602	//
5603	// Status is a required field
5604	Status *OptionStatus `type:"structure" required:"true"`
5605}
5606
5607// String returns the string representation
5608func (s ScalingParametersStatus) String() string {
5609	return awsutil.Prettify(s)
5610}
5611
5612// GoString returns the string representation
5613func (s ScalingParametersStatus) GoString() string {
5614	return s.String()
5615}
5616
5617// SetOptions sets the Options field's value.
5618func (s *ScalingParametersStatus) SetOptions(v *ScalingParameters) *ScalingParametersStatus {
5619	s.Options = v
5620	return s
5621}
5622
5623// SetStatus sets the Status field's value.
5624func (s *ScalingParametersStatus) SetStatus(v *OptionStatus) *ScalingParametersStatus {
5625	s.Status = v
5626	return s
5627}
5628
5629// The endpoint to which service requests can be submitted.
5630type ServiceEndpoint struct {
5631	_ struct{} `type:"structure"`
5632
5633	// The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com
5634	// or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com.
5635	Endpoint *string `type:"string"`
5636}
5637
5638// String returns the string representation
5639func (s ServiceEndpoint) String() string {
5640	return awsutil.Prettify(s)
5641}
5642
5643// GoString returns the string representation
5644func (s ServiceEndpoint) GoString() string {
5645	return s.String()
5646}
5647
5648// SetEndpoint sets the Endpoint field's value.
5649func (s *ServiceEndpoint) SetEndpoint(v string) *ServiceEndpoint {
5650	s.Endpoint = &v
5651	return s
5652}
5653
5654// Configuration information for a search suggester. Each suggester has a unique
5655// name and specifies the text field you want to use for suggestions. The following
5656// options can be configured for a suggester: FuzzyMatching, SortExpression.
5657type Suggester struct {
5658	_ struct{} `type:"structure"`
5659
5660	// Options for a search suggester.
5661	//
5662	// DocumentSuggesterOptions is a required field
5663	DocumentSuggesterOptions *DocumentSuggesterOptions `type:"structure" required:"true"`
5664
5665	// Names must begin with a letter and can contain the following characters:
5666	// a-z (lowercase), 0-9, and _ (underscore).
5667	//
5668	// SuggesterName is a required field
5669	SuggesterName *string `min:"1" type:"string" required:"true"`
5670}
5671
5672// String returns the string representation
5673func (s Suggester) String() string {
5674	return awsutil.Prettify(s)
5675}
5676
5677// GoString returns the string representation
5678func (s Suggester) GoString() string {
5679	return s.String()
5680}
5681
5682// Validate inspects the fields of the type to determine if they are valid.
5683func (s *Suggester) Validate() error {
5684	invalidParams := request.ErrInvalidParams{Context: "Suggester"}
5685	if s.DocumentSuggesterOptions == nil {
5686		invalidParams.Add(request.NewErrParamRequired("DocumentSuggesterOptions"))
5687	}
5688	if s.SuggesterName == nil {
5689		invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
5690	}
5691	if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
5692		invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
5693	}
5694	if s.DocumentSuggesterOptions != nil {
5695		if err := s.DocumentSuggesterOptions.Validate(); err != nil {
5696			invalidParams.AddNested("DocumentSuggesterOptions", err.(request.ErrInvalidParams))
5697		}
5698	}
5699
5700	if invalidParams.Len() > 0 {
5701		return invalidParams
5702	}
5703	return nil
5704}
5705
5706// SetDocumentSuggesterOptions sets the DocumentSuggesterOptions field's value.
5707func (s *Suggester) SetDocumentSuggesterOptions(v *DocumentSuggesterOptions) *Suggester {
5708	s.DocumentSuggesterOptions = v
5709	return s
5710}
5711
5712// SetSuggesterName sets the SuggesterName field's value.
5713func (s *Suggester) SetSuggesterName(v string) *Suggester {
5714	s.SuggesterName = &v
5715	return s
5716}
5717
5718// The value of a Suggester and its current status.
5719type SuggesterStatus struct {
5720	_ struct{} `type:"structure"`
5721
5722	// Configuration information for a search suggester. Each suggester has a unique
5723	// name and specifies the text field you want to use for suggestions. The following
5724	// options can be configured for a suggester: FuzzyMatching, SortExpression.
5725	//
5726	// Options is a required field
5727	Options *Suggester `type:"structure" required:"true"`
5728
5729	// The status of domain configuration option.
5730	//
5731	// Status is a required field
5732	Status *OptionStatus `type:"structure" required:"true"`
5733}
5734
5735// String returns the string representation
5736func (s SuggesterStatus) String() string {
5737	return awsutil.Prettify(s)
5738}
5739
5740// GoString returns the string representation
5741func (s SuggesterStatus) GoString() string {
5742	return s.String()
5743}
5744
5745// SetOptions sets the Options field's value.
5746func (s *SuggesterStatus) SetOptions(v *Suggester) *SuggesterStatus {
5747	s.Options = v
5748	return s
5749}
5750
5751// SetStatus sets the Status field's value.
5752func (s *SuggesterStatus) SetStatus(v *OptionStatus) *SuggesterStatus {
5753	s.Status = v
5754	return s
5755}
5756
5757// Options for a field that contains an array of text strings. Present if IndexFieldType
5758// specifies the field is of type text-array. A text-array field is always searchable.
5759// All options are enabled by default.
5760type TextArrayOptions struct {
5761	_ struct{} `type:"structure"`
5762
5763	// The name of an analysis scheme for a text-array field.
5764	AnalysisScheme *string `type:"string"`
5765
5766	// A value to use for the field if the field isn't specified for a document.
5767	DefaultValue *string `type:"string"`
5768
5769	// Whether highlights can be returned for the field.
5770	HighlightEnabled *bool `type:"boolean"`
5771
5772	// Whether the contents of the field can be returned in the search results.
5773	ReturnEnabled *bool `type:"boolean"`
5774
5775	// A list of source fields to map to the field.
5776	SourceFields *string `type:"string"`
5777}
5778
5779// String returns the string representation
5780func (s TextArrayOptions) String() string {
5781	return awsutil.Prettify(s)
5782}
5783
5784// GoString returns the string representation
5785func (s TextArrayOptions) GoString() string {
5786	return s.String()
5787}
5788
5789// SetAnalysisScheme sets the AnalysisScheme field's value.
5790func (s *TextArrayOptions) SetAnalysisScheme(v string) *TextArrayOptions {
5791	s.AnalysisScheme = &v
5792	return s
5793}
5794
5795// SetDefaultValue sets the DefaultValue field's value.
5796func (s *TextArrayOptions) SetDefaultValue(v string) *TextArrayOptions {
5797	s.DefaultValue = &v
5798	return s
5799}
5800
5801// SetHighlightEnabled sets the HighlightEnabled field's value.
5802func (s *TextArrayOptions) SetHighlightEnabled(v bool) *TextArrayOptions {
5803	s.HighlightEnabled = &v
5804	return s
5805}
5806
5807// SetReturnEnabled sets the ReturnEnabled field's value.
5808func (s *TextArrayOptions) SetReturnEnabled(v bool) *TextArrayOptions {
5809	s.ReturnEnabled = &v
5810	return s
5811}
5812
5813// SetSourceFields sets the SourceFields field's value.
5814func (s *TextArrayOptions) SetSourceFields(v string) *TextArrayOptions {
5815	s.SourceFields = &v
5816	return s
5817}
5818
5819// Options for text field. Present if IndexFieldType specifies the field is
5820// of type text. A text field is always searchable. All options are enabled
5821// by default.
5822type TextOptions struct {
5823	_ struct{} `type:"structure"`
5824
5825	// The name of an analysis scheme for a text field.
5826	AnalysisScheme *string `type:"string"`
5827
5828	// A value to use for the field if the field isn't specified for a document.
5829	DefaultValue *string `type:"string"`
5830
5831	// Whether highlights can be returned for the field.
5832	HighlightEnabled *bool `type:"boolean"`
5833
5834	// Whether the contents of the field can be returned in the search results.
5835	ReturnEnabled *bool `type:"boolean"`
5836
5837	// Whether the field can be used to sort the search results.
5838	SortEnabled *bool `type:"boolean"`
5839
5840	// A string that represents the name of an index field. CloudSearch supports
5841	// regular index fields as well as dynamic fields. A dynamic field's name defines
5842	// a pattern that begins or ends with a wildcard. Any document fields that don't
5843	// map to a regular index field but do match a dynamic field's pattern are configured
5844	// with the dynamic field's indexing options.
5845	//
5846	// Regular field names begin with a letter and can contain the following characters:
5847	// a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
5848	// or end with a wildcard (*). The wildcard can also be the only character in
5849	// a dynamic field name. Multiple wildcards, and wildcards embedded within a
5850	// string are not supported.
5851	//
5852	// The name score is reserved and cannot be used as a field name. To reference
5853	// a document's ID, you can use the name _id.
5854	SourceField *string `min:"1" type:"string"`
5855}
5856
5857// String returns the string representation
5858func (s TextOptions) String() string {
5859	return awsutil.Prettify(s)
5860}
5861
5862// GoString returns the string representation
5863func (s TextOptions) GoString() string {
5864	return s.String()
5865}
5866
5867// Validate inspects the fields of the type to determine if they are valid.
5868func (s *TextOptions) Validate() error {
5869	invalidParams := request.ErrInvalidParams{Context: "TextOptions"}
5870	if s.SourceField != nil && len(*s.SourceField) < 1 {
5871		invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
5872	}
5873
5874	if invalidParams.Len() > 0 {
5875		return invalidParams
5876	}
5877	return nil
5878}
5879
5880// SetAnalysisScheme sets the AnalysisScheme field's value.
5881func (s *TextOptions) SetAnalysisScheme(v string) *TextOptions {
5882	s.AnalysisScheme = &v
5883	return s
5884}
5885
5886// SetDefaultValue sets the DefaultValue field's value.
5887func (s *TextOptions) SetDefaultValue(v string) *TextOptions {
5888	s.DefaultValue = &v
5889	return s
5890}
5891
5892// SetHighlightEnabled sets the HighlightEnabled field's value.
5893func (s *TextOptions) SetHighlightEnabled(v bool) *TextOptions {
5894	s.HighlightEnabled = &v
5895	return s
5896}
5897
5898// SetReturnEnabled sets the ReturnEnabled field's value.
5899func (s *TextOptions) SetReturnEnabled(v bool) *TextOptions {
5900	s.ReturnEnabled = &v
5901	return s
5902}
5903
5904// SetSortEnabled sets the SortEnabled field's value.
5905func (s *TextOptions) SetSortEnabled(v bool) *TextOptions {
5906	s.SortEnabled = &v
5907	return s
5908}
5909
5910// SetSourceField sets the SourceField field's value.
5911func (s *TextOptions) SetSourceField(v string) *TextOptions {
5912	s.SourceField = &v
5913	return s
5914}
5915
5916// Container for the parameters to the UpdateAvailabilityOptions operation.
5917// Specifies the name of the domain you want to update and the Multi-AZ availability
5918// option.
5919type UpdateAvailabilityOptionsInput struct {
5920	_ struct{} `type:"structure"`
5921
5922	// A string that represents the name of a domain. Domain names are unique across
5923	// the domains owned by an account within an AWS region. Domain names start
5924	// with a letter or number and can contain the following characters: a-z (lowercase),
5925	// 0-9, and - (hyphen).
5926	//
5927	// DomainName is a required field
5928	DomainName *string `min:"3" type:"string" required:"true"`
5929
5930	// You expand an existing search domain to a second Availability Zone by setting
5931	// the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option
5932	// to downgrade the domain to a single Availability Zone by setting the Multi-AZ
5933	// option to false.
5934	//
5935	// MultiAZ is a required field
5936	MultiAZ *bool `type:"boolean" required:"true"`
5937}
5938
5939// String returns the string representation
5940func (s UpdateAvailabilityOptionsInput) String() string {
5941	return awsutil.Prettify(s)
5942}
5943
5944// GoString returns the string representation
5945func (s UpdateAvailabilityOptionsInput) GoString() string {
5946	return s.String()
5947}
5948
5949// Validate inspects the fields of the type to determine if they are valid.
5950func (s *UpdateAvailabilityOptionsInput) Validate() error {
5951	invalidParams := request.ErrInvalidParams{Context: "UpdateAvailabilityOptionsInput"}
5952	if s.DomainName == nil {
5953		invalidParams.Add(request.NewErrParamRequired("DomainName"))
5954	}
5955	if s.DomainName != nil && len(*s.DomainName) < 3 {
5956		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
5957	}
5958	if s.MultiAZ == nil {
5959		invalidParams.Add(request.NewErrParamRequired("MultiAZ"))
5960	}
5961
5962	if invalidParams.Len() > 0 {
5963		return invalidParams
5964	}
5965	return nil
5966}
5967
5968// SetDomainName sets the DomainName field's value.
5969func (s *UpdateAvailabilityOptionsInput) SetDomainName(v string) *UpdateAvailabilityOptionsInput {
5970	s.DomainName = &v
5971	return s
5972}
5973
5974// SetMultiAZ sets the MultiAZ field's value.
5975func (s *UpdateAvailabilityOptionsInput) SetMultiAZ(v bool) *UpdateAvailabilityOptionsInput {
5976	s.MultiAZ = &v
5977	return s
5978}
5979
5980// The result of a UpdateAvailabilityOptions request. Contains the status of
5981// the domain's availability options.
5982type UpdateAvailabilityOptionsOutput struct {
5983	_ struct{} `type:"structure"`
5984
5985	// The newly-configured availability options. Indicates whether Multi-AZ is
5986	// enabled for the domain.
5987	AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
5988}
5989
5990// String returns the string representation
5991func (s UpdateAvailabilityOptionsOutput) String() string {
5992	return awsutil.Prettify(s)
5993}
5994
5995// GoString returns the string representation
5996func (s UpdateAvailabilityOptionsOutput) GoString() string {
5997	return s.String()
5998}
5999
6000// SetAvailabilityOptions sets the AvailabilityOptions field's value.
6001func (s *UpdateAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *UpdateAvailabilityOptionsOutput {
6002	s.AvailabilityOptions = v
6003	return s
6004}
6005
6006// Container for the parameters to the UpdateScalingParameters operation. Specifies
6007// the name of the domain you want to update and the scaling parameters you
6008// want to configure.
6009type UpdateScalingParametersInput struct {
6010	_ struct{} `type:"structure"`
6011
6012	// A string that represents the name of a domain. Domain names are unique across
6013	// the domains owned by an account within an AWS region. Domain names start
6014	// with a letter or number and can contain the following characters: a-z (lowercase),
6015	// 0-9, and - (hyphen).
6016	//
6017	// DomainName is a required field
6018	DomainName *string `min:"3" type:"string" required:"true"`
6019
6020	// The desired instance type and desired number of replicas of each index partition.
6021	//
6022	// ScalingParameters is a required field
6023	ScalingParameters *ScalingParameters `type:"structure" required:"true"`
6024}
6025
6026// String returns the string representation
6027func (s UpdateScalingParametersInput) String() string {
6028	return awsutil.Prettify(s)
6029}
6030
6031// GoString returns the string representation
6032func (s UpdateScalingParametersInput) GoString() string {
6033	return s.String()
6034}
6035
6036// Validate inspects the fields of the type to determine if they are valid.
6037func (s *UpdateScalingParametersInput) Validate() error {
6038	invalidParams := request.ErrInvalidParams{Context: "UpdateScalingParametersInput"}
6039	if s.DomainName == nil {
6040		invalidParams.Add(request.NewErrParamRequired("DomainName"))
6041	}
6042	if s.DomainName != nil && len(*s.DomainName) < 3 {
6043		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
6044	}
6045	if s.ScalingParameters == nil {
6046		invalidParams.Add(request.NewErrParamRequired("ScalingParameters"))
6047	}
6048
6049	if invalidParams.Len() > 0 {
6050		return invalidParams
6051	}
6052	return nil
6053}
6054
6055// SetDomainName sets the DomainName field's value.
6056func (s *UpdateScalingParametersInput) SetDomainName(v string) *UpdateScalingParametersInput {
6057	s.DomainName = &v
6058	return s
6059}
6060
6061// SetScalingParameters sets the ScalingParameters field's value.
6062func (s *UpdateScalingParametersInput) SetScalingParameters(v *ScalingParameters) *UpdateScalingParametersInput {
6063	s.ScalingParameters = v
6064	return s
6065}
6066
6067// The result of a UpdateScalingParameters request. Contains the status of the
6068// newly-configured scaling parameters.
6069type UpdateScalingParametersOutput struct {
6070	_ struct{} `type:"structure"`
6071
6072	// The status and configuration of a search domain's scaling parameters.
6073	//
6074	// ScalingParameters is a required field
6075	ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
6076}
6077
6078// String returns the string representation
6079func (s UpdateScalingParametersOutput) String() string {
6080	return awsutil.Prettify(s)
6081}
6082
6083// GoString returns the string representation
6084func (s UpdateScalingParametersOutput) GoString() string {
6085	return s.String()
6086}
6087
6088// SetScalingParameters sets the ScalingParameters field's value.
6089func (s *UpdateScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *UpdateScalingParametersOutput {
6090	s.ScalingParameters = v
6091	return s
6092}
6093
6094// Container for the parameters to the UpdateServiceAccessPolicies operation.
6095// Specifies the name of the domain you want to update and the access rules
6096// you want to configure.
6097type UpdateServiceAccessPoliciesInput struct {
6098	_ struct{} `type:"structure"`
6099
6100	// The access rules you want to configure. These rules replace any existing
6101	// rules.
6102	//
6103	// AccessPolicies is a required field
6104	AccessPolicies *string `type:"string" required:"true"`
6105
6106	// A string that represents the name of a domain. Domain names are unique across
6107	// the domains owned by an account within an AWS region. Domain names start
6108	// with a letter or number and can contain the following characters: a-z (lowercase),
6109	// 0-9, and - (hyphen).
6110	//
6111	// DomainName is a required field
6112	DomainName *string `min:"3" type:"string" required:"true"`
6113}
6114
6115// String returns the string representation
6116func (s UpdateServiceAccessPoliciesInput) String() string {
6117	return awsutil.Prettify(s)
6118}
6119
6120// GoString returns the string representation
6121func (s UpdateServiceAccessPoliciesInput) GoString() string {
6122	return s.String()
6123}
6124
6125// Validate inspects the fields of the type to determine if they are valid.
6126func (s *UpdateServiceAccessPoliciesInput) Validate() error {
6127	invalidParams := request.ErrInvalidParams{Context: "UpdateServiceAccessPoliciesInput"}
6128	if s.AccessPolicies == nil {
6129		invalidParams.Add(request.NewErrParamRequired("AccessPolicies"))
6130	}
6131	if s.DomainName == nil {
6132		invalidParams.Add(request.NewErrParamRequired("DomainName"))
6133	}
6134	if s.DomainName != nil && len(*s.DomainName) < 3 {
6135		invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
6136	}
6137
6138	if invalidParams.Len() > 0 {
6139		return invalidParams
6140	}
6141	return nil
6142}
6143
6144// SetAccessPolicies sets the AccessPolicies field's value.
6145func (s *UpdateServiceAccessPoliciesInput) SetAccessPolicies(v string) *UpdateServiceAccessPoliciesInput {
6146	s.AccessPolicies = &v
6147	return s
6148}
6149
6150// SetDomainName sets the DomainName field's value.
6151func (s *UpdateServiceAccessPoliciesInput) SetDomainName(v string) *UpdateServiceAccessPoliciesInput {
6152	s.DomainName = &v
6153	return s
6154}
6155
6156// The result of an UpdateServiceAccessPolicies request. Contains the new access
6157// policies.
6158type UpdateServiceAccessPoliciesOutput struct {
6159	_ struct{} `type:"structure"`
6160
6161	// The access rules configured for the domain.
6162	//
6163	// AccessPolicies is a required field
6164	AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
6165}
6166
6167// String returns the string representation
6168func (s UpdateServiceAccessPoliciesOutput) String() string {
6169	return awsutil.Prettify(s)
6170}
6171
6172// GoString returns the string representation
6173func (s UpdateServiceAccessPoliciesOutput) GoString() string {
6174	return s.String()
6175}
6176
6177// SetAccessPolicies sets the AccessPolicies field's value.
6178func (s *UpdateServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *UpdateServiceAccessPoliciesOutput {
6179	s.AccessPolicies = v
6180	return s
6181}
6182
6183const (
6184	// AlgorithmicStemmingNone is a AlgorithmicStemming enum value
6185	AlgorithmicStemmingNone = "none"
6186
6187	// AlgorithmicStemmingMinimal is a AlgorithmicStemming enum value
6188	AlgorithmicStemmingMinimal = "minimal"
6189
6190	// AlgorithmicStemmingLight is a AlgorithmicStemming enum value
6191	AlgorithmicStemmingLight = "light"
6192
6193	// AlgorithmicStemmingFull is a AlgorithmicStemming enum value
6194	AlgorithmicStemmingFull = "full"
6195)
6196
6197// An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul
6198// for multiple languages.
6199const (
6200	// AnalysisSchemeLanguageAr is a AnalysisSchemeLanguage enum value
6201	AnalysisSchemeLanguageAr = "ar"
6202
6203	// AnalysisSchemeLanguageBg is a AnalysisSchemeLanguage enum value
6204	AnalysisSchemeLanguageBg = "bg"
6205
6206	// AnalysisSchemeLanguageCa is a AnalysisSchemeLanguage enum value
6207	AnalysisSchemeLanguageCa = "ca"
6208
6209	// AnalysisSchemeLanguageCs is a AnalysisSchemeLanguage enum value
6210	AnalysisSchemeLanguageCs = "cs"
6211
6212	// AnalysisSchemeLanguageDa is a AnalysisSchemeLanguage enum value
6213	AnalysisSchemeLanguageDa = "da"
6214
6215	// AnalysisSchemeLanguageDe is a AnalysisSchemeLanguage enum value
6216	AnalysisSchemeLanguageDe = "de"
6217
6218	// AnalysisSchemeLanguageEl is a AnalysisSchemeLanguage enum value
6219	AnalysisSchemeLanguageEl = "el"
6220
6221	// AnalysisSchemeLanguageEn is a AnalysisSchemeLanguage enum value
6222	AnalysisSchemeLanguageEn = "en"
6223
6224	// AnalysisSchemeLanguageEs is a AnalysisSchemeLanguage enum value
6225	AnalysisSchemeLanguageEs = "es"
6226
6227	// AnalysisSchemeLanguageEu is a AnalysisSchemeLanguage enum value
6228	AnalysisSchemeLanguageEu = "eu"
6229
6230	// AnalysisSchemeLanguageFa is a AnalysisSchemeLanguage enum value
6231	AnalysisSchemeLanguageFa = "fa"
6232
6233	// AnalysisSchemeLanguageFi is a AnalysisSchemeLanguage enum value
6234	AnalysisSchemeLanguageFi = "fi"
6235
6236	// AnalysisSchemeLanguageFr is a AnalysisSchemeLanguage enum value
6237	AnalysisSchemeLanguageFr = "fr"
6238
6239	// AnalysisSchemeLanguageGa is a AnalysisSchemeLanguage enum value
6240	AnalysisSchemeLanguageGa = "ga"
6241
6242	// AnalysisSchemeLanguageGl is a AnalysisSchemeLanguage enum value
6243	AnalysisSchemeLanguageGl = "gl"
6244
6245	// AnalysisSchemeLanguageHe is a AnalysisSchemeLanguage enum value
6246	AnalysisSchemeLanguageHe = "he"
6247
6248	// AnalysisSchemeLanguageHi is a AnalysisSchemeLanguage enum value
6249	AnalysisSchemeLanguageHi = "hi"
6250
6251	// AnalysisSchemeLanguageHu is a AnalysisSchemeLanguage enum value
6252	AnalysisSchemeLanguageHu = "hu"
6253
6254	// AnalysisSchemeLanguageHy is a AnalysisSchemeLanguage enum value
6255	AnalysisSchemeLanguageHy = "hy"
6256
6257	// AnalysisSchemeLanguageId is a AnalysisSchemeLanguage enum value
6258	AnalysisSchemeLanguageId = "id"
6259
6260	// AnalysisSchemeLanguageIt is a AnalysisSchemeLanguage enum value
6261	AnalysisSchemeLanguageIt = "it"
6262
6263	// AnalysisSchemeLanguageJa is a AnalysisSchemeLanguage enum value
6264	AnalysisSchemeLanguageJa = "ja"
6265
6266	// AnalysisSchemeLanguageKo is a AnalysisSchemeLanguage enum value
6267	AnalysisSchemeLanguageKo = "ko"
6268
6269	// AnalysisSchemeLanguageLv is a AnalysisSchemeLanguage enum value
6270	AnalysisSchemeLanguageLv = "lv"
6271
6272	// AnalysisSchemeLanguageMul is a AnalysisSchemeLanguage enum value
6273	AnalysisSchemeLanguageMul = "mul"
6274
6275	// AnalysisSchemeLanguageNl is a AnalysisSchemeLanguage enum value
6276	AnalysisSchemeLanguageNl = "nl"
6277
6278	// AnalysisSchemeLanguageNo is a AnalysisSchemeLanguage enum value
6279	AnalysisSchemeLanguageNo = "no"
6280
6281	// AnalysisSchemeLanguagePt is a AnalysisSchemeLanguage enum value
6282	AnalysisSchemeLanguagePt = "pt"
6283
6284	// AnalysisSchemeLanguageRo is a AnalysisSchemeLanguage enum value
6285	AnalysisSchemeLanguageRo = "ro"
6286
6287	// AnalysisSchemeLanguageRu is a AnalysisSchemeLanguage enum value
6288	AnalysisSchemeLanguageRu = "ru"
6289
6290	// AnalysisSchemeLanguageSv is a AnalysisSchemeLanguage enum value
6291	AnalysisSchemeLanguageSv = "sv"
6292
6293	// AnalysisSchemeLanguageTh is a AnalysisSchemeLanguage enum value
6294	AnalysisSchemeLanguageTh = "th"
6295
6296	// AnalysisSchemeLanguageTr is a AnalysisSchemeLanguage enum value
6297	AnalysisSchemeLanguageTr = "tr"
6298
6299	// AnalysisSchemeLanguageZhHans is a AnalysisSchemeLanguage enum value
6300	AnalysisSchemeLanguageZhHans = "zh-Hans"
6301
6302	// AnalysisSchemeLanguageZhHant is a AnalysisSchemeLanguage enum value
6303	AnalysisSchemeLanguageZhHant = "zh-Hant"
6304)
6305
6306// The type of field. The valid options for a field depend on the field type.
6307// For more information about the supported field types, see Configuring Index
6308// Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
6309// in the Amazon CloudSearch Developer Guide.
6310const (
6311	// IndexFieldTypeInt is a IndexFieldType enum value
6312	IndexFieldTypeInt = "int"
6313
6314	// IndexFieldTypeDouble is a IndexFieldType enum value
6315	IndexFieldTypeDouble = "double"
6316
6317	// IndexFieldTypeLiteral is a IndexFieldType enum value
6318	IndexFieldTypeLiteral = "literal"
6319
6320	// IndexFieldTypeText is a IndexFieldType enum value
6321	IndexFieldTypeText = "text"
6322
6323	// IndexFieldTypeDate is a IndexFieldType enum value
6324	IndexFieldTypeDate = "date"
6325
6326	// IndexFieldTypeLatlon is a IndexFieldType enum value
6327	IndexFieldTypeLatlon = "latlon"
6328
6329	// IndexFieldTypeIntArray is a IndexFieldType enum value
6330	IndexFieldTypeIntArray = "int-array"
6331
6332	// IndexFieldTypeDoubleArray is a IndexFieldType enum value
6333	IndexFieldTypeDoubleArray = "double-array"
6334
6335	// IndexFieldTypeLiteralArray is a IndexFieldType enum value
6336	IndexFieldTypeLiteralArray = "literal-array"
6337
6338	// IndexFieldTypeTextArray is a IndexFieldType enum value
6339	IndexFieldTypeTextArray = "text-array"
6340
6341	// IndexFieldTypeDateArray is a IndexFieldType enum value
6342	IndexFieldTypeDateArray = "date-array"
6343)
6344
6345// The state of processing a change to an option. One of:
6346//
6347//    * RequiresIndexDocuments: The option's latest value will not be deployed
6348//    until IndexDocuments has been called and indexing is complete.
6349//    * Processing: The option's latest value is in the process of being activated.
6350//
6351//    * Active: The option's latest value is fully deployed.
6352//    * FailedToValidate: The option value is not compatible with the domain's
6353//    data and cannot be used to index the data. You must either modify the
6354//    option value or update or remove the incompatible documents.
6355const (
6356	// OptionStateRequiresIndexDocuments is a OptionState enum value
6357	OptionStateRequiresIndexDocuments = "RequiresIndexDocuments"
6358
6359	// OptionStateProcessing is a OptionState enum value
6360	OptionStateProcessing = "Processing"
6361
6362	// OptionStateActive is a OptionState enum value
6363	OptionStateActive = "Active"
6364
6365	// OptionStateFailedToValidate is a OptionState enum value
6366	OptionStateFailedToValidate = "FailedToValidate"
6367)
6368
6369// The instance type (such as search.m1.small) on which an index partition is
6370// hosted.
6371const (
6372	// PartitionInstanceTypeSearchM1Small is a PartitionInstanceType enum value
6373	PartitionInstanceTypeSearchM1Small = "search.m1.small"
6374
6375	// PartitionInstanceTypeSearchM1Large is a PartitionInstanceType enum value
6376	PartitionInstanceTypeSearchM1Large = "search.m1.large"
6377
6378	// PartitionInstanceTypeSearchM2Xlarge is a PartitionInstanceType enum value
6379	PartitionInstanceTypeSearchM2Xlarge = "search.m2.xlarge"
6380
6381	// PartitionInstanceTypeSearchM22xlarge is a PartitionInstanceType enum value
6382	PartitionInstanceTypeSearchM22xlarge = "search.m2.2xlarge"
6383
6384	// PartitionInstanceTypeSearchM3Medium is a PartitionInstanceType enum value
6385	PartitionInstanceTypeSearchM3Medium = "search.m3.medium"
6386
6387	// PartitionInstanceTypeSearchM3Large is a PartitionInstanceType enum value
6388	PartitionInstanceTypeSearchM3Large = "search.m3.large"
6389
6390	// PartitionInstanceTypeSearchM3Xlarge is a PartitionInstanceType enum value
6391	PartitionInstanceTypeSearchM3Xlarge = "search.m3.xlarge"
6392
6393	// PartitionInstanceTypeSearchM32xlarge is a PartitionInstanceType enum value
6394	PartitionInstanceTypeSearchM32xlarge = "search.m3.2xlarge"
6395)
6396
6397const (
6398	// SuggesterFuzzyMatchingNone is a SuggesterFuzzyMatching enum value
6399	SuggesterFuzzyMatchingNone = "none"
6400
6401	// SuggesterFuzzyMatchingLow is a SuggesterFuzzyMatching enum value
6402	SuggesterFuzzyMatchingLow = "low"
6403
6404	// SuggesterFuzzyMatchingHigh is a SuggesterFuzzyMatching enum value
6405	SuggesterFuzzyMatchingHigh = "high"
6406)
6407