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