github.com/aavshr/aws-sdk-go@v1.41.3/service/cloudsearch/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package cloudsearch 4 5 import ( 6 "time" 7 8 "github.com/aavshr/aws-sdk-go/aws" 9 "github.com/aavshr/aws-sdk-go/aws/awsutil" 10 "github.com/aavshr/aws-sdk-go/aws/request" 11 ) 12 13 const 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 // } 37 func (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 // 78 func (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. 92 func (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 99 const 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 // } 123 func (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 // 170 func (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. 184 func (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 191 const 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 // } 215 func (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 // 263 func (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. 277 func (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 284 const 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 // } 308 func (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 // 356 func (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. 370 func (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 377 const 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 // } 401 func (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 // 453 func (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. 467 func (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 474 const 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 // } 498 func (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 // 548 func (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. 562 func (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 569 const 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 // } 593 func (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 // 637 func (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. 651 func (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 658 const 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 // } 682 func (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 // 720 func (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. 734 func (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 741 const 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 // } 765 func (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 // 809 func (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. 823 func (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 830 const 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 // } 854 func (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 // 898 func (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. 912 func (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 919 const 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 // } 943 func (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 // 987 func (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. 1001 func (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 1008 const 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 // } 1032 func (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 // 1077 func (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. 1091 func (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 1098 const 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 // } 1122 func (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 // 1174 func (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. 1188 func (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 1195 const 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 // } 1219 func (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 // 1267 func (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. 1281 func (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 1288 const 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 // } 1312 func (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 // 1352 func (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. 1366 func (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 1373 const 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 // } 1397 func (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 // 1441 func (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. 1455 func (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 1462 const 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 // } 1486 func (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 // 1530 func (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. 1544 func (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 1551 const 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 // } 1575 func (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 // 1617 func (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. 1631 func (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 1638 const 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 // } 1662 func (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 // 1706 func (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. 1720 func (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 1727 const 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 // } 1751 func (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 // 1796 func (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. 1810 func (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 1817 const 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 // } 1841 func (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 // 1882 func (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. 1896 func (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 1903 const 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 // } 1927 func (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 // 1958 func (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. 1972 func (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 1979 const 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 // } 2003 func (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 // 2059 func (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. 2073 func (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 2080 const 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 // } 2104 func (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 // 2158 func (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. 2172 func (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 2179 const 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 // } 2203 func (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 // 2255 func (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. 2269 func (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 2276 const 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 // } 2300 func (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 // 2347 func (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. 2361 func (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. 2370 type 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. 2388 // 2389 // API parameter values that are decorated as "sensitive" in the API will not 2390 // be included in the string output. The member name will be present, but the 2391 // value will be replaced with "sensitive". 2392 func (s AccessPoliciesStatus) String() string { 2393 return awsutil.Prettify(s) 2394 } 2395 2396 // GoString returns the string representation. 2397 // 2398 // API parameter values that are decorated as "sensitive" in the API will not 2399 // be included in the string output. The member name will be present, but the 2400 // value will be replaced with "sensitive". 2401 func (s AccessPoliciesStatus) GoString() string { 2402 return s.String() 2403 } 2404 2405 // SetOptions sets the Options field's value. 2406 func (s *AccessPoliciesStatus) SetOptions(v string) *AccessPoliciesStatus { 2407 s.Options = &v 2408 return s 2409 } 2410 2411 // SetStatus sets the Status field's value. 2412 func (s *AccessPoliciesStatus) SetStatus(v *OptionStatus) *AccessPoliciesStatus { 2413 s.Status = v 2414 return s 2415 } 2416 2417 // Synonyms, stopwords, and stemming options for an analysis scheme. Includes 2418 // tokenization dictionary for Japanese. 2419 type AnalysisOptions struct { 2420 _ struct{} `type:"structure"` 2421 2422 // The level of algorithmic stemming to perform: none, minimal, light, or full. 2423 // The available levels vary depending on the language. For more information, 2424 // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings) 2425 // in the Amazon CloudSearch Developer Guide 2426 AlgorithmicStemming *string `type:"string" enum:"AlgorithmicStemming"` 2427 2428 // A JSON array that contains a collection of terms, tokens, readings and part 2429 // of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary 2430 // enables you to override the default tokenization for selected terms. This 2431 // is only valid for Japanese language fields. 2432 JapaneseTokenizationDictionary *string `type:"string"` 2433 2434 // A JSON object that contains a collection of string:value pairs that each 2435 // map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", 2436 // "term3": "stem3"}. The stemming dictionary is applied in addition to any 2437 // algorithmic stemming. This enables you to override the results of the algorithmic 2438 // stemming to correct specific cases of overstemming or understemming. The 2439 // maximum size of a stemming dictionary is 500 KB. 2440 StemmingDictionary *string `type:"string"` 2441 2442 // A JSON array of terms to ignore during indexing and searching. For example, 2443 // ["a", "an", "the", "of"]. The stopwords dictionary must explicitly list each 2444 // word you want to ignore. Wildcards and regular expressions are not supported. 2445 Stopwords *string `type:"string"` 2446 2447 // A JSON object that defines synonym groups and aliases. A synonym group is 2448 // an array of arrays, where each sub-array is a group of terms where each term 2449 // in the group is considered a synonym of every other term in the group. The 2450 // aliases value is an object that contains a collection of string:value pairs 2451 // where the string specifies a term and the array of values specifies each 2452 // of the aliases for that term. An alias is considered a synonym of the specified 2453 // term, but the term is not considered a synonym of the alias. For more information 2454 // about specifying synonyms, see Synonyms (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms) 2455 // in the Amazon CloudSearch Developer Guide. 2456 Synonyms *string `type:"string"` 2457 } 2458 2459 // String returns the string representation. 2460 // 2461 // API parameter values that are decorated as "sensitive" in the API will not 2462 // be included in the string output. The member name will be present, but the 2463 // value will be replaced with "sensitive". 2464 func (s AnalysisOptions) String() string { 2465 return awsutil.Prettify(s) 2466 } 2467 2468 // GoString returns the string representation. 2469 // 2470 // API parameter values that are decorated as "sensitive" in the API will not 2471 // be included in the string output. The member name will be present, but the 2472 // value will be replaced with "sensitive". 2473 func (s AnalysisOptions) GoString() string { 2474 return s.String() 2475 } 2476 2477 // SetAlgorithmicStemming sets the AlgorithmicStemming field's value. 2478 func (s *AnalysisOptions) SetAlgorithmicStemming(v string) *AnalysisOptions { 2479 s.AlgorithmicStemming = &v 2480 return s 2481 } 2482 2483 // SetJapaneseTokenizationDictionary sets the JapaneseTokenizationDictionary field's value. 2484 func (s *AnalysisOptions) SetJapaneseTokenizationDictionary(v string) *AnalysisOptions { 2485 s.JapaneseTokenizationDictionary = &v 2486 return s 2487 } 2488 2489 // SetStemmingDictionary sets the StemmingDictionary field's value. 2490 func (s *AnalysisOptions) SetStemmingDictionary(v string) *AnalysisOptions { 2491 s.StemmingDictionary = &v 2492 return s 2493 } 2494 2495 // SetStopwords sets the Stopwords field's value. 2496 func (s *AnalysisOptions) SetStopwords(v string) *AnalysisOptions { 2497 s.Stopwords = &v 2498 return s 2499 } 2500 2501 // SetSynonyms sets the Synonyms field's value. 2502 func (s *AnalysisOptions) SetSynonyms(v string) *AnalysisOptions { 2503 s.Synonyms = &v 2504 return s 2505 } 2506 2507 // Configuration information for an analysis scheme. Each analysis scheme has 2508 // a unique name and specifies the language of the text to be processed. The 2509 // following options can be configured for an analysis scheme: Synonyms, Stopwords, 2510 // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming. 2511 type AnalysisScheme struct { 2512 _ struct{} `type:"structure"` 2513 2514 // Synonyms, stopwords, and stemming options for an analysis scheme. Includes 2515 // tokenization dictionary for Japanese. 2516 AnalysisOptions *AnalysisOptions `type:"structure"` 2517 2518 // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul 2519 // for multiple languages. 2520 // 2521 // AnalysisSchemeLanguage is a required field 2522 AnalysisSchemeLanguage *string `type:"string" required:"true" enum:"AnalysisSchemeLanguage"` 2523 2524 // Names must begin with a letter and can contain the following characters: 2525 // a-z (lowercase), 0-9, and _ (underscore). 2526 // 2527 // AnalysisSchemeName is a required field 2528 AnalysisSchemeName *string `min:"1" type:"string" required:"true"` 2529 } 2530 2531 // String returns the string representation. 2532 // 2533 // API parameter values that are decorated as "sensitive" in the API will not 2534 // be included in the string output. The member name will be present, but the 2535 // value will be replaced with "sensitive". 2536 func (s AnalysisScheme) String() string { 2537 return awsutil.Prettify(s) 2538 } 2539 2540 // GoString returns the string representation. 2541 // 2542 // API parameter values that are decorated as "sensitive" in the API will not 2543 // be included in the string output. The member name will be present, but the 2544 // value will be replaced with "sensitive". 2545 func (s AnalysisScheme) GoString() string { 2546 return s.String() 2547 } 2548 2549 // Validate inspects the fields of the type to determine if they are valid. 2550 func (s *AnalysisScheme) Validate() error { 2551 invalidParams := request.ErrInvalidParams{Context: "AnalysisScheme"} 2552 if s.AnalysisSchemeLanguage == nil { 2553 invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeLanguage")) 2554 } 2555 if s.AnalysisSchemeName == nil { 2556 invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName")) 2557 } 2558 if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 { 2559 invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1)) 2560 } 2561 2562 if invalidParams.Len() > 0 { 2563 return invalidParams 2564 } 2565 return nil 2566 } 2567 2568 // SetAnalysisOptions sets the AnalysisOptions field's value. 2569 func (s *AnalysisScheme) SetAnalysisOptions(v *AnalysisOptions) *AnalysisScheme { 2570 s.AnalysisOptions = v 2571 return s 2572 } 2573 2574 // SetAnalysisSchemeLanguage sets the AnalysisSchemeLanguage field's value. 2575 func (s *AnalysisScheme) SetAnalysisSchemeLanguage(v string) *AnalysisScheme { 2576 s.AnalysisSchemeLanguage = &v 2577 return s 2578 } 2579 2580 // SetAnalysisSchemeName sets the AnalysisSchemeName field's value. 2581 func (s *AnalysisScheme) SetAnalysisSchemeName(v string) *AnalysisScheme { 2582 s.AnalysisSchemeName = &v 2583 return s 2584 } 2585 2586 // The status and configuration of an AnalysisScheme. 2587 type AnalysisSchemeStatus struct { 2588 _ struct{} `type:"structure"` 2589 2590 // Configuration information for an analysis scheme. Each analysis scheme has 2591 // a unique name and specifies the language of the text to be processed. The 2592 // following options can be configured for an analysis scheme: Synonyms, Stopwords, 2593 // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming. 2594 // 2595 // Options is a required field 2596 Options *AnalysisScheme `type:"structure" required:"true"` 2597 2598 // The status of domain configuration option. 2599 // 2600 // Status is a required field 2601 Status *OptionStatus `type:"structure" required:"true"` 2602 } 2603 2604 // String returns the string representation. 2605 // 2606 // API parameter values that are decorated as "sensitive" in the API will not 2607 // be included in the string output. The member name will be present, but the 2608 // value will be replaced with "sensitive". 2609 func (s AnalysisSchemeStatus) String() string { 2610 return awsutil.Prettify(s) 2611 } 2612 2613 // GoString returns the string representation. 2614 // 2615 // API parameter values that are decorated as "sensitive" in the API will not 2616 // be included in the string output. The member name will be present, but the 2617 // value will be replaced with "sensitive". 2618 func (s AnalysisSchemeStatus) GoString() string { 2619 return s.String() 2620 } 2621 2622 // SetOptions sets the Options field's value. 2623 func (s *AnalysisSchemeStatus) SetOptions(v *AnalysisScheme) *AnalysisSchemeStatus { 2624 s.Options = v 2625 return s 2626 } 2627 2628 // SetStatus sets the Status field's value. 2629 func (s *AnalysisSchemeStatus) SetStatus(v *OptionStatus) *AnalysisSchemeStatus { 2630 s.Status = v 2631 return s 2632 } 2633 2634 // The status and configuration of the domain's availability options. 2635 type AvailabilityOptionsStatus struct { 2636 _ struct{} `type:"structure"` 2637 2638 // The availability options configured for the domain. 2639 // 2640 // Options is a required field 2641 Options *bool `type:"boolean" required:"true"` 2642 2643 // The status of domain configuration option. 2644 // 2645 // Status is a required field 2646 Status *OptionStatus `type:"structure" required:"true"` 2647 } 2648 2649 // String returns the string representation. 2650 // 2651 // API parameter values that are decorated as "sensitive" in the API will not 2652 // be included in the string output. The member name will be present, but the 2653 // value will be replaced with "sensitive". 2654 func (s AvailabilityOptionsStatus) String() string { 2655 return awsutil.Prettify(s) 2656 } 2657 2658 // GoString returns the string representation. 2659 // 2660 // API parameter values that are decorated as "sensitive" in the API will not 2661 // be included in the string output. The member name will be present, but the 2662 // value will be replaced with "sensitive". 2663 func (s AvailabilityOptionsStatus) GoString() string { 2664 return s.String() 2665 } 2666 2667 // SetOptions sets the Options field's value. 2668 func (s *AvailabilityOptionsStatus) SetOptions(v bool) *AvailabilityOptionsStatus { 2669 s.Options = &v 2670 return s 2671 } 2672 2673 // SetStatus sets the Status field's value. 2674 func (s *AvailabilityOptionsStatus) SetStatus(v *OptionStatus) *AvailabilityOptionsStatus { 2675 s.Status = v 2676 return s 2677 } 2678 2679 // Container for the parameters to the BuildSuggester operation. Specifies the 2680 // name of the domain you want to update. 2681 type BuildSuggestersInput struct { 2682 _ struct{} `type:"structure"` 2683 2684 // A string that represents the name of a domain. Domain names are unique across 2685 // the domains owned by an account within an AWS region. Domain names start 2686 // with a letter or number and can contain the following characters: a-z (lowercase), 2687 // 0-9, and - (hyphen). 2688 // 2689 // DomainName is a required field 2690 DomainName *string `min:"3" type:"string" required:"true"` 2691 } 2692 2693 // String returns the string representation. 2694 // 2695 // API parameter values that are decorated as "sensitive" in the API will not 2696 // be included in the string output. The member name will be present, but the 2697 // value will be replaced with "sensitive". 2698 func (s BuildSuggestersInput) String() string { 2699 return awsutil.Prettify(s) 2700 } 2701 2702 // GoString returns the string representation. 2703 // 2704 // API parameter values that are decorated as "sensitive" in the API will not 2705 // be included in the string output. The member name will be present, but the 2706 // value will be replaced with "sensitive". 2707 func (s BuildSuggestersInput) GoString() string { 2708 return s.String() 2709 } 2710 2711 // Validate inspects the fields of the type to determine if they are valid. 2712 func (s *BuildSuggestersInput) Validate() error { 2713 invalidParams := request.ErrInvalidParams{Context: "BuildSuggestersInput"} 2714 if s.DomainName == nil { 2715 invalidParams.Add(request.NewErrParamRequired("DomainName")) 2716 } 2717 if s.DomainName != nil && len(*s.DomainName) < 3 { 2718 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 2719 } 2720 2721 if invalidParams.Len() > 0 { 2722 return invalidParams 2723 } 2724 return nil 2725 } 2726 2727 // SetDomainName sets the DomainName field's value. 2728 func (s *BuildSuggestersInput) SetDomainName(v string) *BuildSuggestersInput { 2729 s.DomainName = &v 2730 return s 2731 } 2732 2733 // The result of a BuildSuggester request. Contains a list of the fields used 2734 // for suggestions. 2735 type BuildSuggestersOutput struct { 2736 _ struct{} `type:"structure"` 2737 2738 // A list of field names. 2739 FieldNames []*string `type:"list"` 2740 } 2741 2742 // String returns the string representation. 2743 // 2744 // API parameter values that are decorated as "sensitive" in the API will not 2745 // be included in the string output. The member name will be present, but the 2746 // value will be replaced with "sensitive". 2747 func (s BuildSuggestersOutput) String() string { 2748 return awsutil.Prettify(s) 2749 } 2750 2751 // GoString returns the string representation. 2752 // 2753 // API parameter values that are decorated as "sensitive" in the API will not 2754 // be included in the string output. The member name will be present, but the 2755 // value will be replaced with "sensitive". 2756 func (s BuildSuggestersOutput) GoString() string { 2757 return s.String() 2758 } 2759 2760 // SetFieldNames sets the FieldNames field's value. 2761 func (s *BuildSuggestersOutput) SetFieldNames(v []*string) *BuildSuggestersOutput { 2762 s.FieldNames = v 2763 return s 2764 } 2765 2766 // Container for the parameters to the CreateDomain operation. Specifies a name 2767 // for the new search domain. 2768 type CreateDomainInput struct { 2769 _ struct{} `type:"structure"` 2770 2771 // A name for the domain you are creating. Allowed characters are a-z (lower-case 2772 // letters), 0-9, and hyphen (-). Domain names must start with a letter or number 2773 // and be at least 3 and no more than 28 characters long. 2774 // 2775 // DomainName is a required field 2776 DomainName *string `min:"3" type:"string" required:"true"` 2777 } 2778 2779 // String returns the string representation. 2780 // 2781 // API parameter values that are decorated as "sensitive" in the API will not 2782 // be included in the string output. The member name will be present, but the 2783 // value will be replaced with "sensitive". 2784 func (s CreateDomainInput) String() string { 2785 return awsutil.Prettify(s) 2786 } 2787 2788 // GoString returns the string representation. 2789 // 2790 // API parameter values that are decorated as "sensitive" in the API will not 2791 // be included in the string output. The member name will be present, but the 2792 // value will be replaced with "sensitive". 2793 func (s CreateDomainInput) GoString() string { 2794 return s.String() 2795 } 2796 2797 // Validate inspects the fields of the type to determine if they are valid. 2798 func (s *CreateDomainInput) Validate() error { 2799 invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"} 2800 if s.DomainName == nil { 2801 invalidParams.Add(request.NewErrParamRequired("DomainName")) 2802 } 2803 if s.DomainName != nil && len(*s.DomainName) < 3 { 2804 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 2805 } 2806 2807 if invalidParams.Len() > 0 { 2808 return invalidParams 2809 } 2810 return nil 2811 } 2812 2813 // SetDomainName sets the DomainName field's value. 2814 func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput { 2815 s.DomainName = &v 2816 return s 2817 } 2818 2819 // The result of a CreateDomainRequest. Contains the status of a newly created 2820 // domain. 2821 type CreateDomainOutput struct { 2822 _ struct{} `type:"structure"` 2823 2824 // The current status of the search domain. 2825 DomainStatus *DomainStatus `type:"structure"` 2826 } 2827 2828 // String returns the string representation. 2829 // 2830 // API parameter values that are decorated as "sensitive" in the API will not 2831 // be included in the string output. The member name will be present, but the 2832 // value will be replaced with "sensitive". 2833 func (s CreateDomainOutput) String() string { 2834 return awsutil.Prettify(s) 2835 } 2836 2837 // GoString returns the string representation. 2838 // 2839 // API parameter values that are decorated as "sensitive" in the API will not 2840 // be included in the string output. The member name will be present, but the 2841 // value will be replaced with "sensitive". 2842 func (s CreateDomainOutput) GoString() string { 2843 return s.String() 2844 } 2845 2846 // SetDomainStatus sets the DomainStatus field's value. 2847 func (s *CreateDomainOutput) SetDomainStatus(v *DomainStatus) *CreateDomainOutput { 2848 s.DomainStatus = v 2849 return s 2850 } 2851 2852 // Options for a field that contains an array of dates. Present if IndexFieldType 2853 // specifies the field is of type date-array. All options are enabled by default. 2854 type DateArrayOptions struct { 2855 _ struct{} `type:"structure"` 2856 2857 // A value to use for the field if the field isn't specified for a document. 2858 DefaultValue *string `type:"string"` 2859 2860 // Whether facet information can be returned for the field. 2861 FacetEnabled *bool `type:"boolean"` 2862 2863 // Whether the contents of the field can be returned in the search results. 2864 ReturnEnabled *bool `type:"boolean"` 2865 2866 // Whether the contents of the field are searchable. 2867 SearchEnabled *bool `type:"boolean"` 2868 2869 // A list of source fields to map to the field. 2870 SourceFields *string `type:"string"` 2871 } 2872 2873 // String returns the string representation. 2874 // 2875 // API parameter values that are decorated as "sensitive" in the API will not 2876 // be included in the string output. The member name will be present, but the 2877 // value will be replaced with "sensitive". 2878 func (s DateArrayOptions) String() string { 2879 return awsutil.Prettify(s) 2880 } 2881 2882 // GoString returns the string representation. 2883 // 2884 // API parameter values that are decorated as "sensitive" in the API will not 2885 // be included in the string output. The member name will be present, but the 2886 // value will be replaced with "sensitive". 2887 func (s DateArrayOptions) GoString() string { 2888 return s.String() 2889 } 2890 2891 // SetDefaultValue sets the DefaultValue field's value. 2892 func (s *DateArrayOptions) SetDefaultValue(v string) *DateArrayOptions { 2893 s.DefaultValue = &v 2894 return s 2895 } 2896 2897 // SetFacetEnabled sets the FacetEnabled field's value. 2898 func (s *DateArrayOptions) SetFacetEnabled(v bool) *DateArrayOptions { 2899 s.FacetEnabled = &v 2900 return s 2901 } 2902 2903 // SetReturnEnabled sets the ReturnEnabled field's value. 2904 func (s *DateArrayOptions) SetReturnEnabled(v bool) *DateArrayOptions { 2905 s.ReturnEnabled = &v 2906 return s 2907 } 2908 2909 // SetSearchEnabled sets the SearchEnabled field's value. 2910 func (s *DateArrayOptions) SetSearchEnabled(v bool) *DateArrayOptions { 2911 s.SearchEnabled = &v 2912 return s 2913 } 2914 2915 // SetSourceFields sets the SourceFields field's value. 2916 func (s *DateArrayOptions) SetSourceFields(v string) *DateArrayOptions { 2917 s.SourceFields = &v 2918 return s 2919 } 2920 2921 // Options for a date field. Dates and times are specified in UTC (Coordinated 2922 // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present 2923 // if IndexFieldType specifies the field is of type date. All options are enabled 2924 // by default. 2925 type DateOptions struct { 2926 _ struct{} `type:"structure"` 2927 2928 // A value to use for the field if the field isn't specified for a document. 2929 DefaultValue *string `type:"string"` 2930 2931 // Whether facet information can be returned for the field. 2932 FacetEnabled *bool `type:"boolean"` 2933 2934 // Whether the contents of the field can be returned in the search results. 2935 ReturnEnabled *bool `type:"boolean"` 2936 2937 // Whether the contents of the field are searchable. 2938 SearchEnabled *bool `type:"boolean"` 2939 2940 // Whether the field can be used to sort the search results. 2941 SortEnabled *bool `type:"boolean"` 2942 2943 // A string that represents the name of an index field. CloudSearch supports 2944 // regular index fields as well as dynamic fields. A dynamic field's name defines 2945 // a pattern that begins or ends with a wildcard. Any document fields that don't 2946 // map to a regular index field but do match a dynamic field's pattern are configured 2947 // with the dynamic field's indexing options. 2948 // 2949 // Regular field names begin with a letter and can contain the following characters: 2950 // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin 2951 // or end with a wildcard (*). The wildcard can also be the only character in 2952 // a dynamic field name. Multiple wildcards, and wildcards embedded within a 2953 // string are not supported. 2954 // 2955 // The name score is reserved and cannot be used as a field name. To reference 2956 // a document's ID, you can use the name _id. 2957 SourceField *string `min:"1" type:"string"` 2958 } 2959 2960 // String returns the string representation. 2961 // 2962 // API parameter values that are decorated as "sensitive" in the API will not 2963 // be included in the string output. The member name will be present, but the 2964 // value will be replaced with "sensitive". 2965 func (s DateOptions) String() string { 2966 return awsutil.Prettify(s) 2967 } 2968 2969 // GoString returns the string representation. 2970 // 2971 // API parameter values that are decorated as "sensitive" in the API will not 2972 // be included in the string output. The member name will be present, but the 2973 // value will be replaced with "sensitive". 2974 func (s DateOptions) GoString() string { 2975 return s.String() 2976 } 2977 2978 // Validate inspects the fields of the type to determine if they are valid. 2979 func (s *DateOptions) Validate() error { 2980 invalidParams := request.ErrInvalidParams{Context: "DateOptions"} 2981 if s.SourceField != nil && len(*s.SourceField) < 1 { 2982 invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) 2983 } 2984 2985 if invalidParams.Len() > 0 { 2986 return invalidParams 2987 } 2988 return nil 2989 } 2990 2991 // SetDefaultValue sets the DefaultValue field's value. 2992 func (s *DateOptions) SetDefaultValue(v string) *DateOptions { 2993 s.DefaultValue = &v 2994 return s 2995 } 2996 2997 // SetFacetEnabled sets the FacetEnabled field's value. 2998 func (s *DateOptions) SetFacetEnabled(v bool) *DateOptions { 2999 s.FacetEnabled = &v 3000 return s 3001 } 3002 3003 // SetReturnEnabled sets the ReturnEnabled field's value. 3004 func (s *DateOptions) SetReturnEnabled(v bool) *DateOptions { 3005 s.ReturnEnabled = &v 3006 return s 3007 } 3008 3009 // SetSearchEnabled sets the SearchEnabled field's value. 3010 func (s *DateOptions) SetSearchEnabled(v bool) *DateOptions { 3011 s.SearchEnabled = &v 3012 return s 3013 } 3014 3015 // SetSortEnabled sets the SortEnabled field's value. 3016 func (s *DateOptions) SetSortEnabled(v bool) *DateOptions { 3017 s.SortEnabled = &v 3018 return s 3019 } 3020 3021 // SetSourceField sets the SourceField field's value. 3022 func (s *DateOptions) SetSourceField(v string) *DateOptions { 3023 s.SourceField = &v 3024 return s 3025 } 3026 3027 // Container for the parameters to the DefineAnalysisScheme operation. Specifies 3028 // the name of the domain you want to update and the analysis scheme configuration. 3029 type DefineAnalysisSchemeInput struct { 3030 _ struct{} `type:"structure"` 3031 3032 // Configuration information for an analysis scheme. Each analysis scheme has 3033 // a unique name and specifies the language of the text to be processed. The 3034 // following options can be configured for an analysis scheme: Synonyms, Stopwords, 3035 // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming. 3036 // 3037 // AnalysisScheme is a required field 3038 AnalysisScheme *AnalysisScheme `type:"structure" required:"true"` 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 3049 // String returns the string representation. 3050 // 3051 // API parameter values that are decorated as "sensitive" in the API will not 3052 // be included in the string output. The member name will be present, but the 3053 // value will be replaced with "sensitive". 3054 func (s DefineAnalysisSchemeInput) String() string { 3055 return awsutil.Prettify(s) 3056 } 3057 3058 // GoString returns the string representation. 3059 // 3060 // API parameter values that are decorated as "sensitive" in the API will not 3061 // be included in the string output. The member name will be present, but the 3062 // value will be replaced with "sensitive". 3063 func (s DefineAnalysisSchemeInput) GoString() string { 3064 return s.String() 3065 } 3066 3067 // Validate inspects the fields of the type to determine if they are valid. 3068 func (s *DefineAnalysisSchemeInput) Validate() error { 3069 invalidParams := request.ErrInvalidParams{Context: "DefineAnalysisSchemeInput"} 3070 if s.AnalysisScheme == nil { 3071 invalidParams.Add(request.NewErrParamRequired("AnalysisScheme")) 3072 } 3073 if s.DomainName == nil { 3074 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3075 } 3076 if s.DomainName != nil && len(*s.DomainName) < 3 { 3077 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3078 } 3079 if s.AnalysisScheme != nil { 3080 if err := s.AnalysisScheme.Validate(); err != nil { 3081 invalidParams.AddNested("AnalysisScheme", err.(request.ErrInvalidParams)) 3082 } 3083 } 3084 3085 if invalidParams.Len() > 0 { 3086 return invalidParams 3087 } 3088 return nil 3089 } 3090 3091 // SetAnalysisScheme sets the AnalysisScheme field's value. 3092 func (s *DefineAnalysisSchemeInput) SetAnalysisScheme(v *AnalysisScheme) *DefineAnalysisSchemeInput { 3093 s.AnalysisScheme = v 3094 return s 3095 } 3096 3097 // SetDomainName sets the DomainName field's value. 3098 func (s *DefineAnalysisSchemeInput) SetDomainName(v string) *DefineAnalysisSchemeInput { 3099 s.DomainName = &v 3100 return s 3101 } 3102 3103 // The result of a DefineAnalysisScheme request. Contains the status of the 3104 // newly-configured analysis scheme. 3105 type DefineAnalysisSchemeOutput struct { 3106 _ struct{} `type:"structure"` 3107 3108 // The status and configuration of an AnalysisScheme. 3109 // 3110 // AnalysisScheme is a required field 3111 AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"` 3112 } 3113 3114 // String returns the string representation. 3115 // 3116 // API parameter values that are decorated as "sensitive" in the API will not 3117 // be included in the string output. The member name will be present, but the 3118 // value will be replaced with "sensitive". 3119 func (s DefineAnalysisSchemeOutput) String() string { 3120 return awsutil.Prettify(s) 3121 } 3122 3123 // GoString returns the string representation. 3124 // 3125 // API parameter values that are decorated as "sensitive" in the API will not 3126 // be included in the string output. The member name will be present, but the 3127 // value will be replaced with "sensitive". 3128 func (s DefineAnalysisSchemeOutput) GoString() string { 3129 return s.String() 3130 } 3131 3132 // SetAnalysisScheme sets the AnalysisScheme field's value. 3133 func (s *DefineAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DefineAnalysisSchemeOutput { 3134 s.AnalysisScheme = v 3135 return s 3136 } 3137 3138 // Container for the parameters to the DefineExpression operation. Specifies 3139 // the name of the domain you want to update and the expression you want to 3140 // configure. 3141 type DefineExpressionInput struct { 3142 _ struct{} `type:"structure"` 3143 3144 // A string that represents the name of a domain. Domain names are unique across 3145 // the domains owned by an account within an AWS region. Domain names start 3146 // with a letter or number and can contain the following characters: a-z (lowercase), 3147 // 0-9, and - (hyphen). 3148 // 3149 // DomainName is a required field 3150 DomainName *string `min:"3" type:"string" required:"true"` 3151 3152 // A named expression that can be evaluated at search time. Can be used to sort 3153 // the search results, define other expressions, or return computed information 3154 // in the search results. 3155 // 3156 // Expression is a required field 3157 Expression *Expression `type:"structure" required:"true"` 3158 } 3159 3160 // String returns the string representation. 3161 // 3162 // API parameter values that are decorated as "sensitive" in the API will not 3163 // be included in the string output. The member name will be present, but the 3164 // value will be replaced with "sensitive". 3165 func (s DefineExpressionInput) String() string { 3166 return awsutil.Prettify(s) 3167 } 3168 3169 // GoString returns the string representation. 3170 // 3171 // API parameter values that are decorated as "sensitive" in the API will not 3172 // be included in the string output. The member name will be present, but the 3173 // value will be replaced with "sensitive". 3174 func (s DefineExpressionInput) GoString() string { 3175 return s.String() 3176 } 3177 3178 // Validate inspects the fields of the type to determine if they are valid. 3179 func (s *DefineExpressionInput) Validate() error { 3180 invalidParams := request.ErrInvalidParams{Context: "DefineExpressionInput"} 3181 if s.DomainName == nil { 3182 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3183 } 3184 if s.DomainName != nil && len(*s.DomainName) < 3 { 3185 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3186 } 3187 if s.Expression == nil { 3188 invalidParams.Add(request.NewErrParamRequired("Expression")) 3189 } 3190 if s.Expression != nil { 3191 if err := s.Expression.Validate(); err != nil { 3192 invalidParams.AddNested("Expression", err.(request.ErrInvalidParams)) 3193 } 3194 } 3195 3196 if invalidParams.Len() > 0 { 3197 return invalidParams 3198 } 3199 return nil 3200 } 3201 3202 // SetDomainName sets the DomainName field's value. 3203 func (s *DefineExpressionInput) SetDomainName(v string) *DefineExpressionInput { 3204 s.DomainName = &v 3205 return s 3206 } 3207 3208 // SetExpression sets the Expression field's value. 3209 func (s *DefineExpressionInput) SetExpression(v *Expression) *DefineExpressionInput { 3210 s.Expression = v 3211 return s 3212 } 3213 3214 // The result of a DefineExpression request. Contains the status of the newly-configured 3215 // expression. 3216 type DefineExpressionOutput struct { 3217 _ struct{} `type:"structure"` 3218 3219 // The value of an Expression and its current status. 3220 // 3221 // Expression is a required field 3222 Expression *ExpressionStatus `type:"structure" required:"true"` 3223 } 3224 3225 // String returns the string representation. 3226 // 3227 // API parameter values that are decorated as "sensitive" in the API will not 3228 // be included in the string output. The member name will be present, but the 3229 // value will be replaced with "sensitive". 3230 func (s DefineExpressionOutput) String() string { 3231 return awsutil.Prettify(s) 3232 } 3233 3234 // GoString returns the string representation. 3235 // 3236 // API parameter values that are decorated as "sensitive" in the API will not 3237 // be included in the string output. The member name will be present, but the 3238 // value will be replaced with "sensitive". 3239 func (s DefineExpressionOutput) GoString() string { 3240 return s.String() 3241 } 3242 3243 // SetExpression sets the Expression field's value. 3244 func (s *DefineExpressionOutput) SetExpression(v *ExpressionStatus) *DefineExpressionOutput { 3245 s.Expression = v 3246 return s 3247 } 3248 3249 // Container for the parameters to the DefineIndexField operation. Specifies 3250 // the name of the domain you want to update and the index field configuration. 3251 type DefineIndexFieldInput struct { 3252 _ struct{} `type:"structure"` 3253 3254 // A string that represents the name of a domain. Domain names are unique across 3255 // the domains owned by an account within an AWS region. Domain names start 3256 // with a letter or number and can contain the following characters: a-z (lowercase), 3257 // 0-9, and - (hyphen). 3258 // 3259 // DomainName is a required field 3260 DomainName *string `min:"3" type:"string" required:"true"` 3261 3262 // The index field and field options you want to configure. 3263 // 3264 // IndexField is a required field 3265 IndexField *IndexField `type:"structure" required:"true"` 3266 } 3267 3268 // String returns the string representation. 3269 // 3270 // API parameter values that are decorated as "sensitive" in the API will not 3271 // be included in the string output. The member name will be present, but the 3272 // value will be replaced with "sensitive". 3273 func (s DefineIndexFieldInput) String() string { 3274 return awsutil.Prettify(s) 3275 } 3276 3277 // GoString returns the string representation. 3278 // 3279 // API parameter values that are decorated as "sensitive" in the API will not 3280 // be included in the string output. The member name will be present, but the 3281 // value will be replaced with "sensitive". 3282 func (s DefineIndexFieldInput) GoString() string { 3283 return s.String() 3284 } 3285 3286 // Validate inspects the fields of the type to determine if they are valid. 3287 func (s *DefineIndexFieldInput) Validate() error { 3288 invalidParams := request.ErrInvalidParams{Context: "DefineIndexFieldInput"} 3289 if s.DomainName == nil { 3290 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3291 } 3292 if s.DomainName != nil && len(*s.DomainName) < 3 { 3293 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3294 } 3295 if s.IndexField == nil { 3296 invalidParams.Add(request.NewErrParamRequired("IndexField")) 3297 } 3298 if s.IndexField != nil { 3299 if err := s.IndexField.Validate(); err != nil { 3300 invalidParams.AddNested("IndexField", err.(request.ErrInvalidParams)) 3301 } 3302 } 3303 3304 if invalidParams.Len() > 0 { 3305 return invalidParams 3306 } 3307 return nil 3308 } 3309 3310 // SetDomainName sets the DomainName field's value. 3311 func (s *DefineIndexFieldInput) SetDomainName(v string) *DefineIndexFieldInput { 3312 s.DomainName = &v 3313 return s 3314 } 3315 3316 // SetIndexField sets the IndexField field's value. 3317 func (s *DefineIndexFieldInput) SetIndexField(v *IndexField) *DefineIndexFieldInput { 3318 s.IndexField = v 3319 return s 3320 } 3321 3322 // The result of a DefineIndexField request. Contains the status of the newly-configured 3323 // index field. 3324 type DefineIndexFieldOutput struct { 3325 _ struct{} `type:"structure"` 3326 3327 // The value of an IndexField and its current status. 3328 // 3329 // IndexField is a required field 3330 IndexField *IndexFieldStatus `type:"structure" required:"true"` 3331 } 3332 3333 // String returns the string representation. 3334 // 3335 // API parameter values that are decorated as "sensitive" in the API will not 3336 // be included in the string output. The member name will be present, but the 3337 // value will be replaced with "sensitive". 3338 func (s DefineIndexFieldOutput) String() string { 3339 return awsutil.Prettify(s) 3340 } 3341 3342 // GoString returns the string representation. 3343 // 3344 // API parameter values that are decorated as "sensitive" in the API will not 3345 // be included in the string output. The member name will be present, but the 3346 // value will be replaced with "sensitive". 3347 func (s DefineIndexFieldOutput) GoString() string { 3348 return s.String() 3349 } 3350 3351 // SetIndexField sets the IndexField field's value. 3352 func (s *DefineIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DefineIndexFieldOutput { 3353 s.IndexField = v 3354 return s 3355 } 3356 3357 // Container for the parameters to the DefineSuggester operation. Specifies 3358 // the name of the domain you want to update and the suggester configuration. 3359 type DefineSuggesterInput struct { 3360 _ struct{} `type:"structure"` 3361 3362 // A string that represents the name of a domain. Domain names are unique across 3363 // the domains owned by an account within an AWS region. Domain names start 3364 // with a letter or number and can contain the following characters: a-z (lowercase), 3365 // 0-9, and - (hyphen). 3366 // 3367 // DomainName is a required field 3368 DomainName *string `min:"3" type:"string" required:"true"` 3369 3370 // Configuration information for a search suggester. Each suggester has a unique 3371 // name and specifies the text field you want to use for suggestions. The following 3372 // options can be configured for a suggester: FuzzyMatching, SortExpression. 3373 // 3374 // Suggester is a required field 3375 Suggester *Suggester `type:"structure" required:"true"` 3376 } 3377 3378 // String returns the string representation. 3379 // 3380 // API parameter values that are decorated as "sensitive" in the API will not 3381 // be included in the string output. The member name will be present, but the 3382 // value will be replaced with "sensitive". 3383 func (s DefineSuggesterInput) String() string { 3384 return awsutil.Prettify(s) 3385 } 3386 3387 // GoString returns the string representation. 3388 // 3389 // API parameter values that are decorated as "sensitive" in the API will not 3390 // be included in the string output. The member name will be present, but the 3391 // value will be replaced with "sensitive". 3392 func (s DefineSuggesterInput) GoString() string { 3393 return s.String() 3394 } 3395 3396 // Validate inspects the fields of the type to determine if they are valid. 3397 func (s *DefineSuggesterInput) Validate() error { 3398 invalidParams := request.ErrInvalidParams{Context: "DefineSuggesterInput"} 3399 if s.DomainName == nil { 3400 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3401 } 3402 if s.DomainName != nil && len(*s.DomainName) < 3 { 3403 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3404 } 3405 if s.Suggester == nil { 3406 invalidParams.Add(request.NewErrParamRequired("Suggester")) 3407 } 3408 if s.Suggester != nil { 3409 if err := s.Suggester.Validate(); err != nil { 3410 invalidParams.AddNested("Suggester", err.(request.ErrInvalidParams)) 3411 } 3412 } 3413 3414 if invalidParams.Len() > 0 { 3415 return invalidParams 3416 } 3417 return nil 3418 } 3419 3420 // SetDomainName sets the DomainName field's value. 3421 func (s *DefineSuggesterInput) SetDomainName(v string) *DefineSuggesterInput { 3422 s.DomainName = &v 3423 return s 3424 } 3425 3426 // SetSuggester sets the Suggester field's value. 3427 func (s *DefineSuggesterInput) SetSuggester(v *Suggester) *DefineSuggesterInput { 3428 s.Suggester = v 3429 return s 3430 } 3431 3432 // The result of a DefineSuggester request. Contains the status of the newly-configured 3433 // suggester. 3434 type DefineSuggesterOutput struct { 3435 _ struct{} `type:"structure"` 3436 3437 // The value of a Suggester and its current status. 3438 // 3439 // Suggester is a required field 3440 Suggester *SuggesterStatus `type:"structure" required:"true"` 3441 } 3442 3443 // String returns the string representation. 3444 // 3445 // API parameter values that are decorated as "sensitive" in the API will not 3446 // be included in the string output. The member name will be present, but the 3447 // value will be replaced with "sensitive". 3448 func (s DefineSuggesterOutput) String() string { 3449 return awsutil.Prettify(s) 3450 } 3451 3452 // GoString returns the string representation. 3453 // 3454 // API parameter values that are decorated as "sensitive" in the API will not 3455 // be included in the string output. The member name will be present, but the 3456 // value will be replaced with "sensitive". 3457 func (s DefineSuggesterOutput) GoString() string { 3458 return s.String() 3459 } 3460 3461 // SetSuggester sets the Suggester field's value. 3462 func (s *DefineSuggesterOutput) SetSuggester(v *SuggesterStatus) *DefineSuggesterOutput { 3463 s.Suggester = v 3464 return s 3465 } 3466 3467 // Container for the parameters to the DeleteAnalysisScheme operation. Specifies 3468 // the name of the domain you want to update and the analysis scheme you want 3469 // to delete. 3470 type DeleteAnalysisSchemeInput struct { 3471 _ struct{} `type:"structure"` 3472 3473 // The name of the analysis scheme you want to delete. 3474 // 3475 // AnalysisSchemeName is a required field 3476 AnalysisSchemeName *string `min:"1" type:"string" required:"true"` 3477 3478 // A string that represents the name of a domain. Domain names are unique across 3479 // the domains owned by an account within an AWS region. Domain names start 3480 // with a letter or number and can contain the following characters: a-z (lowercase), 3481 // 0-9, and - (hyphen). 3482 // 3483 // DomainName is a required field 3484 DomainName *string `min:"3" type:"string" required:"true"` 3485 } 3486 3487 // String returns the string representation. 3488 // 3489 // API parameter values that are decorated as "sensitive" in the API will not 3490 // be included in the string output. The member name will be present, but the 3491 // value will be replaced with "sensitive". 3492 func (s DeleteAnalysisSchemeInput) String() string { 3493 return awsutil.Prettify(s) 3494 } 3495 3496 // GoString returns the string representation. 3497 // 3498 // API parameter values that are decorated as "sensitive" in the API will not 3499 // be included in the string output. The member name will be present, but the 3500 // value will be replaced with "sensitive". 3501 func (s DeleteAnalysisSchemeInput) GoString() string { 3502 return s.String() 3503 } 3504 3505 // Validate inspects the fields of the type to determine if they are valid. 3506 func (s *DeleteAnalysisSchemeInput) Validate() error { 3507 invalidParams := request.ErrInvalidParams{Context: "DeleteAnalysisSchemeInput"} 3508 if s.AnalysisSchemeName == nil { 3509 invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName")) 3510 } 3511 if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 { 3512 invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1)) 3513 } 3514 if s.DomainName == nil { 3515 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3516 } 3517 if s.DomainName != nil && len(*s.DomainName) < 3 { 3518 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3519 } 3520 3521 if invalidParams.Len() > 0 { 3522 return invalidParams 3523 } 3524 return nil 3525 } 3526 3527 // SetAnalysisSchemeName sets the AnalysisSchemeName field's value. 3528 func (s *DeleteAnalysisSchemeInput) SetAnalysisSchemeName(v string) *DeleteAnalysisSchemeInput { 3529 s.AnalysisSchemeName = &v 3530 return s 3531 } 3532 3533 // SetDomainName sets the DomainName field's value. 3534 func (s *DeleteAnalysisSchemeInput) SetDomainName(v string) *DeleteAnalysisSchemeInput { 3535 s.DomainName = &v 3536 return s 3537 } 3538 3539 // The result of a DeleteAnalysisScheme request. Contains the status of the 3540 // deleted analysis scheme. 3541 type DeleteAnalysisSchemeOutput struct { 3542 _ struct{} `type:"structure"` 3543 3544 // The status of the analysis scheme being deleted. 3545 // 3546 // AnalysisScheme is a required field 3547 AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"` 3548 } 3549 3550 // String returns the string representation. 3551 // 3552 // API parameter values that are decorated as "sensitive" in the API will not 3553 // be included in the string output. The member name will be present, but the 3554 // value will be replaced with "sensitive". 3555 func (s DeleteAnalysisSchemeOutput) String() string { 3556 return awsutil.Prettify(s) 3557 } 3558 3559 // GoString returns the string representation. 3560 // 3561 // API parameter values that are decorated as "sensitive" in the API will not 3562 // be included in the string output. The member name will be present, but the 3563 // value will be replaced with "sensitive". 3564 func (s DeleteAnalysisSchemeOutput) GoString() string { 3565 return s.String() 3566 } 3567 3568 // SetAnalysisScheme sets the AnalysisScheme field's value. 3569 func (s *DeleteAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DeleteAnalysisSchemeOutput { 3570 s.AnalysisScheme = v 3571 return s 3572 } 3573 3574 // Container for the parameters to the DeleteDomain operation. Specifies the 3575 // name of the domain you want to delete. 3576 type DeleteDomainInput struct { 3577 _ struct{} `type:"structure"` 3578 3579 // The name of the domain you want to permanently delete. 3580 // 3581 // DomainName is a required field 3582 DomainName *string `min:"3" type:"string" required:"true"` 3583 } 3584 3585 // String returns the string representation. 3586 // 3587 // API parameter values that are decorated as "sensitive" in the API will not 3588 // be included in the string output. The member name will be present, but the 3589 // value will be replaced with "sensitive". 3590 func (s DeleteDomainInput) String() string { 3591 return awsutil.Prettify(s) 3592 } 3593 3594 // GoString returns the string representation. 3595 // 3596 // API parameter values that are decorated as "sensitive" in the API will not 3597 // be included in the string output. The member name will be present, but the 3598 // value will be replaced with "sensitive". 3599 func (s DeleteDomainInput) GoString() string { 3600 return s.String() 3601 } 3602 3603 // Validate inspects the fields of the type to determine if they are valid. 3604 func (s *DeleteDomainInput) Validate() error { 3605 invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"} 3606 if s.DomainName == nil { 3607 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3608 } 3609 if s.DomainName != nil && len(*s.DomainName) < 3 { 3610 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3611 } 3612 3613 if invalidParams.Len() > 0 { 3614 return invalidParams 3615 } 3616 return nil 3617 } 3618 3619 // SetDomainName sets the DomainName field's value. 3620 func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput { 3621 s.DomainName = &v 3622 return s 3623 } 3624 3625 // The result of a DeleteDomain request. Contains the status of a newly deleted 3626 // domain, or no status if the domain has already been completely deleted. 3627 type DeleteDomainOutput struct { 3628 _ struct{} `type:"structure"` 3629 3630 // The current status of the search domain. 3631 DomainStatus *DomainStatus `type:"structure"` 3632 } 3633 3634 // String returns the string representation. 3635 // 3636 // API parameter values that are decorated as "sensitive" in the API will not 3637 // be included in the string output. The member name will be present, but the 3638 // value will be replaced with "sensitive". 3639 func (s DeleteDomainOutput) String() string { 3640 return awsutil.Prettify(s) 3641 } 3642 3643 // GoString returns the string representation. 3644 // 3645 // API parameter values that are decorated as "sensitive" in the API will not 3646 // be included in the string output. The member name will be present, but the 3647 // value will be replaced with "sensitive". 3648 func (s DeleteDomainOutput) GoString() string { 3649 return s.String() 3650 } 3651 3652 // SetDomainStatus sets the DomainStatus field's value. 3653 func (s *DeleteDomainOutput) SetDomainStatus(v *DomainStatus) *DeleteDomainOutput { 3654 s.DomainStatus = v 3655 return s 3656 } 3657 3658 // Container for the parameters to the DeleteExpression operation. Specifies 3659 // the name of the domain you want to update and the name of the expression 3660 // you want to delete. 3661 type DeleteExpressionInput struct { 3662 _ struct{} `type:"structure"` 3663 3664 // A string that represents the name of a domain. Domain names are unique across 3665 // the domains owned by an account within an AWS region. Domain names start 3666 // with a letter or number and can contain the following characters: a-z (lowercase), 3667 // 0-9, and - (hyphen). 3668 // 3669 // DomainName is a required field 3670 DomainName *string `min:"3" type:"string" required:"true"` 3671 3672 // The name of the Expression to delete. 3673 // 3674 // ExpressionName is a required field 3675 ExpressionName *string `min:"1" type:"string" required:"true"` 3676 } 3677 3678 // String returns the string representation. 3679 // 3680 // API parameter values that are decorated as "sensitive" in the API will not 3681 // be included in the string output. The member name will be present, but the 3682 // value will be replaced with "sensitive". 3683 func (s DeleteExpressionInput) String() string { 3684 return awsutil.Prettify(s) 3685 } 3686 3687 // GoString returns the string representation. 3688 // 3689 // API parameter values that are decorated as "sensitive" in the API will not 3690 // be included in the string output. The member name will be present, but the 3691 // value will be replaced with "sensitive". 3692 func (s DeleteExpressionInput) GoString() string { 3693 return s.String() 3694 } 3695 3696 // Validate inspects the fields of the type to determine if they are valid. 3697 func (s *DeleteExpressionInput) Validate() error { 3698 invalidParams := request.ErrInvalidParams{Context: "DeleteExpressionInput"} 3699 if s.DomainName == nil { 3700 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3701 } 3702 if s.DomainName != nil && len(*s.DomainName) < 3 { 3703 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3704 } 3705 if s.ExpressionName == nil { 3706 invalidParams.Add(request.NewErrParamRequired("ExpressionName")) 3707 } 3708 if s.ExpressionName != nil && len(*s.ExpressionName) < 1 { 3709 invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1)) 3710 } 3711 3712 if invalidParams.Len() > 0 { 3713 return invalidParams 3714 } 3715 return nil 3716 } 3717 3718 // SetDomainName sets the DomainName field's value. 3719 func (s *DeleteExpressionInput) SetDomainName(v string) *DeleteExpressionInput { 3720 s.DomainName = &v 3721 return s 3722 } 3723 3724 // SetExpressionName sets the ExpressionName field's value. 3725 func (s *DeleteExpressionInput) SetExpressionName(v string) *DeleteExpressionInput { 3726 s.ExpressionName = &v 3727 return s 3728 } 3729 3730 // The result of a DeleteExpression request. Specifies the expression being 3731 // deleted. 3732 type DeleteExpressionOutput struct { 3733 _ struct{} `type:"structure"` 3734 3735 // The status of the expression being deleted. 3736 // 3737 // Expression is a required field 3738 Expression *ExpressionStatus `type:"structure" required:"true"` 3739 } 3740 3741 // String returns the string representation. 3742 // 3743 // API parameter values that are decorated as "sensitive" in the API will not 3744 // be included in the string output. The member name will be present, but the 3745 // value will be replaced with "sensitive". 3746 func (s DeleteExpressionOutput) String() string { 3747 return awsutil.Prettify(s) 3748 } 3749 3750 // GoString returns the string representation. 3751 // 3752 // API parameter values that are decorated as "sensitive" in the API will not 3753 // be included in the string output. The member name will be present, but the 3754 // value will be replaced with "sensitive". 3755 func (s DeleteExpressionOutput) GoString() string { 3756 return s.String() 3757 } 3758 3759 // SetExpression sets the Expression field's value. 3760 func (s *DeleteExpressionOutput) SetExpression(v *ExpressionStatus) *DeleteExpressionOutput { 3761 s.Expression = v 3762 return s 3763 } 3764 3765 // Container for the parameters to the DeleteIndexField operation. Specifies 3766 // the name of the domain you want to update and the name of the index field 3767 // you want to delete. 3768 type DeleteIndexFieldInput struct { 3769 _ struct{} `type:"structure"` 3770 3771 // A string that represents the name of a domain. Domain names are unique across 3772 // the domains owned by an account within an AWS region. Domain names start 3773 // with a letter or number and can contain the following characters: a-z (lowercase), 3774 // 0-9, and - (hyphen). 3775 // 3776 // DomainName is a required field 3777 DomainName *string `min:"3" type:"string" required:"true"` 3778 3779 // The name of the index field your want to remove from the domain's indexing 3780 // options. 3781 // 3782 // IndexFieldName is a required field 3783 IndexFieldName *string `min:"1" type:"string" required:"true"` 3784 } 3785 3786 // String returns the string representation. 3787 // 3788 // API parameter values that are decorated as "sensitive" in the API will not 3789 // be included in the string output. The member name will be present, but the 3790 // value will be replaced with "sensitive". 3791 func (s DeleteIndexFieldInput) String() string { 3792 return awsutil.Prettify(s) 3793 } 3794 3795 // GoString returns the string representation. 3796 // 3797 // API parameter values that are decorated as "sensitive" in the API will not 3798 // be included in the string output. The member name will be present, but the 3799 // value will be replaced with "sensitive". 3800 func (s DeleteIndexFieldInput) GoString() string { 3801 return s.String() 3802 } 3803 3804 // Validate inspects the fields of the type to determine if they are valid. 3805 func (s *DeleteIndexFieldInput) Validate() error { 3806 invalidParams := request.ErrInvalidParams{Context: "DeleteIndexFieldInput"} 3807 if s.DomainName == nil { 3808 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3809 } 3810 if s.DomainName != nil && len(*s.DomainName) < 3 { 3811 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3812 } 3813 if s.IndexFieldName == nil { 3814 invalidParams.Add(request.NewErrParamRequired("IndexFieldName")) 3815 } 3816 if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 { 3817 invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1)) 3818 } 3819 3820 if invalidParams.Len() > 0 { 3821 return invalidParams 3822 } 3823 return nil 3824 } 3825 3826 // SetDomainName sets the DomainName field's value. 3827 func (s *DeleteIndexFieldInput) SetDomainName(v string) *DeleteIndexFieldInput { 3828 s.DomainName = &v 3829 return s 3830 } 3831 3832 // SetIndexFieldName sets the IndexFieldName field's value. 3833 func (s *DeleteIndexFieldInput) SetIndexFieldName(v string) *DeleteIndexFieldInput { 3834 s.IndexFieldName = &v 3835 return s 3836 } 3837 3838 // The result of a DeleteIndexField request. 3839 type DeleteIndexFieldOutput struct { 3840 _ struct{} `type:"structure"` 3841 3842 // The status of the index field being deleted. 3843 // 3844 // IndexField is a required field 3845 IndexField *IndexFieldStatus `type:"structure" required:"true"` 3846 } 3847 3848 // String returns the string representation. 3849 // 3850 // API parameter values that are decorated as "sensitive" in the API will not 3851 // be included in the string output. The member name will be present, but the 3852 // value will be replaced with "sensitive". 3853 func (s DeleteIndexFieldOutput) String() string { 3854 return awsutil.Prettify(s) 3855 } 3856 3857 // GoString returns the string representation. 3858 // 3859 // API parameter values that are decorated as "sensitive" in the API will not 3860 // be included in the string output. The member name will be present, but the 3861 // value will be replaced with "sensitive". 3862 func (s DeleteIndexFieldOutput) GoString() string { 3863 return s.String() 3864 } 3865 3866 // SetIndexField sets the IndexField field's value. 3867 func (s *DeleteIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DeleteIndexFieldOutput { 3868 s.IndexField = v 3869 return s 3870 } 3871 3872 // Container for the parameters to the DeleteSuggester operation. Specifies 3873 // the name of the domain you want to update and name of the suggester you want 3874 // to delete. 3875 type DeleteSuggesterInput struct { 3876 _ struct{} `type:"structure"` 3877 3878 // A string that represents the name of a domain. Domain names are unique across 3879 // the domains owned by an account within an AWS region. Domain names start 3880 // with a letter or number and can contain the following characters: a-z (lowercase), 3881 // 0-9, and - (hyphen). 3882 // 3883 // DomainName is a required field 3884 DomainName *string `min:"3" type:"string" required:"true"` 3885 3886 // Specifies the name of the suggester you want to delete. 3887 // 3888 // SuggesterName is a required field 3889 SuggesterName *string `min:"1" type:"string" required:"true"` 3890 } 3891 3892 // String returns the string representation. 3893 // 3894 // API parameter values that are decorated as "sensitive" in the API will not 3895 // be included in the string output. The member name will be present, but the 3896 // value will be replaced with "sensitive". 3897 func (s DeleteSuggesterInput) String() string { 3898 return awsutil.Prettify(s) 3899 } 3900 3901 // GoString returns the string representation. 3902 // 3903 // API parameter values that are decorated as "sensitive" in the API will not 3904 // be included in the string output. The member name will be present, but the 3905 // value will be replaced with "sensitive". 3906 func (s DeleteSuggesterInput) GoString() string { 3907 return s.String() 3908 } 3909 3910 // Validate inspects the fields of the type to determine if they are valid. 3911 func (s *DeleteSuggesterInput) Validate() error { 3912 invalidParams := request.ErrInvalidParams{Context: "DeleteSuggesterInput"} 3913 if s.DomainName == nil { 3914 invalidParams.Add(request.NewErrParamRequired("DomainName")) 3915 } 3916 if s.DomainName != nil && len(*s.DomainName) < 3 { 3917 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 3918 } 3919 if s.SuggesterName == nil { 3920 invalidParams.Add(request.NewErrParamRequired("SuggesterName")) 3921 } 3922 if s.SuggesterName != nil && len(*s.SuggesterName) < 1 { 3923 invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1)) 3924 } 3925 3926 if invalidParams.Len() > 0 { 3927 return invalidParams 3928 } 3929 return nil 3930 } 3931 3932 // SetDomainName sets the DomainName field's value. 3933 func (s *DeleteSuggesterInput) SetDomainName(v string) *DeleteSuggesterInput { 3934 s.DomainName = &v 3935 return s 3936 } 3937 3938 // SetSuggesterName sets the SuggesterName field's value. 3939 func (s *DeleteSuggesterInput) SetSuggesterName(v string) *DeleteSuggesterInput { 3940 s.SuggesterName = &v 3941 return s 3942 } 3943 3944 // The result of a DeleteSuggester request. Contains the status of the deleted 3945 // suggester. 3946 type DeleteSuggesterOutput struct { 3947 _ struct{} `type:"structure"` 3948 3949 // The status of the suggester being deleted. 3950 // 3951 // Suggester is a required field 3952 Suggester *SuggesterStatus `type:"structure" required:"true"` 3953 } 3954 3955 // String returns the string representation. 3956 // 3957 // API parameter values that are decorated as "sensitive" in the API will not 3958 // be included in the string output. The member name will be present, but the 3959 // value will be replaced with "sensitive". 3960 func (s DeleteSuggesterOutput) String() string { 3961 return awsutil.Prettify(s) 3962 } 3963 3964 // GoString returns the string representation. 3965 // 3966 // API parameter values that are decorated as "sensitive" in the API will not 3967 // be included in the string output. The member name will be present, but the 3968 // value will be replaced with "sensitive". 3969 func (s DeleteSuggesterOutput) GoString() string { 3970 return s.String() 3971 } 3972 3973 // SetSuggester sets the Suggester field's value. 3974 func (s *DeleteSuggesterOutput) SetSuggester(v *SuggesterStatus) *DeleteSuggesterOutput { 3975 s.Suggester = v 3976 return s 3977 } 3978 3979 // Container for the parameters to the DescribeAnalysisSchemes operation. Specifies 3980 // the name of the domain you want to describe. To limit the response to particular 3981 // analysis schemes, specify the names of the analysis schemes you want to describe. 3982 // To show the active configuration and exclude any pending changes, set the 3983 // Deployed option to true. 3984 type DescribeAnalysisSchemesInput struct { 3985 _ struct{} `type:"structure"` 3986 3987 // The analysis schemes you want to describe. 3988 AnalysisSchemeNames []*string `type:"list"` 3989 3990 // Whether to display the deployed configuration (true) or include any pending 3991 // changes (false). Defaults to false. 3992 Deployed *bool `type:"boolean"` 3993 3994 // The name of the domain you want to describe. 3995 // 3996 // DomainName is a required field 3997 DomainName *string `min:"3" type:"string" required:"true"` 3998 } 3999 4000 // String returns the string representation. 4001 // 4002 // API parameter values that are decorated as "sensitive" in the API will not 4003 // be included in the string output. The member name will be present, but the 4004 // value will be replaced with "sensitive". 4005 func (s DescribeAnalysisSchemesInput) String() string { 4006 return awsutil.Prettify(s) 4007 } 4008 4009 // GoString returns the string representation. 4010 // 4011 // API parameter values that are decorated as "sensitive" in the API will not 4012 // be included in the string output. The member name will be present, but the 4013 // value will be replaced with "sensitive". 4014 func (s DescribeAnalysisSchemesInput) GoString() string { 4015 return s.String() 4016 } 4017 4018 // Validate inspects the fields of the type to determine if they are valid. 4019 func (s *DescribeAnalysisSchemesInput) Validate() error { 4020 invalidParams := request.ErrInvalidParams{Context: "DescribeAnalysisSchemesInput"} 4021 if s.DomainName == nil { 4022 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4023 } 4024 if s.DomainName != nil && len(*s.DomainName) < 3 { 4025 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4026 } 4027 4028 if invalidParams.Len() > 0 { 4029 return invalidParams 4030 } 4031 return nil 4032 } 4033 4034 // SetAnalysisSchemeNames sets the AnalysisSchemeNames field's value. 4035 func (s *DescribeAnalysisSchemesInput) SetAnalysisSchemeNames(v []*string) *DescribeAnalysisSchemesInput { 4036 s.AnalysisSchemeNames = v 4037 return s 4038 } 4039 4040 // SetDeployed sets the Deployed field's value. 4041 func (s *DescribeAnalysisSchemesInput) SetDeployed(v bool) *DescribeAnalysisSchemesInput { 4042 s.Deployed = &v 4043 return s 4044 } 4045 4046 // SetDomainName sets the DomainName field's value. 4047 func (s *DescribeAnalysisSchemesInput) SetDomainName(v string) *DescribeAnalysisSchemesInput { 4048 s.DomainName = &v 4049 return s 4050 } 4051 4052 // The result of a DescribeAnalysisSchemes request. Contains the analysis schemes 4053 // configured for the domain specified in the request. 4054 type DescribeAnalysisSchemesOutput struct { 4055 _ struct{} `type:"structure"` 4056 4057 // The analysis scheme descriptions. 4058 // 4059 // AnalysisSchemes is a required field 4060 AnalysisSchemes []*AnalysisSchemeStatus `type:"list" required:"true"` 4061 } 4062 4063 // String returns the string representation. 4064 // 4065 // API parameter values that are decorated as "sensitive" in the API will not 4066 // be included in the string output. The member name will be present, but the 4067 // value will be replaced with "sensitive". 4068 func (s DescribeAnalysisSchemesOutput) String() string { 4069 return awsutil.Prettify(s) 4070 } 4071 4072 // GoString returns the string representation. 4073 // 4074 // API parameter values that are decorated as "sensitive" in the API will not 4075 // be included in the string output. The member name will be present, but the 4076 // value will be replaced with "sensitive". 4077 func (s DescribeAnalysisSchemesOutput) GoString() string { 4078 return s.String() 4079 } 4080 4081 // SetAnalysisSchemes sets the AnalysisSchemes field's value. 4082 func (s *DescribeAnalysisSchemesOutput) SetAnalysisSchemes(v []*AnalysisSchemeStatus) *DescribeAnalysisSchemesOutput { 4083 s.AnalysisSchemes = v 4084 return s 4085 } 4086 4087 // Container for the parameters to the DescribeAvailabilityOptions operation. 4088 // Specifies the name of the domain you want to describe. To show the active 4089 // configuration and exclude any pending changes, set the Deployed option to 4090 // true. 4091 type DescribeAvailabilityOptionsInput struct { 4092 _ struct{} `type:"structure"` 4093 4094 // Whether to display the deployed configuration (true) or include any pending 4095 // changes (false). Defaults to false. 4096 Deployed *bool `type:"boolean"` 4097 4098 // The name of the domain you want to describe. 4099 // 4100 // DomainName is a required field 4101 DomainName *string `min:"3" type:"string" required:"true"` 4102 } 4103 4104 // String returns the string representation. 4105 // 4106 // API parameter values that are decorated as "sensitive" in the API will not 4107 // be included in the string output. The member name will be present, but the 4108 // value will be replaced with "sensitive". 4109 func (s DescribeAvailabilityOptionsInput) String() string { 4110 return awsutil.Prettify(s) 4111 } 4112 4113 // GoString returns the string representation. 4114 // 4115 // API parameter values that are decorated as "sensitive" in the API will not 4116 // be included in the string output. The member name will be present, but the 4117 // value will be replaced with "sensitive". 4118 func (s DescribeAvailabilityOptionsInput) GoString() string { 4119 return s.String() 4120 } 4121 4122 // Validate inspects the fields of the type to determine if they are valid. 4123 func (s *DescribeAvailabilityOptionsInput) Validate() error { 4124 invalidParams := request.ErrInvalidParams{Context: "DescribeAvailabilityOptionsInput"} 4125 if s.DomainName == nil { 4126 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4127 } 4128 if s.DomainName != nil && len(*s.DomainName) < 3 { 4129 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4130 } 4131 4132 if invalidParams.Len() > 0 { 4133 return invalidParams 4134 } 4135 return nil 4136 } 4137 4138 // SetDeployed sets the Deployed field's value. 4139 func (s *DescribeAvailabilityOptionsInput) SetDeployed(v bool) *DescribeAvailabilityOptionsInput { 4140 s.Deployed = &v 4141 return s 4142 } 4143 4144 // SetDomainName sets the DomainName field's value. 4145 func (s *DescribeAvailabilityOptionsInput) SetDomainName(v string) *DescribeAvailabilityOptionsInput { 4146 s.DomainName = &v 4147 return s 4148 } 4149 4150 // The result of a DescribeAvailabilityOptions request. Indicates whether or 4151 // not the Multi-AZ option is enabled for the domain specified in the request. 4152 type DescribeAvailabilityOptionsOutput struct { 4153 _ struct{} `type:"structure"` 4154 4155 // The availability options configured for the domain. Indicates whether Multi-AZ 4156 // is enabled for the domain. 4157 AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"` 4158 } 4159 4160 // String returns the string representation. 4161 // 4162 // API parameter values that are decorated as "sensitive" in the API will not 4163 // be included in the string output. The member name will be present, but the 4164 // value will be replaced with "sensitive". 4165 func (s DescribeAvailabilityOptionsOutput) String() string { 4166 return awsutil.Prettify(s) 4167 } 4168 4169 // GoString returns the string representation. 4170 // 4171 // API parameter values that are decorated as "sensitive" in the API will not 4172 // be included in the string output. The member name will be present, but the 4173 // value will be replaced with "sensitive". 4174 func (s DescribeAvailabilityOptionsOutput) GoString() string { 4175 return s.String() 4176 } 4177 4178 // SetAvailabilityOptions sets the AvailabilityOptions field's value. 4179 func (s *DescribeAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *DescribeAvailabilityOptionsOutput { 4180 s.AvailabilityOptions = v 4181 return s 4182 } 4183 4184 // Container for the parameters to the DescribeDomainEndpointOptions operation. 4185 // Specify the name of the domain you want to describe. To show the active configuration 4186 // and exclude any pending changes, set the Deployed option to true. 4187 type DescribeDomainEndpointOptionsInput struct { 4188 _ struct{} `type:"structure"` 4189 4190 // Whether to retrieve the latest configuration (which might be in a Processing 4191 // state) or the current, active configuration. Defaults to false. 4192 Deployed *bool `type:"boolean"` 4193 4194 // A string that represents the name of a domain. 4195 // 4196 // DomainName is a required field 4197 DomainName *string `min:"3" type:"string" required:"true"` 4198 } 4199 4200 // String returns the string representation. 4201 // 4202 // API parameter values that are decorated as "sensitive" in the API will not 4203 // be included in the string output. The member name will be present, but the 4204 // value will be replaced with "sensitive". 4205 func (s DescribeDomainEndpointOptionsInput) String() string { 4206 return awsutil.Prettify(s) 4207 } 4208 4209 // GoString returns the string representation. 4210 // 4211 // API parameter values that are decorated as "sensitive" in the API will not 4212 // be included in the string output. The member name will be present, but the 4213 // value will be replaced with "sensitive". 4214 func (s DescribeDomainEndpointOptionsInput) GoString() string { 4215 return s.String() 4216 } 4217 4218 // Validate inspects the fields of the type to determine if they are valid. 4219 func (s *DescribeDomainEndpointOptionsInput) Validate() error { 4220 invalidParams := request.ErrInvalidParams{Context: "DescribeDomainEndpointOptionsInput"} 4221 if s.DomainName == nil { 4222 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4223 } 4224 if s.DomainName != nil && len(*s.DomainName) < 3 { 4225 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4226 } 4227 4228 if invalidParams.Len() > 0 { 4229 return invalidParams 4230 } 4231 return nil 4232 } 4233 4234 // SetDeployed sets the Deployed field's value. 4235 func (s *DescribeDomainEndpointOptionsInput) SetDeployed(v bool) *DescribeDomainEndpointOptionsInput { 4236 s.Deployed = &v 4237 return s 4238 } 4239 4240 // SetDomainName sets the DomainName field's value. 4241 func (s *DescribeDomainEndpointOptionsInput) SetDomainName(v string) *DescribeDomainEndpointOptionsInput { 4242 s.DomainName = &v 4243 return s 4244 } 4245 4246 // The result of a DescribeDomainEndpointOptions request. Contains the status 4247 // and configuration of a search domain's endpoint options. 4248 type DescribeDomainEndpointOptionsOutput struct { 4249 _ struct{} `type:"structure"` 4250 4251 // The status and configuration of a search domain's endpoint options. 4252 DomainEndpointOptions *DomainEndpointOptionsStatus `type:"structure"` 4253 } 4254 4255 // String returns the string representation. 4256 // 4257 // API parameter values that are decorated as "sensitive" in the API will not 4258 // be included in the string output. The member name will be present, but the 4259 // value will be replaced with "sensitive". 4260 func (s DescribeDomainEndpointOptionsOutput) String() string { 4261 return awsutil.Prettify(s) 4262 } 4263 4264 // GoString returns the string representation. 4265 // 4266 // API parameter values that are decorated as "sensitive" in the API will not 4267 // be included in the string output. The member name will be present, but the 4268 // value will be replaced with "sensitive". 4269 func (s DescribeDomainEndpointOptionsOutput) GoString() string { 4270 return s.String() 4271 } 4272 4273 // SetDomainEndpointOptions sets the DomainEndpointOptions field's value. 4274 func (s *DescribeDomainEndpointOptionsOutput) SetDomainEndpointOptions(v *DomainEndpointOptionsStatus) *DescribeDomainEndpointOptionsOutput { 4275 s.DomainEndpointOptions = v 4276 return s 4277 } 4278 4279 // Container for the parameters to the DescribeDomains operation. By default 4280 // shows the status of all domains. To restrict the response to particular domains, 4281 // specify the names of the domains you want to describe. 4282 type DescribeDomainsInput struct { 4283 _ struct{} `type:"structure"` 4284 4285 // The names of the domains you want to include in the response. 4286 DomainNames []*string `type:"list"` 4287 } 4288 4289 // String returns the string representation. 4290 // 4291 // API parameter values that are decorated as "sensitive" in the API will not 4292 // be included in the string output. The member name will be present, but the 4293 // value will be replaced with "sensitive". 4294 func (s DescribeDomainsInput) String() string { 4295 return awsutil.Prettify(s) 4296 } 4297 4298 // GoString returns the string representation. 4299 // 4300 // API parameter values that are decorated as "sensitive" in the API will not 4301 // be included in the string output. The member name will be present, but the 4302 // value will be replaced with "sensitive". 4303 func (s DescribeDomainsInput) GoString() string { 4304 return s.String() 4305 } 4306 4307 // SetDomainNames sets the DomainNames field's value. 4308 func (s *DescribeDomainsInput) SetDomainNames(v []*string) *DescribeDomainsInput { 4309 s.DomainNames = v 4310 return s 4311 } 4312 4313 // The result of a DescribeDomains request. Contains the status of the domains 4314 // specified in the request or all domains owned by the account. 4315 type DescribeDomainsOutput struct { 4316 _ struct{} `type:"structure"` 4317 4318 // A list that contains the status of each requested domain. 4319 // 4320 // DomainStatusList is a required field 4321 DomainStatusList []*DomainStatus `type:"list" required:"true"` 4322 } 4323 4324 // String returns the string representation. 4325 // 4326 // API parameter values that are decorated as "sensitive" in the API will not 4327 // be included in the string output. The member name will be present, but the 4328 // value will be replaced with "sensitive". 4329 func (s DescribeDomainsOutput) String() string { 4330 return awsutil.Prettify(s) 4331 } 4332 4333 // GoString returns the string representation. 4334 // 4335 // API parameter values that are decorated as "sensitive" in the API will not 4336 // be included in the string output. The member name will be present, but the 4337 // value will be replaced with "sensitive". 4338 func (s DescribeDomainsOutput) GoString() string { 4339 return s.String() 4340 } 4341 4342 // SetDomainStatusList sets the DomainStatusList field's value. 4343 func (s *DescribeDomainsOutput) SetDomainStatusList(v []*DomainStatus) *DescribeDomainsOutput { 4344 s.DomainStatusList = v 4345 return s 4346 } 4347 4348 // Container for the parameters to the DescribeDomains operation. Specifies 4349 // the name of the domain you want to describe. To restrict the response to 4350 // particular expressions, specify the names of the expressions you want to 4351 // describe. To show the active configuration and exclude any pending changes, 4352 // set the Deployed option to true. 4353 type DescribeExpressionsInput struct { 4354 _ struct{} `type:"structure"` 4355 4356 // Whether to display the deployed configuration (true) or include any pending 4357 // changes (false). Defaults to false. 4358 Deployed *bool `type:"boolean"` 4359 4360 // The name of the domain you want to describe. 4361 // 4362 // DomainName is a required field 4363 DomainName *string `min:"3" type:"string" required:"true"` 4364 4365 // Limits the DescribeExpressions response to the specified expressions. If 4366 // not specified, all expressions are shown. 4367 ExpressionNames []*string `type:"list"` 4368 } 4369 4370 // String returns the string representation. 4371 // 4372 // API parameter values that are decorated as "sensitive" in the API will not 4373 // be included in the string output. The member name will be present, but the 4374 // value will be replaced with "sensitive". 4375 func (s DescribeExpressionsInput) String() string { 4376 return awsutil.Prettify(s) 4377 } 4378 4379 // GoString returns the string representation. 4380 // 4381 // API parameter values that are decorated as "sensitive" in the API will not 4382 // be included in the string output. The member name will be present, but the 4383 // value will be replaced with "sensitive". 4384 func (s DescribeExpressionsInput) GoString() string { 4385 return s.String() 4386 } 4387 4388 // Validate inspects the fields of the type to determine if they are valid. 4389 func (s *DescribeExpressionsInput) Validate() error { 4390 invalidParams := request.ErrInvalidParams{Context: "DescribeExpressionsInput"} 4391 if s.DomainName == nil { 4392 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4393 } 4394 if s.DomainName != nil && len(*s.DomainName) < 3 { 4395 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4396 } 4397 4398 if invalidParams.Len() > 0 { 4399 return invalidParams 4400 } 4401 return nil 4402 } 4403 4404 // SetDeployed sets the Deployed field's value. 4405 func (s *DescribeExpressionsInput) SetDeployed(v bool) *DescribeExpressionsInput { 4406 s.Deployed = &v 4407 return s 4408 } 4409 4410 // SetDomainName sets the DomainName field's value. 4411 func (s *DescribeExpressionsInput) SetDomainName(v string) *DescribeExpressionsInput { 4412 s.DomainName = &v 4413 return s 4414 } 4415 4416 // SetExpressionNames sets the ExpressionNames field's value. 4417 func (s *DescribeExpressionsInput) SetExpressionNames(v []*string) *DescribeExpressionsInput { 4418 s.ExpressionNames = v 4419 return s 4420 } 4421 4422 // The result of a DescribeExpressions request. Contains the expressions configured 4423 // for the domain specified in the request. 4424 type DescribeExpressionsOutput struct { 4425 _ struct{} `type:"structure"` 4426 4427 // The expressions configured for the domain. 4428 // 4429 // Expressions is a required field 4430 Expressions []*ExpressionStatus `type:"list" required:"true"` 4431 } 4432 4433 // String returns the string representation. 4434 // 4435 // API parameter values that are decorated as "sensitive" in the API will not 4436 // be included in the string output. The member name will be present, but the 4437 // value will be replaced with "sensitive". 4438 func (s DescribeExpressionsOutput) String() string { 4439 return awsutil.Prettify(s) 4440 } 4441 4442 // GoString returns the string representation. 4443 // 4444 // API parameter values that are decorated as "sensitive" in the API will not 4445 // be included in the string output. The member name will be present, but the 4446 // value will be replaced with "sensitive". 4447 func (s DescribeExpressionsOutput) GoString() string { 4448 return s.String() 4449 } 4450 4451 // SetExpressions sets the Expressions field's value. 4452 func (s *DescribeExpressionsOutput) SetExpressions(v []*ExpressionStatus) *DescribeExpressionsOutput { 4453 s.Expressions = v 4454 return s 4455 } 4456 4457 // Container for the parameters to the DescribeIndexFields operation. Specifies 4458 // the name of the domain you want to describe. To restrict the response to 4459 // particular index fields, specify the names of the index fields you want to 4460 // describe. To show the active configuration and exclude any pending changes, 4461 // set the Deployed option to true. 4462 type DescribeIndexFieldsInput struct { 4463 _ struct{} `type:"structure"` 4464 4465 // Whether to display the deployed configuration (true) or include any pending 4466 // changes (false). Defaults to false. 4467 Deployed *bool `type:"boolean"` 4468 4469 // The name of the domain you want to describe. 4470 // 4471 // DomainName is a required field 4472 DomainName *string `min:"3" type:"string" required:"true"` 4473 4474 // A list of the index fields you want to describe. If not specified, information 4475 // is returned for all configured index fields. 4476 FieldNames []*string `type:"list"` 4477 } 4478 4479 // String returns the string representation. 4480 // 4481 // API parameter values that are decorated as "sensitive" in the API will not 4482 // be included in the string output. The member name will be present, but the 4483 // value will be replaced with "sensitive". 4484 func (s DescribeIndexFieldsInput) String() string { 4485 return awsutil.Prettify(s) 4486 } 4487 4488 // GoString returns the string representation. 4489 // 4490 // API parameter values that are decorated as "sensitive" in the API will not 4491 // be included in the string output. The member name will be present, but the 4492 // value will be replaced with "sensitive". 4493 func (s DescribeIndexFieldsInput) GoString() string { 4494 return s.String() 4495 } 4496 4497 // Validate inspects the fields of the type to determine if they are valid. 4498 func (s *DescribeIndexFieldsInput) Validate() error { 4499 invalidParams := request.ErrInvalidParams{Context: "DescribeIndexFieldsInput"} 4500 if s.DomainName == nil { 4501 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4502 } 4503 if s.DomainName != nil && len(*s.DomainName) < 3 { 4504 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4505 } 4506 4507 if invalidParams.Len() > 0 { 4508 return invalidParams 4509 } 4510 return nil 4511 } 4512 4513 // SetDeployed sets the Deployed field's value. 4514 func (s *DescribeIndexFieldsInput) SetDeployed(v bool) *DescribeIndexFieldsInput { 4515 s.Deployed = &v 4516 return s 4517 } 4518 4519 // SetDomainName sets the DomainName field's value. 4520 func (s *DescribeIndexFieldsInput) SetDomainName(v string) *DescribeIndexFieldsInput { 4521 s.DomainName = &v 4522 return s 4523 } 4524 4525 // SetFieldNames sets the FieldNames field's value. 4526 func (s *DescribeIndexFieldsInput) SetFieldNames(v []*string) *DescribeIndexFieldsInput { 4527 s.FieldNames = v 4528 return s 4529 } 4530 4531 // The result of a DescribeIndexFields request. Contains the index fields configured 4532 // for the domain specified in the request. 4533 type DescribeIndexFieldsOutput struct { 4534 _ struct{} `type:"structure"` 4535 4536 // The index fields configured for the domain. 4537 // 4538 // IndexFields is a required field 4539 IndexFields []*IndexFieldStatus `type:"list" required:"true"` 4540 } 4541 4542 // String returns the string representation. 4543 // 4544 // API parameter values that are decorated as "sensitive" in the API will not 4545 // be included in the string output. The member name will be present, but the 4546 // value will be replaced with "sensitive". 4547 func (s DescribeIndexFieldsOutput) String() string { 4548 return awsutil.Prettify(s) 4549 } 4550 4551 // GoString returns the string representation. 4552 // 4553 // API parameter values that are decorated as "sensitive" in the API will not 4554 // be included in the string output. The member name will be present, but the 4555 // value will be replaced with "sensitive". 4556 func (s DescribeIndexFieldsOutput) GoString() string { 4557 return s.String() 4558 } 4559 4560 // SetIndexFields sets the IndexFields field's value. 4561 func (s *DescribeIndexFieldsOutput) SetIndexFields(v []*IndexFieldStatus) *DescribeIndexFieldsOutput { 4562 s.IndexFields = v 4563 return s 4564 } 4565 4566 // Container for the parameters to the DescribeScalingParameters operation. 4567 // Specifies the name of the domain you want to describe. 4568 type DescribeScalingParametersInput struct { 4569 _ struct{} `type:"structure"` 4570 4571 // A string that represents the name of a domain. Domain names are unique across 4572 // the domains owned by an account within an AWS region. Domain names start 4573 // with a letter or number and can contain the following characters: a-z (lowercase), 4574 // 0-9, and - (hyphen). 4575 // 4576 // DomainName is a required field 4577 DomainName *string `min:"3" type:"string" required:"true"` 4578 } 4579 4580 // String returns the string representation. 4581 // 4582 // API parameter values that are decorated as "sensitive" in the API will not 4583 // be included in the string output. The member name will be present, but the 4584 // value will be replaced with "sensitive". 4585 func (s DescribeScalingParametersInput) String() string { 4586 return awsutil.Prettify(s) 4587 } 4588 4589 // GoString returns the string representation. 4590 // 4591 // API parameter values that are decorated as "sensitive" in the API will not 4592 // be included in the string output. The member name will be present, but the 4593 // value will be replaced with "sensitive". 4594 func (s DescribeScalingParametersInput) GoString() string { 4595 return s.String() 4596 } 4597 4598 // Validate inspects the fields of the type to determine if they are valid. 4599 func (s *DescribeScalingParametersInput) Validate() error { 4600 invalidParams := request.ErrInvalidParams{Context: "DescribeScalingParametersInput"} 4601 if s.DomainName == nil { 4602 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4603 } 4604 if s.DomainName != nil && len(*s.DomainName) < 3 { 4605 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4606 } 4607 4608 if invalidParams.Len() > 0 { 4609 return invalidParams 4610 } 4611 return nil 4612 } 4613 4614 // SetDomainName sets the DomainName field's value. 4615 func (s *DescribeScalingParametersInput) SetDomainName(v string) *DescribeScalingParametersInput { 4616 s.DomainName = &v 4617 return s 4618 } 4619 4620 // The result of a DescribeScalingParameters request. Contains the scaling parameters 4621 // configured for the domain specified in the request. 4622 type DescribeScalingParametersOutput struct { 4623 _ struct{} `type:"structure"` 4624 4625 // The status and configuration of a search domain's scaling parameters. 4626 // 4627 // ScalingParameters is a required field 4628 ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"` 4629 } 4630 4631 // String returns the string representation. 4632 // 4633 // API parameter values that are decorated as "sensitive" in the API will not 4634 // be included in the string output. The member name will be present, but the 4635 // value will be replaced with "sensitive". 4636 func (s DescribeScalingParametersOutput) String() string { 4637 return awsutil.Prettify(s) 4638 } 4639 4640 // GoString returns the string representation. 4641 // 4642 // API parameter values that are decorated as "sensitive" in the API will not 4643 // be included in the string output. The member name will be present, but the 4644 // value will be replaced with "sensitive". 4645 func (s DescribeScalingParametersOutput) GoString() string { 4646 return s.String() 4647 } 4648 4649 // SetScalingParameters sets the ScalingParameters field's value. 4650 func (s *DescribeScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *DescribeScalingParametersOutput { 4651 s.ScalingParameters = v 4652 return s 4653 } 4654 4655 // Container for the parameters to the DescribeServiceAccessPolicies operation. 4656 // Specifies the name of the domain you want to describe. To show the active 4657 // configuration and exclude any pending changes, set the Deployed option to 4658 // true. 4659 type DescribeServiceAccessPoliciesInput struct { 4660 _ struct{} `type:"structure"` 4661 4662 // Whether to display the deployed configuration (true) or include any pending 4663 // changes (false). Defaults to false. 4664 Deployed *bool `type:"boolean"` 4665 4666 // The name of the domain you want to describe. 4667 // 4668 // DomainName is a required field 4669 DomainName *string `min:"3" type:"string" required:"true"` 4670 } 4671 4672 // String returns the string representation. 4673 // 4674 // API parameter values that are decorated as "sensitive" in the API will not 4675 // be included in the string output. The member name will be present, but the 4676 // value will be replaced with "sensitive". 4677 func (s DescribeServiceAccessPoliciesInput) String() string { 4678 return awsutil.Prettify(s) 4679 } 4680 4681 // GoString returns the string representation. 4682 // 4683 // API parameter values that are decorated as "sensitive" in the API will not 4684 // be included in the string output. The member name will be present, but the 4685 // value will be replaced with "sensitive". 4686 func (s DescribeServiceAccessPoliciesInput) GoString() string { 4687 return s.String() 4688 } 4689 4690 // Validate inspects the fields of the type to determine if they are valid. 4691 func (s *DescribeServiceAccessPoliciesInput) Validate() error { 4692 invalidParams := request.ErrInvalidParams{Context: "DescribeServiceAccessPoliciesInput"} 4693 if s.DomainName == nil { 4694 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4695 } 4696 if s.DomainName != nil && len(*s.DomainName) < 3 { 4697 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4698 } 4699 4700 if invalidParams.Len() > 0 { 4701 return invalidParams 4702 } 4703 return nil 4704 } 4705 4706 // SetDeployed sets the Deployed field's value. 4707 func (s *DescribeServiceAccessPoliciesInput) SetDeployed(v bool) *DescribeServiceAccessPoliciesInput { 4708 s.Deployed = &v 4709 return s 4710 } 4711 4712 // SetDomainName sets the DomainName field's value. 4713 func (s *DescribeServiceAccessPoliciesInput) SetDomainName(v string) *DescribeServiceAccessPoliciesInput { 4714 s.DomainName = &v 4715 return s 4716 } 4717 4718 // The result of a DescribeServiceAccessPolicies request. 4719 type DescribeServiceAccessPoliciesOutput struct { 4720 _ struct{} `type:"structure"` 4721 4722 // The access rules configured for the domain specified in the request. 4723 // 4724 // AccessPolicies is a required field 4725 AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"` 4726 } 4727 4728 // String returns the string representation. 4729 // 4730 // API parameter values that are decorated as "sensitive" in the API will not 4731 // be included in the string output. The member name will be present, but the 4732 // value will be replaced with "sensitive". 4733 func (s DescribeServiceAccessPoliciesOutput) String() string { 4734 return awsutil.Prettify(s) 4735 } 4736 4737 // GoString returns the string representation. 4738 // 4739 // API parameter values that are decorated as "sensitive" in the API will not 4740 // be included in the string output. The member name will be present, but the 4741 // value will be replaced with "sensitive". 4742 func (s DescribeServiceAccessPoliciesOutput) GoString() string { 4743 return s.String() 4744 } 4745 4746 // SetAccessPolicies sets the AccessPolicies field's value. 4747 func (s *DescribeServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *DescribeServiceAccessPoliciesOutput { 4748 s.AccessPolicies = v 4749 return s 4750 } 4751 4752 // Container for the parameters to the DescribeSuggester operation. Specifies 4753 // the name of the domain you want to describe. To restrict the response to 4754 // particular suggesters, specify the names of the suggesters you want to describe. 4755 // To show the active configuration and exclude any pending changes, set the 4756 // Deployed option to true. 4757 type DescribeSuggestersInput struct { 4758 _ struct{} `type:"structure"` 4759 4760 // Whether to display the deployed configuration (true) or include any pending 4761 // changes (false). Defaults to false. 4762 Deployed *bool `type:"boolean"` 4763 4764 // The name of the domain you want to describe. 4765 // 4766 // DomainName is a required field 4767 DomainName *string `min:"3" type:"string" required:"true"` 4768 4769 // The suggesters you want to describe. 4770 SuggesterNames []*string `type:"list"` 4771 } 4772 4773 // String returns the string representation. 4774 // 4775 // API parameter values that are decorated as "sensitive" in the API will not 4776 // be included in the string output. The member name will be present, but the 4777 // value will be replaced with "sensitive". 4778 func (s DescribeSuggestersInput) String() string { 4779 return awsutil.Prettify(s) 4780 } 4781 4782 // GoString returns the string representation. 4783 // 4784 // API parameter values that are decorated as "sensitive" in the API will not 4785 // be included in the string output. The member name will be present, but the 4786 // value will be replaced with "sensitive". 4787 func (s DescribeSuggestersInput) GoString() string { 4788 return s.String() 4789 } 4790 4791 // Validate inspects the fields of the type to determine if they are valid. 4792 func (s *DescribeSuggestersInput) Validate() error { 4793 invalidParams := request.ErrInvalidParams{Context: "DescribeSuggestersInput"} 4794 if s.DomainName == nil { 4795 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4796 } 4797 if s.DomainName != nil && len(*s.DomainName) < 3 { 4798 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 4799 } 4800 4801 if invalidParams.Len() > 0 { 4802 return invalidParams 4803 } 4804 return nil 4805 } 4806 4807 // SetDeployed sets the Deployed field's value. 4808 func (s *DescribeSuggestersInput) SetDeployed(v bool) *DescribeSuggestersInput { 4809 s.Deployed = &v 4810 return s 4811 } 4812 4813 // SetDomainName sets the DomainName field's value. 4814 func (s *DescribeSuggestersInput) SetDomainName(v string) *DescribeSuggestersInput { 4815 s.DomainName = &v 4816 return s 4817 } 4818 4819 // SetSuggesterNames sets the SuggesterNames field's value. 4820 func (s *DescribeSuggestersInput) SetSuggesterNames(v []*string) *DescribeSuggestersInput { 4821 s.SuggesterNames = v 4822 return s 4823 } 4824 4825 // The result of a DescribeSuggesters request. 4826 type DescribeSuggestersOutput struct { 4827 _ struct{} `type:"structure"` 4828 4829 // The suggesters configured for the domain specified in the request. 4830 // 4831 // Suggesters is a required field 4832 Suggesters []*SuggesterStatus `type:"list" required:"true"` 4833 } 4834 4835 // String returns the string representation. 4836 // 4837 // API parameter values that are decorated as "sensitive" in the API will not 4838 // be included in the string output. The member name will be present, but the 4839 // value will be replaced with "sensitive". 4840 func (s DescribeSuggestersOutput) String() string { 4841 return awsutil.Prettify(s) 4842 } 4843 4844 // GoString returns the string representation. 4845 // 4846 // API parameter values that are decorated as "sensitive" in the API will not 4847 // be included in the string output. The member name will be present, but the 4848 // value will be replaced with "sensitive". 4849 func (s DescribeSuggestersOutput) GoString() string { 4850 return s.String() 4851 } 4852 4853 // SetSuggesters sets the Suggesters field's value. 4854 func (s *DescribeSuggestersOutput) SetSuggesters(v []*SuggesterStatus) *DescribeSuggestersOutput { 4855 s.Suggesters = v 4856 return s 4857 } 4858 4859 // Options for a search suggester. 4860 type DocumentSuggesterOptions struct { 4861 _ struct{} `type:"structure"` 4862 4863 // The level of fuzziness allowed when suggesting matches for a string: none, 4864 // low, or high. With none, the specified string is treated as an exact prefix. 4865 // With low, suggestions must differ from the specified string by no more than 4866 // one character. With high, suggestions can differ by up to two characters. 4867 // The default is none. 4868 FuzzyMatching *string `type:"string" enum:"SuggesterFuzzyMatching"` 4869 4870 // An expression that computes a score for each suggestion to control how they 4871 // are sorted. The scores are rounded to the nearest integer, with a floor of 4872 // 0 and a ceiling of 2^31-1. A document's relevance score is not computed for 4873 // suggestions, so sort expressions cannot reference the _score value. To sort 4874 // suggestions using a numeric field or existing expression, simply specify 4875 // the name of the field or expression. If no expression is configured for the 4876 // suggester, the suggestions are sorted with the closest matches listed first. 4877 SortExpression *string `type:"string"` 4878 4879 // The name of the index field you want to use for suggestions. 4880 // 4881 // SourceField is a required field 4882 SourceField *string `min:"1" type:"string" required:"true"` 4883 } 4884 4885 // String returns the string representation. 4886 // 4887 // API parameter values that are decorated as "sensitive" in the API will not 4888 // be included in the string output. The member name will be present, but the 4889 // value will be replaced with "sensitive". 4890 func (s DocumentSuggesterOptions) String() string { 4891 return awsutil.Prettify(s) 4892 } 4893 4894 // GoString returns the string representation. 4895 // 4896 // API parameter values that are decorated as "sensitive" in the API will not 4897 // be included in the string output. The member name will be present, but the 4898 // value will be replaced with "sensitive". 4899 func (s DocumentSuggesterOptions) GoString() string { 4900 return s.String() 4901 } 4902 4903 // Validate inspects the fields of the type to determine if they are valid. 4904 func (s *DocumentSuggesterOptions) Validate() error { 4905 invalidParams := request.ErrInvalidParams{Context: "DocumentSuggesterOptions"} 4906 if s.SourceField == nil { 4907 invalidParams.Add(request.NewErrParamRequired("SourceField")) 4908 } 4909 if s.SourceField != nil && len(*s.SourceField) < 1 { 4910 invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) 4911 } 4912 4913 if invalidParams.Len() > 0 { 4914 return invalidParams 4915 } 4916 return nil 4917 } 4918 4919 // SetFuzzyMatching sets the FuzzyMatching field's value. 4920 func (s *DocumentSuggesterOptions) SetFuzzyMatching(v string) *DocumentSuggesterOptions { 4921 s.FuzzyMatching = &v 4922 return s 4923 } 4924 4925 // SetSortExpression sets the SortExpression field's value. 4926 func (s *DocumentSuggesterOptions) SetSortExpression(v string) *DocumentSuggesterOptions { 4927 s.SortExpression = &v 4928 return s 4929 } 4930 4931 // SetSourceField sets the SourceField field's value. 4932 func (s *DocumentSuggesterOptions) SetSourceField(v string) *DocumentSuggesterOptions { 4933 s.SourceField = &v 4934 return s 4935 } 4936 4937 // The domain's endpoint options. 4938 type DomainEndpointOptions struct { 4939 _ struct{} `type:"structure"` 4940 4941 // Whether the domain is HTTPS only enabled. 4942 EnforceHTTPS *bool `type:"boolean"` 4943 4944 // The minimum required TLS version 4945 TLSSecurityPolicy *string `type:"string" enum:"TLSSecurityPolicy"` 4946 } 4947 4948 // String returns the string representation. 4949 // 4950 // API parameter values that are decorated as "sensitive" in the API will not 4951 // be included in the string output. The member name will be present, but the 4952 // value will be replaced with "sensitive". 4953 func (s DomainEndpointOptions) String() string { 4954 return awsutil.Prettify(s) 4955 } 4956 4957 // GoString returns the string representation. 4958 // 4959 // API parameter values that are decorated as "sensitive" in the API will not 4960 // be included in the string output. The member name will be present, but the 4961 // value will be replaced with "sensitive". 4962 func (s DomainEndpointOptions) GoString() string { 4963 return s.String() 4964 } 4965 4966 // SetEnforceHTTPS sets the EnforceHTTPS field's value. 4967 func (s *DomainEndpointOptions) SetEnforceHTTPS(v bool) *DomainEndpointOptions { 4968 s.EnforceHTTPS = &v 4969 return s 4970 } 4971 4972 // SetTLSSecurityPolicy sets the TLSSecurityPolicy field's value. 4973 func (s *DomainEndpointOptions) SetTLSSecurityPolicy(v string) *DomainEndpointOptions { 4974 s.TLSSecurityPolicy = &v 4975 return s 4976 } 4977 4978 // The configuration and status of the domain's endpoint options. 4979 type DomainEndpointOptionsStatus struct { 4980 _ struct{} `type:"structure"` 4981 4982 // The domain endpoint options configured for the domain. 4983 // 4984 // Options is a required field 4985 Options *DomainEndpointOptions `type:"structure" required:"true"` 4986 4987 // The status of the configured domain endpoint options. 4988 // 4989 // Status is a required field 4990 Status *OptionStatus `type:"structure" required:"true"` 4991 } 4992 4993 // String returns the string representation. 4994 // 4995 // API parameter values that are decorated as "sensitive" in the API will not 4996 // be included in the string output. The member name will be present, but the 4997 // value will be replaced with "sensitive". 4998 func (s DomainEndpointOptionsStatus) String() string { 4999 return awsutil.Prettify(s) 5000 } 5001 5002 // GoString returns the string representation. 5003 // 5004 // API parameter values that are decorated as "sensitive" in the API will not 5005 // be included in the string output. The member name will be present, but the 5006 // value will be replaced with "sensitive". 5007 func (s DomainEndpointOptionsStatus) GoString() string { 5008 return s.String() 5009 } 5010 5011 // SetOptions sets the Options field's value. 5012 func (s *DomainEndpointOptionsStatus) SetOptions(v *DomainEndpointOptions) *DomainEndpointOptionsStatus { 5013 s.Options = v 5014 return s 5015 } 5016 5017 // SetStatus sets the Status field's value. 5018 func (s *DomainEndpointOptionsStatus) SetStatus(v *OptionStatus) *DomainEndpointOptionsStatus { 5019 s.Status = v 5020 return s 5021 } 5022 5023 // The current status of the search domain. 5024 type DomainStatus struct { 5025 _ struct{} `type:"structure"` 5026 5027 // The Amazon Resource Name (ARN) of the search domain. See Identifiers for 5028 // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html) 5029 // in Using AWS Identity and Access Management for more information. 5030 ARN *string `type:"string"` 5031 5032 // True if the search domain is created. It can take several minutes to initialize 5033 // a domain when CreateDomain is called. Newly created search domains are returned 5034 // from DescribeDomains with a false value for Created until domain creation 5035 // is complete. 5036 Created *bool `type:"boolean"` 5037 5038 // True if the search domain has been deleted. The system must clean up resources 5039 // dedicated to the search domain when DeleteDomain is called. Newly deleted 5040 // search domains are returned from DescribeDomains with a true value for IsDeleted 5041 // for several minutes until resource cleanup is complete. 5042 Deleted *bool `type:"boolean"` 5043 5044 // The service endpoint for updating documents in a search domain. 5045 DocService *ServiceEndpoint `type:"structure"` 5046 5047 // An internally generated unique identifier for a domain. 5048 // 5049 // DomainId is a required field 5050 DomainId *string `min:"1" type:"string" required:"true"` 5051 5052 // A string that represents the name of a domain. Domain names are unique across 5053 // the domains owned by an account within an AWS region. Domain names start 5054 // with a letter or number and can contain the following characters: a-z (lowercase), 5055 // 0-9, and - (hyphen). 5056 // 5057 // DomainName is a required field 5058 DomainName *string `min:"3" type:"string" required:"true"` 5059 5060 Limits *Limits `type:"structure"` 5061 5062 // True if processing is being done to activate the current domain configuration. 5063 Processing *bool `type:"boolean"` 5064 5065 // True if IndexDocuments needs to be called to activate the current domain 5066 // configuration. 5067 // 5068 // RequiresIndexDocuments is a required field 5069 RequiresIndexDocuments *bool `type:"boolean" required:"true"` 5070 5071 // The number of search instances that are available to process search requests. 5072 SearchInstanceCount *int64 `min:"1" type:"integer"` 5073 5074 // The instance type that is being used to process search requests. 5075 SearchInstanceType *string `type:"string"` 5076 5077 // The number of partitions across which the search index is spread. 5078 SearchPartitionCount *int64 `min:"1" type:"integer"` 5079 5080 // The service endpoint for requesting search results from a search domain. 5081 SearchService *ServiceEndpoint `type:"structure"` 5082 } 5083 5084 // String returns the string representation. 5085 // 5086 // API parameter values that are decorated as "sensitive" in the API will not 5087 // be included in the string output. The member name will be present, but the 5088 // value will be replaced with "sensitive". 5089 func (s DomainStatus) String() string { 5090 return awsutil.Prettify(s) 5091 } 5092 5093 // GoString returns the string representation. 5094 // 5095 // API parameter values that are decorated as "sensitive" in the API will not 5096 // be included in the string output. The member name will be present, but the 5097 // value will be replaced with "sensitive". 5098 func (s DomainStatus) GoString() string { 5099 return s.String() 5100 } 5101 5102 // SetARN sets the ARN field's value. 5103 func (s *DomainStatus) SetARN(v string) *DomainStatus { 5104 s.ARN = &v 5105 return s 5106 } 5107 5108 // SetCreated sets the Created field's value. 5109 func (s *DomainStatus) SetCreated(v bool) *DomainStatus { 5110 s.Created = &v 5111 return s 5112 } 5113 5114 // SetDeleted sets the Deleted field's value. 5115 func (s *DomainStatus) SetDeleted(v bool) *DomainStatus { 5116 s.Deleted = &v 5117 return s 5118 } 5119 5120 // SetDocService sets the DocService field's value. 5121 func (s *DomainStatus) SetDocService(v *ServiceEndpoint) *DomainStatus { 5122 s.DocService = v 5123 return s 5124 } 5125 5126 // SetDomainId sets the DomainId field's value. 5127 func (s *DomainStatus) SetDomainId(v string) *DomainStatus { 5128 s.DomainId = &v 5129 return s 5130 } 5131 5132 // SetDomainName sets the DomainName field's value. 5133 func (s *DomainStatus) SetDomainName(v string) *DomainStatus { 5134 s.DomainName = &v 5135 return s 5136 } 5137 5138 // SetLimits sets the Limits field's value. 5139 func (s *DomainStatus) SetLimits(v *Limits) *DomainStatus { 5140 s.Limits = v 5141 return s 5142 } 5143 5144 // SetProcessing sets the Processing field's value. 5145 func (s *DomainStatus) SetProcessing(v bool) *DomainStatus { 5146 s.Processing = &v 5147 return s 5148 } 5149 5150 // SetRequiresIndexDocuments sets the RequiresIndexDocuments field's value. 5151 func (s *DomainStatus) SetRequiresIndexDocuments(v bool) *DomainStatus { 5152 s.RequiresIndexDocuments = &v 5153 return s 5154 } 5155 5156 // SetSearchInstanceCount sets the SearchInstanceCount field's value. 5157 func (s *DomainStatus) SetSearchInstanceCount(v int64) *DomainStatus { 5158 s.SearchInstanceCount = &v 5159 return s 5160 } 5161 5162 // SetSearchInstanceType sets the SearchInstanceType field's value. 5163 func (s *DomainStatus) SetSearchInstanceType(v string) *DomainStatus { 5164 s.SearchInstanceType = &v 5165 return s 5166 } 5167 5168 // SetSearchPartitionCount sets the SearchPartitionCount field's value. 5169 func (s *DomainStatus) SetSearchPartitionCount(v int64) *DomainStatus { 5170 s.SearchPartitionCount = &v 5171 return s 5172 } 5173 5174 // SetSearchService sets the SearchService field's value. 5175 func (s *DomainStatus) SetSearchService(v *ServiceEndpoint) *DomainStatus { 5176 s.SearchService = v 5177 return s 5178 } 5179 5180 // Options for a field that contains an array of double-precision 64-bit floating 5181 // point values. Present if IndexFieldType specifies the field is of type double-array. 5182 // All options are enabled by default. 5183 type DoubleArrayOptions struct { 5184 _ struct{} `type:"structure"` 5185 5186 // A value to use for the field if the field isn't specified for a document. 5187 DefaultValue *float64 `type:"double"` 5188 5189 // Whether facet information can be returned for the field. 5190 FacetEnabled *bool `type:"boolean"` 5191 5192 // Whether the contents of the field can be returned in the search results. 5193 ReturnEnabled *bool `type:"boolean"` 5194 5195 // Whether the contents of the field are searchable. 5196 SearchEnabled *bool `type:"boolean"` 5197 5198 // A list of source fields to map to the field. 5199 SourceFields *string `type:"string"` 5200 } 5201 5202 // String returns the string representation. 5203 // 5204 // API parameter values that are decorated as "sensitive" in the API will not 5205 // be included in the string output. The member name will be present, but the 5206 // value will be replaced with "sensitive". 5207 func (s DoubleArrayOptions) String() string { 5208 return awsutil.Prettify(s) 5209 } 5210 5211 // GoString returns the string representation. 5212 // 5213 // API parameter values that are decorated as "sensitive" in the API will not 5214 // be included in the string output. The member name will be present, but the 5215 // value will be replaced with "sensitive". 5216 func (s DoubleArrayOptions) GoString() string { 5217 return s.String() 5218 } 5219 5220 // SetDefaultValue sets the DefaultValue field's value. 5221 func (s *DoubleArrayOptions) SetDefaultValue(v float64) *DoubleArrayOptions { 5222 s.DefaultValue = &v 5223 return s 5224 } 5225 5226 // SetFacetEnabled sets the FacetEnabled field's value. 5227 func (s *DoubleArrayOptions) SetFacetEnabled(v bool) *DoubleArrayOptions { 5228 s.FacetEnabled = &v 5229 return s 5230 } 5231 5232 // SetReturnEnabled sets the ReturnEnabled field's value. 5233 func (s *DoubleArrayOptions) SetReturnEnabled(v bool) *DoubleArrayOptions { 5234 s.ReturnEnabled = &v 5235 return s 5236 } 5237 5238 // SetSearchEnabled sets the SearchEnabled field's value. 5239 func (s *DoubleArrayOptions) SetSearchEnabled(v bool) *DoubleArrayOptions { 5240 s.SearchEnabled = &v 5241 return s 5242 } 5243 5244 // SetSourceFields sets the SourceFields field's value. 5245 func (s *DoubleArrayOptions) SetSourceFields(v string) *DoubleArrayOptions { 5246 s.SourceFields = &v 5247 return s 5248 } 5249 5250 // Options for a double-precision 64-bit floating point field. Present if IndexFieldType 5251 // specifies the field is of type double. All options are enabled by default. 5252 type DoubleOptions struct { 5253 _ struct{} `type:"structure"` 5254 5255 // A value to use for the field if the field isn't specified for a document. 5256 // This can be important if you are using the field in an expression and that 5257 // field is not present in every document. 5258 DefaultValue *float64 `type:"double"` 5259 5260 // Whether facet information can be returned for the field. 5261 FacetEnabled *bool `type:"boolean"` 5262 5263 // Whether the contents of the field can be returned in the search results. 5264 ReturnEnabled *bool `type:"boolean"` 5265 5266 // Whether the contents of the field are searchable. 5267 SearchEnabled *bool `type:"boolean"` 5268 5269 // Whether the field can be used to sort the search results. 5270 SortEnabled *bool `type:"boolean"` 5271 5272 // The name of the source field to map to the field. 5273 SourceField *string `min:"1" type:"string"` 5274 } 5275 5276 // String returns the string representation. 5277 // 5278 // API parameter values that are decorated as "sensitive" in the API will not 5279 // be included in the string output. The member name will be present, but the 5280 // value will be replaced with "sensitive". 5281 func (s DoubleOptions) String() string { 5282 return awsutil.Prettify(s) 5283 } 5284 5285 // GoString returns the string representation. 5286 // 5287 // API parameter values that are decorated as "sensitive" in the API will not 5288 // be included in the string output. The member name will be present, but the 5289 // value will be replaced with "sensitive". 5290 func (s DoubleOptions) GoString() string { 5291 return s.String() 5292 } 5293 5294 // Validate inspects the fields of the type to determine if they are valid. 5295 func (s *DoubleOptions) Validate() error { 5296 invalidParams := request.ErrInvalidParams{Context: "DoubleOptions"} 5297 if s.SourceField != nil && len(*s.SourceField) < 1 { 5298 invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) 5299 } 5300 5301 if invalidParams.Len() > 0 { 5302 return invalidParams 5303 } 5304 return nil 5305 } 5306 5307 // SetDefaultValue sets the DefaultValue field's value. 5308 func (s *DoubleOptions) SetDefaultValue(v float64) *DoubleOptions { 5309 s.DefaultValue = &v 5310 return s 5311 } 5312 5313 // SetFacetEnabled sets the FacetEnabled field's value. 5314 func (s *DoubleOptions) SetFacetEnabled(v bool) *DoubleOptions { 5315 s.FacetEnabled = &v 5316 return s 5317 } 5318 5319 // SetReturnEnabled sets the ReturnEnabled field's value. 5320 func (s *DoubleOptions) SetReturnEnabled(v bool) *DoubleOptions { 5321 s.ReturnEnabled = &v 5322 return s 5323 } 5324 5325 // SetSearchEnabled sets the SearchEnabled field's value. 5326 func (s *DoubleOptions) SetSearchEnabled(v bool) *DoubleOptions { 5327 s.SearchEnabled = &v 5328 return s 5329 } 5330 5331 // SetSortEnabled sets the SortEnabled field's value. 5332 func (s *DoubleOptions) SetSortEnabled(v bool) *DoubleOptions { 5333 s.SortEnabled = &v 5334 return s 5335 } 5336 5337 // SetSourceField sets the SourceField field's value. 5338 func (s *DoubleOptions) SetSourceField(v string) *DoubleOptions { 5339 s.SourceField = &v 5340 return s 5341 } 5342 5343 // A named expression that can be evaluated at search time. Can be used to sort 5344 // the search results, define other expressions, or return computed information 5345 // in the search results. 5346 type Expression struct { 5347 _ struct{} `type:"structure"` 5348 5349 // Names must begin with a letter and can contain the following characters: 5350 // a-z (lowercase), 0-9, and _ (underscore). 5351 // 5352 // ExpressionName is a required field 5353 ExpressionName *string `min:"1" type:"string" required:"true"` 5354 5355 // The expression to evaluate for sorting while processing a search request. 5356 // The Expression syntax is based on JavaScript expressions. For more information, 5357 // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html) 5358 // in the Amazon CloudSearch Developer Guide. 5359 // 5360 // ExpressionValue is a required field 5361 ExpressionValue *string `min:"1" type:"string" required:"true"` 5362 } 5363 5364 // String returns the string representation. 5365 // 5366 // API parameter values that are decorated as "sensitive" in the API will not 5367 // be included in the string output. The member name will be present, but the 5368 // value will be replaced with "sensitive". 5369 func (s Expression) String() string { 5370 return awsutil.Prettify(s) 5371 } 5372 5373 // GoString returns the string representation. 5374 // 5375 // API parameter values that are decorated as "sensitive" in the API will not 5376 // be included in the string output. The member name will be present, but the 5377 // value will be replaced with "sensitive". 5378 func (s Expression) GoString() string { 5379 return s.String() 5380 } 5381 5382 // Validate inspects the fields of the type to determine if they are valid. 5383 func (s *Expression) Validate() error { 5384 invalidParams := request.ErrInvalidParams{Context: "Expression"} 5385 if s.ExpressionName == nil { 5386 invalidParams.Add(request.NewErrParamRequired("ExpressionName")) 5387 } 5388 if s.ExpressionName != nil && len(*s.ExpressionName) < 1 { 5389 invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1)) 5390 } 5391 if s.ExpressionValue == nil { 5392 invalidParams.Add(request.NewErrParamRequired("ExpressionValue")) 5393 } 5394 if s.ExpressionValue != nil && len(*s.ExpressionValue) < 1 { 5395 invalidParams.Add(request.NewErrParamMinLen("ExpressionValue", 1)) 5396 } 5397 5398 if invalidParams.Len() > 0 { 5399 return invalidParams 5400 } 5401 return nil 5402 } 5403 5404 // SetExpressionName sets the ExpressionName field's value. 5405 func (s *Expression) SetExpressionName(v string) *Expression { 5406 s.ExpressionName = &v 5407 return s 5408 } 5409 5410 // SetExpressionValue sets the ExpressionValue field's value. 5411 func (s *Expression) SetExpressionValue(v string) *Expression { 5412 s.ExpressionValue = &v 5413 return s 5414 } 5415 5416 // The value of an Expression and its current status. 5417 type ExpressionStatus struct { 5418 _ struct{} `type:"structure"` 5419 5420 // The expression that is evaluated for sorting while processing a search request. 5421 // 5422 // Options is a required field 5423 Options *Expression `type:"structure" required:"true"` 5424 5425 // The status of domain configuration option. 5426 // 5427 // Status is a required field 5428 Status *OptionStatus `type:"structure" required:"true"` 5429 } 5430 5431 // String returns the string representation. 5432 // 5433 // API parameter values that are decorated as "sensitive" in the API will not 5434 // be included in the string output. The member name will be present, but the 5435 // value will be replaced with "sensitive". 5436 func (s ExpressionStatus) String() string { 5437 return awsutil.Prettify(s) 5438 } 5439 5440 // GoString returns the string representation. 5441 // 5442 // API parameter values that are decorated as "sensitive" in the API will not 5443 // be included in the string output. The member name will be present, but the 5444 // value will be replaced with "sensitive". 5445 func (s ExpressionStatus) GoString() string { 5446 return s.String() 5447 } 5448 5449 // SetOptions sets the Options field's value. 5450 func (s *ExpressionStatus) SetOptions(v *Expression) *ExpressionStatus { 5451 s.Options = v 5452 return s 5453 } 5454 5455 // SetStatus sets the Status field's value. 5456 func (s *ExpressionStatus) SetStatus(v *OptionStatus) *ExpressionStatus { 5457 s.Status = v 5458 return s 5459 } 5460 5461 // Container for the parameters to the IndexDocuments operation. Specifies the 5462 // name of the domain you want to re-index. 5463 type IndexDocumentsInput struct { 5464 _ struct{} `type:"structure"` 5465 5466 // A string that represents the name of a domain. Domain names are unique across 5467 // the domains owned by an account within an AWS region. Domain names start 5468 // with a letter or number and can contain the following characters: a-z (lowercase), 5469 // 0-9, and - (hyphen). 5470 // 5471 // DomainName is a required field 5472 DomainName *string `min:"3" type:"string" required:"true"` 5473 } 5474 5475 // String returns the string representation. 5476 // 5477 // API parameter values that are decorated as "sensitive" in the API will not 5478 // be included in the string output. The member name will be present, but the 5479 // value will be replaced with "sensitive". 5480 func (s IndexDocumentsInput) String() string { 5481 return awsutil.Prettify(s) 5482 } 5483 5484 // GoString returns the string representation. 5485 // 5486 // API parameter values that are decorated as "sensitive" in the API will not 5487 // be included in the string output. The member name will be present, but the 5488 // value will be replaced with "sensitive". 5489 func (s IndexDocumentsInput) GoString() string { 5490 return s.String() 5491 } 5492 5493 // Validate inspects the fields of the type to determine if they are valid. 5494 func (s *IndexDocumentsInput) Validate() error { 5495 invalidParams := request.ErrInvalidParams{Context: "IndexDocumentsInput"} 5496 if s.DomainName == nil { 5497 invalidParams.Add(request.NewErrParamRequired("DomainName")) 5498 } 5499 if s.DomainName != nil && len(*s.DomainName) < 3 { 5500 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 5501 } 5502 5503 if invalidParams.Len() > 0 { 5504 return invalidParams 5505 } 5506 return nil 5507 } 5508 5509 // SetDomainName sets the DomainName field's value. 5510 func (s *IndexDocumentsInput) SetDomainName(v string) *IndexDocumentsInput { 5511 s.DomainName = &v 5512 return s 5513 } 5514 5515 // The result of an IndexDocuments request. Contains the status of the indexing 5516 // operation, including the fields being indexed. 5517 type IndexDocumentsOutput struct { 5518 _ struct{} `type:"structure"` 5519 5520 // The names of the fields that are currently being indexed. 5521 FieldNames []*string `type:"list"` 5522 } 5523 5524 // String returns the string representation. 5525 // 5526 // API parameter values that are decorated as "sensitive" in the API will not 5527 // be included in the string output. The member name will be present, but the 5528 // value will be replaced with "sensitive". 5529 func (s IndexDocumentsOutput) String() string { 5530 return awsutil.Prettify(s) 5531 } 5532 5533 // GoString returns the string representation. 5534 // 5535 // API parameter values that are decorated as "sensitive" in the API will not 5536 // be included in the string output. The member name will be present, but the 5537 // value will be replaced with "sensitive". 5538 func (s IndexDocumentsOutput) GoString() string { 5539 return s.String() 5540 } 5541 5542 // SetFieldNames sets the FieldNames field's value. 5543 func (s *IndexDocumentsOutput) SetFieldNames(v []*string) *IndexDocumentsOutput { 5544 s.FieldNames = v 5545 return s 5546 } 5547 5548 // Configuration information for a field in the index, including its name, type, 5549 // and options. The supported options depend on the IndexFieldType. 5550 type IndexField struct { 5551 _ struct{} `type:"structure"` 5552 5553 // Options for a field that contains an array of dates. Present if IndexFieldType 5554 // specifies the field is of type date-array. All options are enabled by default. 5555 DateArrayOptions *DateArrayOptions `type:"structure"` 5556 5557 // Options for a date field. Dates and times are specified in UTC (Coordinated 5558 // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present 5559 // if IndexFieldType specifies the field is of type date. All options are enabled 5560 // by default. 5561 DateOptions *DateOptions `type:"structure"` 5562 5563 // Options for a field that contains an array of double-precision 64-bit floating 5564 // point values. Present if IndexFieldType specifies the field is of type double-array. 5565 // All options are enabled by default. 5566 DoubleArrayOptions *DoubleArrayOptions `type:"structure"` 5567 5568 // Options for a double-precision 64-bit floating point field. Present if IndexFieldType 5569 // specifies the field is of type double. All options are enabled by default. 5570 DoubleOptions *DoubleOptions `type:"structure"` 5571 5572 // A string that represents the name of an index field. CloudSearch supports 5573 // regular index fields as well as dynamic fields. A dynamic field's name defines 5574 // a pattern that begins or ends with a wildcard. Any document fields that don't 5575 // map to a regular index field but do match a dynamic field's pattern are configured 5576 // with the dynamic field's indexing options. 5577 // 5578 // Regular field names begin with a letter and can contain the following characters: 5579 // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin 5580 // or end with a wildcard (*). The wildcard can also be the only character in 5581 // a dynamic field name. Multiple wildcards, and wildcards embedded within a 5582 // string are not supported. 5583 // 5584 // The name score is reserved and cannot be used as a field name. To reference 5585 // a document's ID, you can use the name _id. 5586 // 5587 // IndexFieldName is a required field 5588 IndexFieldName *string `min:"1" type:"string" required:"true"` 5589 5590 // The type of field. The valid options for a field depend on the field type. 5591 // For more information about the supported field types, see Configuring Index 5592 // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html) 5593 // in the Amazon CloudSearch Developer Guide. 5594 // 5595 // IndexFieldType is a required field 5596 IndexFieldType *string `type:"string" required:"true" enum:"IndexFieldType"` 5597 5598 // Options for a field that contains an array of 64-bit signed integers. Present 5599 // if IndexFieldType specifies the field is of type int-array. All options are 5600 // enabled by default. 5601 IntArrayOptions *IntArrayOptions `type:"structure"` 5602 5603 // Options for a 64-bit signed integer field. Present if IndexFieldType specifies 5604 // the field is of type int. All options are enabled by default. 5605 IntOptions *IntOptions `type:"structure"` 5606 5607 // Options for a latlon field. A latlon field contains a location stored as 5608 // a latitude and longitude value pair. Present if IndexFieldType specifies 5609 // the field is of type latlon. All options are enabled by default. 5610 LatLonOptions *LatLonOptions `type:"structure"` 5611 5612 // Options for a field that contains an array of literal strings. Present if 5613 // IndexFieldType specifies the field is of type literal-array. All options 5614 // are enabled by default. 5615 LiteralArrayOptions *LiteralArrayOptions `type:"structure"` 5616 5617 // Options for literal field. Present if IndexFieldType specifies the field 5618 // is of type literal. All options are enabled by default. 5619 LiteralOptions *LiteralOptions `type:"structure"` 5620 5621 // Options for a field that contains an array of text strings. Present if IndexFieldType 5622 // specifies the field is of type text-array. A text-array field is always searchable. 5623 // All options are enabled by default. 5624 TextArrayOptions *TextArrayOptions `type:"structure"` 5625 5626 // Options for text field. Present if IndexFieldType specifies the field is 5627 // of type text. A text field is always searchable. All options are enabled 5628 // by default. 5629 TextOptions *TextOptions `type:"structure"` 5630 } 5631 5632 // String returns the string representation. 5633 // 5634 // API parameter values that are decorated as "sensitive" in the API will not 5635 // be included in the string output. The member name will be present, but the 5636 // value will be replaced with "sensitive". 5637 func (s IndexField) String() string { 5638 return awsutil.Prettify(s) 5639 } 5640 5641 // GoString returns the string representation. 5642 // 5643 // API parameter values that are decorated as "sensitive" in the API will not 5644 // be included in the string output. The member name will be present, but the 5645 // value will be replaced with "sensitive". 5646 func (s IndexField) GoString() string { 5647 return s.String() 5648 } 5649 5650 // Validate inspects the fields of the type to determine if they are valid. 5651 func (s *IndexField) Validate() error { 5652 invalidParams := request.ErrInvalidParams{Context: "IndexField"} 5653 if s.IndexFieldName == nil { 5654 invalidParams.Add(request.NewErrParamRequired("IndexFieldName")) 5655 } 5656 if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 { 5657 invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1)) 5658 } 5659 if s.IndexFieldType == nil { 5660 invalidParams.Add(request.NewErrParamRequired("IndexFieldType")) 5661 } 5662 if s.DateOptions != nil { 5663 if err := s.DateOptions.Validate(); err != nil { 5664 invalidParams.AddNested("DateOptions", err.(request.ErrInvalidParams)) 5665 } 5666 } 5667 if s.DoubleOptions != nil { 5668 if err := s.DoubleOptions.Validate(); err != nil { 5669 invalidParams.AddNested("DoubleOptions", err.(request.ErrInvalidParams)) 5670 } 5671 } 5672 if s.IntOptions != nil { 5673 if err := s.IntOptions.Validate(); err != nil { 5674 invalidParams.AddNested("IntOptions", err.(request.ErrInvalidParams)) 5675 } 5676 } 5677 if s.LatLonOptions != nil { 5678 if err := s.LatLonOptions.Validate(); err != nil { 5679 invalidParams.AddNested("LatLonOptions", err.(request.ErrInvalidParams)) 5680 } 5681 } 5682 if s.LiteralOptions != nil { 5683 if err := s.LiteralOptions.Validate(); err != nil { 5684 invalidParams.AddNested("LiteralOptions", err.(request.ErrInvalidParams)) 5685 } 5686 } 5687 if s.TextOptions != nil { 5688 if err := s.TextOptions.Validate(); err != nil { 5689 invalidParams.AddNested("TextOptions", err.(request.ErrInvalidParams)) 5690 } 5691 } 5692 5693 if invalidParams.Len() > 0 { 5694 return invalidParams 5695 } 5696 return nil 5697 } 5698 5699 // SetDateArrayOptions sets the DateArrayOptions field's value. 5700 func (s *IndexField) SetDateArrayOptions(v *DateArrayOptions) *IndexField { 5701 s.DateArrayOptions = v 5702 return s 5703 } 5704 5705 // SetDateOptions sets the DateOptions field's value. 5706 func (s *IndexField) SetDateOptions(v *DateOptions) *IndexField { 5707 s.DateOptions = v 5708 return s 5709 } 5710 5711 // SetDoubleArrayOptions sets the DoubleArrayOptions field's value. 5712 func (s *IndexField) SetDoubleArrayOptions(v *DoubleArrayOptions) *IndexField { 5713 s.DoubleArrayOptions = v 5714 return s 5715 } 5716 5717 // SetDoubleOptions sets the DoubleOptions field's value. 5718 func (s *IndexField) SetDoubleOptions(v *DoubleOptions) *IndexField { 5719 s.DoubleOptions = v 5720 return s 5721 } 5722 5723 // SetIndexFieldName sets the IndexFieldName field's value. 5724 func (s *IndexField) SetIndexFieldName(v string) *IndexField { 5725 s.IndexFieldName = &v 5726 return s 5727 } 5728 5729 // SetIndexFieldType sets the IndexFieldType field's value. 5730 func (s *IndexField) SetIndexFieldType(v string) *IndexField { 5731 s.IndexFieldType = &v 5732 return s 5733 } 5734 5735 // SetIntArrayOptions sets the IntArrayOptions field's value. 5736 func (s *IndexField) SetIntArrayOptions(v *IntArrayOptions) *IndexField { 5737 s.IntArrayOptions = v 5738 return s 5739 } 5740 5741 // SetIntOptions sets the IntOptions field's value. 5742 func (s *IndexField) SetIntOptions(v *IntOptions) *IndexField { 5743 s.IntOptions = v 5744 return s 5745 } 5746 5747 // SetLatLonOptions sets the LatLonOptions field's value. 5748 func (s *IndexField) SetLatLonOptions(v *LatLonOptions) *IndexField { 5749 s.LatLonOptions = v 5750 return s 5751 } 5752 5753 // SetLiteralArrayOptions sets the LiteralArrayOptions field's value. 5754 func (s *IndexField) SetLiteralArrayOptions(v *LiteralArrayOptions) *IndexField { 5755 s.LiteralArrayOptions = v 5756 return s 5757 } 5758 5759 // SetLiteralOptions sets the LiteralOptions field's value. 5760 func (s *IndexField) SetLiteralOptions(v *LiteralOptions) *IndexField { 5761 s.LiteralOptions = v 5762 return s 5763 } 5764 5765 // SetTextArrayOptions sets the TextArrayOptions field's value. 5766 func (s *IndexField) SetTextArrayOptions(v *TextArrayOptions) *IndexField { 5767 s.TextArrayOptions = v 5768 return s 5769 } 5770 5771 // SetTextOptions sets the TextOptions field's value. 5772 func (s *IndexField) SetTextOptions(v *TextOptions) *IndexField { 5773 s.TextOptions = v 5774 return s 5775 } 5776 5777 // The value of an IndexField and its current status. 5778 type IndexFieldStatus struct { 5779 _ struct{} `type:"structure"` 5780 5781 // Configuration information for a field in the index, including its name, type, 5782 // and options. The supported options depend on the IndexFieldType. 5783 // 5784 // Options is a required field 5785 Options *IndexField `type:"structure" required:"true"` 5786 5787 // The status of domain configuration option. 5788 // 5789 // Status is a required field 5790 Status *OptionStatus `type:"structure" required:"true"` 5791 } 5792 5793 // String returns the string representation. 5794 // 5795 // API parameter values that are decorated as "sensitive" in the API will not 5796 // be included in the string output. The member name will be present, but the 5797 // value will be replaced with "sensitive". 5798 func (s IndexFieldStatus) String() string { 5799 return awsutil.Prettify(s) 5800 } 5801 5802 // GoString returns the string representation. 5803 // 5804 // API parameter values that are decorated as "sensitive" in the API will not 5805 // be included in the string output. The member name will be present, but the 5806 // value will be replaced with "sensitive". 5807 func (s IndexFieldStatus) GoString() string { 5808 return s.String() 5809 } 5810 5811 // SetOptions sets the Options field's value. 5812 func (s *IndexFieldStatus) SetOptions(v *IndexField) *IndexFieldStatus { 5813 s.Options = v 5814 return s 5815 } 5816 5817 // SetStatus sets the Status field's value. 5818 func (s *IndexFieldStatus) SetStatus(v *OptionStatus) *IndexFieldStatus { 5819 s.Status = v 5820 return s 5821 } 5822 5823 // Options for a field that contains an array of 64-bit signed integers. Present 5824 // if IndexFieldType specifies the field is of type int-array. All options are 5825 // enabled by default. 5826 type IntArrayOptions struct { 5827 _ struct{} `type:"structure"` 5828 5829 // A value to use for the field if the field isn't specified for a document. 5830 DefaultValue *int64 `type:"long"` 5831 5832 // Whether facet information can be returned for the field. 5833 FacetEnabled *bool `type:"boolean"` 5834 5835 // Whether the contents of the field can be returned in the search results. 5836 ReturnEnabled *bool `type:"boolean"` 5837 5838 // Whether the contents of the field are searchable. 5839 SearchEnabled *bool `type:"boolean"` 5840 5841 // A list of source fields to map to the field. 5842 SourceFields *string `type:"string"` 5843 } 5844 5845 // String returns the string representation. 5846 // 5847 // API parameter values that are decorated as "sensitive" in the API will not 5848 // be included in the string output. The member name will be present, but the 5849 // value will be replaced with "sensitive". 5850 func (s IntArrayOptions) String() string { 5851 return awsutil.Prettify(s) 5852 } 5853 5854 // GoString returns the string representation. 5855 // 5856 // API parameter values that are decorated as "sensitive" in the API will not 5857 // be included in the string output. The member name will be present, but the 5858 // value will be replaced with "sensitive". 5859 func (s IntArrayOptions) GoString() string { 5860 return s.String() 5861 } 5862 5863 // SetDefaultValue sets the DefaultValue field's value. 5864 func (s *IntArrayOptions) SetDefaultValue(v int64) *IntArrayOptions { 5865 s.DefaultValue = &v 5866 return s 5867 } 5868 5869 // SetFacetEnabled sets the FacetEnabled field's value. 5870 func (s *IntArrayOptions) SetFacetEnabled(v bool) *IntArrayOptions { 5871 s.FacetEnabled = &v 5872 return s 5873 } 5874 5875 // SetReturnEnabled sets the ReturnEnabled field's value. 5876 func (s *IntArrayOptions) SetReturnEnabled(v bool) *IntArrayOptions { 5877 s.ReturnEnabled = &v 5878 return s 5879 } 5880 5881 // SetSearchEnabled sets the SearchEnabled field's value. 5882 func (s *IntArrayOptions) SetSearchEnabled(v bool) *IntArrayOptions { 5883 s.SearchEnabled = &v 5884 return s 5885 } 5886 5887 // SetSourceFields sets the SourceFields field's value. 5888 func (s *IntArrayOptions) SetSourceFields(v string) *IntArrayOptions { 5889 s.SourceFields = &v 5890 return s 5891 } 5892 5893 // Options for a 64-bit signed integer field. Present if IndexFieldType specifies 5894 // the field is of type int. All options are enabled by default. 5895 type IntOptions struct { 5896 _ struct{} `type:"structure"` 5897 5898 // A value to use for the field if the field isn't specified for a document. 5899 // This can be important if you are using the field in an expression and that 5900 // field is not present in every document. 5901 DefaultValue *int64 `type:"long"` 5902 5903 // Whether facet information can be returned for the field. 5904 FacetEnabled *bool `type:"boolean"` 5905 5906 // Whether the contents of the field can be returned in the search results. 5907 ReturnEnabled *bool `type:"boolean"` 5908 5909 // Whether the contents of the field are searchable. 5910 SearchEnabled *bool `type:"boolean"` 5911 5912 // Whether the field can be used to sort the search results. 5913 SortEnabled *bool `type:"boolean"` 5914 5915 // The name of the source field to map to the field. 5916 SourceField *string `min:"1" type:"string"` 5917 } 5918 5919 // String returns the string representation. 5920 // 5921 // API parameter values that are decorated as "sensitive" in the API will not 5922 // be included in the string output. The member name will be present, but the 5923 // value will be replaced with "sensitive". 5924 func (s IntOptions) String() string { 5925 return awsutil.Prettify(s) 5926 } 5927 5928 // GoString returns the string representation. 5929 // 5930 // API parameter values that are decorated as "sensitive" in the API will not 5931 // be included in the string output. The member name will be present, but the 5932 // value will be replaced with "sensitive". 5933 func (s IntOptions) GoString() string { 5934 return s.String() 5935 } 5936 5937 // Validate inspects the fields of the type to determine if they are valid. 5938 func (s *IntOptions) Validate() error { 5939 invalidParams := request.ErrInvalidParams{Context: "IntOptions"} 5940 if s.SourceField != nil && len(*s.SourceField) < 1 { 5941 invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) 5942 } 5943 5944 if invalidParams.Len() > 0 { 5945 return invalidParams 5946 } 5947 return nil 5948 } 5949 5950 // SetDefaultValue sets the DefaultValue field's value. 5951 func (s *IntOptions) SetDefaultValue(v int64) *IntOptions { 5952 s.DefaultValue = &v 5953 return s 5954 } 5955 5956 // SetFacetEnabled sets the FacetEnabled field's value. 5957 func (s *IntOptions) SetFacetEnabled(v bool) *IntOptions { 5958 s.FacetEnabled = &v 5959 return s 5960 } 5961 5962 // SetReturnEnabled sets the ReturnEnabled field's value. 5963 func (s *IntOptions) SetReturnEnabled(v bool) *IntOptions { 5964 s.ReturnEnabled = &v 5965 return s 5966 } 5967 5968 // SetSearchEnabled sets the SearchEnabled field's value. 5969 func (s *IntOptions) SetSearchEnabled(v bool) *IntOptions { 5970 s.SearchEnabled = &v 5971 return s 5972 } 5973 5974 // SetSortEnabled sets the SortEnabled field's value. 5975 func (s *IntOptions) SetSortEnabled(v bool) *IntOptions { 5976 s.SortEnabled = &v 5977 return s 5978 } 5979 5980 // SetSourceField sets the SourceField field's value. 5981 func (s *IntOptions) SetSourceField(v string) *IntOptions { 5982 s.SourceField = &v 5983 return s 5984 } 5985 5986 // Options for a latlon field. A latlon field contains a location stored as 5987 // a latitude and longitude value pair. Present if IndexFieldType specifies 5988 // the field is of type latlon. All options are enabled by default. 5989 type LatLonOptions struct { 5990 _ struct{} `type:"structure"` 5991 5992 // A value to use for the field if the field isn't specified for a document. 5993 DefaultValue *string `type:"string"` 5994 5995 // Whether facet information can be returned for the field. 5996 FacetEnabled *bool `type:"boolean"` 5997 5998 // Whether the contents of the field can be returned in the search results. 5999 ReturnEnabled *bool `type:"boolean"` 6000 6001 // Whether the contents of the field are searchable. 6002 SearchEnabled *bool `type:"boolean"` 6003 6004 // Whether the field can be used to sort the search results. 6005 SortEnabled *bool `type:"boolean"` 6006 6007 // A string that represents the name of an index field. CloudSearch supports 6008 // regular index fields as well as dynamic fields. A dynamic field's name defines 6009 // a pattern that begins or ends with a wildcard. Any document fields that don't 6010 // map to a regular index field but do match a dynamic field's pattern are configured 6011 // with the dynamic field's indexing options. 6012 // 6013 // Regular field names begin with a letter and can contain the following characters: 6014 // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin 6015 // or end with a wildcard (*). The wildcard can also be the only character in 6016 // a dynamic field name. Multiple wildcards, and wildcards embedded within a 6017 // string are not supported. 6018 // 6019 // The name score is reserved and cannot be used as a field name. To reference 6020 // a document's ID, you can use the name _id. 6021 SourceField *string `min:"1" type:"string"` 6022 } 6023 6024 // String returns the string representation. 6025 // 6026 // API parameter values that are decorated as "sensitive" in the API will not 6027 // be included in the string output. The member name will be present, but the 6028 // value will be replaced with "sensitive". 6029 func (s LatLonOptions) String() string { 6030 return awsutil.Prettify(s) 6031 } 6032 6033 // GoString returns the string representation. 6034 // 6035 // API parameter values that are decorated as "sensitive" in the API will not 6036 // be included in the string output. The member name will be present, but the 6037 // value will be replaced with "sensitive". 6038 func (s LatLonOptions) GoString() string { 6039 return s.String() 6040 } 6041 6042 // Validate inspects the fields of the type to determine if they are valid. 6043 func (s *LatLonOptions) Validate() error { 6044 invalidParams := request.ErrInvalidParams{Context: "LatLonOptions"} 6045 if s.SourceField != nil && len(*s.SourceField) < 1 { 6046 invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) 6047 } 6048 6049 if invalidParams.Len() > 0 { 6050 return invalidParams 6051 } 6052 return nil 6053 } 6054 6055 // SetDefaultValue sets the DefaultValue field's value. 6056 func (s *LatLonOptions) SetDefaultValue(v string) *LatLonOptions { 6057 s.DefaultValue = &v 6058 return s 6059 } 6060 6061 // SetFacetEnabled sets the FacetEnabled field's value. 6062 func (s *LatLonOptions) SetFacetEnabled(v bool) *LatLonOptions { 6063 s.FacetEnabled = &v 6064 return s 6065 } 6066 6067 // SetReturnEnabled sets the ReturnEnabled field's value. 6068 func (s *LatLonOptions) SetReturnEnabled(v bool) *LatLonOptions { 6069 s.ReturnEnabled = &v 6070 return s 6071 } 6072 6073 // SetSearchEnabled sets the SearchEnabled field's value. 6074 func (s *LatLonOptions) SetSearchEnabled(v bool) *LatLonOptions { 6075 s.SearchEnabled = &v 6076 return s 6077 } 6078 6079 // SetSortEnabled sets the SortEnabled field's value. 6080 func (s *LatLonOptions) SetSortEnabled(v bool) *LatLonOptions { 6081 s.SortEnabled = &v 6082 return s 6083 } 6084 6085 // SetSourceField sets the SourceField field's value. 6086 func (s *LatLonOptions) SetSourceField(v string) *LatLonOptions { 6087 s.SourceField = &v 6088 return s 6089 } 6090 6091 type Limits struct { 6092 _ struct{} `type:"structure"` 6093 6094 // MaximumPartitionCount is a required field 6095 MaximumPartitionCount *int64 `min:"1" type:"integer" required:"true"` 6096 6097 // MaximumReplicationCount is a required field 6098 MaximumReplicationCount *int64 `min:"1" type:"integer" required:"true"` 6099 } 6100 6101 // String returns the string representation. 6102 // 6103 // API parameter values that are decorated as "sensitive" in the API will not 6104 // be included in the string output. The member name will be present, but the 6105 // value will be replaced with "sensitive". 6106 func (s Limits) String() string { 6107 return awsutil.Prettify(s) 6108 } 6109 6110 // GoString returns the string representation. 6111 // 6112 // API parameter values that are decorated as "sensitive" in the API will not 6113 // be included in the string output. The member name will be present, but the 6114 // value will be replaced with "sensitive". 6115 func (s Limits) GoString() string { 6116 return s.String() 6117 } 6118 6119 // SetMaximumPartitionCount sets the MaximumPartitionCount field's value. 6120 func (s *Limits) SetMaximumPartitionCount(v int64) *Limits { 6121 s.MaximumPartitionCount = &v 6122 return s 6123 } 6124 6125 // SetMaximumReplicationCount sets the MaximumReplicationCount field's value. 6126 func (s *Limits) SetMaximumReplicationCount(v int64) *Limits { 6127 s.MaximumReplicationCount = &v 6128 return s 6129 } 6130 6131 type ListDomainNamesInput struct { 6132 _ struct{} `type:"structure"` 6133 } 6134 6135 // String returns the string representation. 6136 // 6137 // API parameter values that are decorated as "sensitive" in the API will not 6138 // be included in the string output. The member name will be present, but the 6139 // value will be replaced with "sensitive". 6140 func (s ListDomainNamesInput) String() string { 6141 return awsutil.Prettify(s) 6142 } 6143 6144 // GoString returns the string representation. 6145 // 6146 // API parameter values that are decorated as "sensitive" in the API will not 6147 // be included in the string output. The member name will be present, but the 6148 // value will be replaced with "sensitive". 6149 func (s ListDomainNamesInput) GoString() string { 6150 return s.String() 6151 } 6152 6153 // The result of a ListDomainNames request. Contains a list of the domains owned 6154 // by an account. 6155 type ListDomainNamesOutput struct { 6156 _ struct{} `type:"structure"` 6157 6158 // The names of the search domains owned by an account. 6159 DomainNames map[string]*string `type:"map"` 6160 } 6161 6162 // String returns the string representation. 6163 // 6164 // API parameter values that are decorated as "sensitive" in the API will not 6165 // be included in the string output. The member name will be present, but the 6166 // value will be replaced with "sensitive". 6167 func (s ListDomainNamesOutput) String() string { 6168 return awsutil.Prettify(s) 6169 } 6170 6171 // GoString returns the string representation. 6172 // 6173 // API parameter values that are decorated as "sensitive" in the API will not 6174 // be included in the string output. The member name will be present, but the 6175 // value will be replaced with "sensitive". 6176 func (s ListDomainNamesOutput) GoString() string { 6177 return s.String() 6178 } 6179 6180 // SetDomainNames sets the DomainNames field's value. 6181 func (s *ListDomainNamesOutput) SetDomainNames(v map[string]*string) *ListDomainNamesOutput { 6182 s.DomainNames = v 6183 return s 6184 } 6185 6186 // Options for a field that contains an array of literal strings. Present if 6187 // IndexFieldType specifies the field is of type literal-array. All options 6188 // are enabled by default. 6189 type LiteralArrayOptions struct { 6190 _ struct{} `type:"structure"` 6191 6192 // A value to use for the field if the field isn't specified for a document. 6193 DefaultValue *string `type:"string"` 6194 6195 // Whether facet information can be returned for the field. 6196 FacetEnabled *bool `type:"boolean"` 6197 6198 // Whether the contents of the field can be returned in the search results. 6199 ReturnEnabled *bool `type:"boolean"` 6200 6201 // Whether the contents of the field are searchable. 6202 SearchEnabled *bool `type:"boolean"` 6203 6204 // A list of source fields to map to the field. 6205 SourceFields *string `type:"string"` 6206 } 6207 6208 // String returns the string representation. 6209 // 6210 // API parameter values that are decorated as "sensitive" in the API will not 6211 // be included in the string output. The member name will be present, but the 6212 // value will be replaced with "sensitive". 6213 func (s LiteralArrayOptions) String() string { 6214 return awsutil.Prettify(s) 6215 } 6216 6217 // GoString returns the string representation. 6218 // 6219 // API parameter values that are decorated as "sensitive" in the API will not 6220 // be included in the string output. The member name will be present, but the 6221 // value will be replaced with "sensitive". 6222 func (s LiteralArrayOptions) GoString() string { 6223 return s.String() 6224 } 6225 6226 // SetDefaultValue sets the DefaultValue field's value. 6227 func (s *LiteralArrayOptions) SetDefaultValue(v string) *LiteralArrayOptions { 6228 s.DefaultValue = &v 6229 return s 6230 } 6231 6232 // SetFacetEnabled sets the FacetEnabled field's value. 6233 func (s *LiteralArrayOptions) SetFacetEnabled(v bool) *LiteralArrayOptions { 6234 s.FacetEnabled = &v 6235 return s 6236 } 6237 6238 // SetReturnEnabled sets the ReturnEnabled field's value. 6239 func (s *LiteralArrayOptions) SetReturnEnabled(v bool) *LiteralArrayOptions { 6240 s.ReturnEnabled = &v 6241 return s 6242 } 6243 6244 // SetSearchEnabled sets the SearchEnabled field's value. 6245 func (s *LiteralArrayOptions) SetSearchEnabled(v bool) *LiteralArrayOptions { 6246 s.SearchEnabled = &v 6247 return s 6248 } 6249 6250 // SetSourceFields sets the SourceFields field's value. 6251 func (s *LiteralArrayOptions) SetSourceFields(v string) *LiteralArrayOptions { 6252 s.SourceFields = &v 6253 return s 6254 } 6255 6256 // Options for literal field. Present if IndexFieldType specifies the field 6257 // is of type literal. All options are enabled by default. 6258 type LiteralOptions struct { 6259 _ struct{} `type:"structure"` 6260 6261 // A value to use for the field if the field isn't specified for a document. 6262 DefaultValue *string `type:"string"` 6263 6264 // Whether facet information can be returned for the field. 6265 FacetEnabled *bool `type:"boolean"` 6266 6267 // Whether the contents of the field can be returned in the search results. 6268 ReturnEnabled *bool `type:"boolean"` 6269 6270 // Whether the contents of the field are searchable. 6271 SearchEnabled *bool `type:"boolean"` 6272 6273 // Whether the field can be used to sort the search results. 6274 SortEnabled *bool `type:"boolean"` 6275 6276 // A string that represents the name of an index field. CloudSearch supports 6277 // regular index fields as well as dynamic fields. A dynamic field's name defines 6278 // a pattern that begins or ends with a wildcard. Any document fields that don't 6279 // map to a regular index field but do match a dynamic field's pattern are configured 6280 // with the dynamic field's indexing options. 6281 // 6282 // Regular field names begin with a letter and can contain the following characters: 6283 // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin 6284 // or end with a wildcard (*). The wildcard can also be the only character in 6285 // a dynamic field name. Multiple wildcards, and wildcards embedded within a 6286 // string are not supported. 6287 // 6288 // The name score is reserved and cannot be used as a field name. To reference 6289 // a document's ID, you can use the name _id. 6290 SourceField *string `min:"1" type:"string"` 6291 } 6292 6293 // String returns the string representation. 6294 // 6295 // API parameter values that are decorated as "sensitive" in the API will not 6296 // be included in the string output. The member name will be present, but the 6297 // value will be replaced with "sensitive". 6298 func (s LiteralOptions) String() string { 6299 return awsutil.Prettify(s) 6300 } 6301 6302 // GoString returns the string representation. 6303 // 6304 // API parameter values that are decorated as "sensitive" in the API will not 6305 // be included in the string output. The member name will be present, but the 6306 // value will be replaced with "sensitive". 6307 func (s LiteralOptions) GoString() string { 6308 return s.String() 6309 } 6310 6311 // Validate inspects the fields of the type to determine if they are valid. 6312 func (s *LiteralOptions) Validate() error { 6313 invalidParams := request.ErrInvalidParams{Context: "LiteralOptions"} 6314 if s.SourceField != nil && len(*s.SourceField) < 1 { 6315 invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) 6316 } 6317 6318 if invalidParams.Len() > 0 { 6319 return invalidParams 6320 } 6321 return nil 6322 } 6323 6324 // SetDefaultValue sets the DefaultValue field's value. 6325 func (s *LiteralOptions) SetDefaultValue(v string) *LiteralOptions { 6326 s.DefaultValue = &v 6327 return s 6328 } 6329 6330 // SetFacetEnabled sets the FacetEnabled field's value. 6331 func (s *LiteralOptions) SetFacetEnabled(v bool) *LiteralOptions { 6332 s.FacetEnabled = &v 6333 return s 6334 } 6335 6336 // SetReturnEnabled sets the ReturnEnabled field's value. 6337 func (s *LiteralOptions) SetReturnEnabled(v bool) *LiteralOptions { 6338 s.ReturnEnabled = &v 6339 return s 6340 } 6341 6342 // SetSearchEnabled sets the SearchEnabled field's value. 6343 func (s *LiteralOptions) SetSearchEnabled(v bool) *LiteralOptions { 6344 s.SearchEnabled = &v 6345 return s 6346 } 6347 6348 // SetSortEnabled sets the SortEnabled field's value. 6349 func (s *LiteralOptions) SetSortEnabled(v bool) *LiteralOptions { 6350 s.SortEnabled = &v 6351 return s 6352 } 6353 6354 // SetSourceField sets the SourceField field's value. 6355 func (s *LiteralOptions) SetSourceField(v string) *LiteralOptions { 6356 s.SourceField = &v 6357 return s 6358 } 6359 6360 // The status of domain configuration option. 6361 type OptionStatus struct { 6362 _ struct{} `type:"structure"` 6363 6364 // A timestamp for when this option was created. 6365 // 6366 // CreationDate is a required field 6367 CreationDate *time.Time `type:"timestamp" required:"true"` 6368 6369 // Indicates that the option will be deleted once processing is complete. 6370 PendingDeletion *bool `type:"boolean"` 6371 6372 // The state of processing a change to an option. Possible values: 6373 // 6374 // * RequiresIndexDocuments: the option's latest value will not be deployed 6375 // until IndexDocuments has been called and indexing is complete. 6376 // 6377 // * Processing: the option's latest value is in the process of being activated. 6378 // 6379 // * Active: the option's latest value is completely deployed. 6380 // 6381 // * FailedToValidate: the option value is not compatible with the domain's 6382 // data and cannot be used to index the data. You must either modify the 6383 // option value or update or remove the incompatible documents. 6384 // 6385 // State is a required field 6386 State *string `type:"string" required:"true" enum:"OptionState"` 6387 6388 // A timestamp for when this option was last updated. 6389 // 6390 // UpdateDate is a required field 6391 UpdateDate *time.Time `type:"timestamp" required:"true"` 6392 6393 // A unique integer that indicates when this option was last updated. 6394 UpdateVersion *int64 `type:"integer"` 6395 } 6396 6397 // String returns the string representation. 6398 // 6399 // API parameter values that are decorated as "sensitive" in the API will not 6400 // be included in the string output. The member name will be present, but the 6401 // value will be replaced with "sensitive". 6402 func (s OptionStatus) String() string { 6403 return awsutil.Prettify(s) 6404 } 6405 6406 // GoString returns the string representation. 6407 // 6408 // API parameter values that are decorated as "sensitive" in the API will not 6409 // be included in the string output. The member name will be present, but the 6410 // value will be replaced with "sensitive". 6411 func (s OptionStatus) GoString() string { 6412 return s.String() 6413 } 6414 6415 // SetCreationDate sets the CreationDate field's value. 6416 func (s *OptionStatus) SetCreationDate(v time.Time) *OptionStatus { 6417 s.CreationDate = &v 6418 return s 6419 } 6420 6421 // SetPendingDeletion sets the PendingDeletion field's value. 6422 func (s *OptionStatus) SetPendingDeletion(v bool) *OptionStatus { 6423 s.PendingDeletion = &v 6424 return s 6425 } 6426 6427 // SetState sets the State field's value. 6428 func (s *OptionStatus) SetState(v string) *OptionStatus { 6429 s.State = &v 6430 return s 6431 } 6432 6433 // SetUpdateDate sets the UpdateDate field's value. 6434 func (s *OptionStatus) SetUpdateDate(v time.Time) *OptionStatus { 6435 s.UpdateDate = &v 6436 return s 6437 } 6438 6439 // SetUpdateVersion sets the UpdateVersion field's value. 6440 func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus { 6441 s.UpdateVersion = &v 6442 return s 6443 } 6444 6445 // The desired instance type and desired number of replicas of each index partition. 6446 type ScalingParameters struct { 6447 _ struct{} `type:"structure"` 6448 6449 // The instance type that you want to preconfigure for your domain. For example, 6450 // search.m1.small. 6451 DesiredInstanceType *string `type:"string" enum:"PartitionInstanceType"` 6452 6453 // The number of partitions you want to preconfigure for your domain. Only valid 6454 // when you select m2.2xlarge as the desired instance type. 6455 DesiredPartitionCount *int64 `type:"integer"` 6456 6457 // The number of replicas you want to preconfigure for each index partition. 6458 DesiredReplicationCount *int64 `type:"integer"` 6459 } 6460 6461 // String returns the string representation. 6462 // 6463 // API parameter values that are decorated as "sensitive" in the API will not 6464 // be included in the string output. The member name will be present, but the 6465 // value will be replaced with "sensitive". 6466 func (s ScalingParameters) String() string { 6467 return awsutil.Prettify(s) 6468 } 6469 6470 // GoString returns the string representation. 6471 // 6472 // API parameter values that are decorated as "sensitive" in the API will not 6473 // be included in the string output. The member name will be present, but the 6474 // value will be replaced with "sensitive". 6475 func (s ScalingParameters) GoString() string { 6476 return s.String() 6477 } 6478 6479 // SetDesiredInstanceType sets the DesiredInstanceType field's value. 6480 func (s *ScalingParameters) SetDesiredInstanceType(v string) *ScalingParameters { 6481 s.DesiredInstanceType = &v 6482 return s 6483 } 6484 6485 // SetDesiredPartitionCount sets the DesiredPartitionCount field's value. 6486 func (s *ScalingParameters) SetDesiredPartitionCount(v int64) *ScalingParameters { 6487 s.DesiredPartitionCount = &v 6488 return s 6489 } 6490 6491 // SetDesiredReplicationCount sets the DesiredReplicationCount field's value. 6492 func (s *ScalingParameters) SetDesiredReplicationCount(v int64) *ScalingParameters { 6493 s.DesiredReplicationCount = &v 6494 return s 6495 } 6496 6497 // The status and configuration of a search domain's scaling parameters. 6498 type ScalingParametersStatus struct { 6499 _ struct{} `type:"structure"` 6500 6501 // The desired instance type and desired number of replicas of each index partition. 6502 // 6503 // Options is a required field 6504 Options *ScalingParameters `type:"structure" required:"true"` 6505 6506 // The status of domain configuration option. 6507 // 6508 // Status is a required field 6509 Status *OptionStatus `type:"structure" required:"true"` 6510 } 6511 6512 // String returns the string representation. 6513 // 6514 // API parameter values that are decorated as "sensitive" in the API will not 6515 // be included in the string output. The member name will be present, but the 6516 // value will be replaced with "sensitive". 6517 func (s ScalingParametersStatus) String() string { 6518 return awsutil.Prettify(s) 6519 } 6520 6521 // GoString returns the string representation. 6522 // 6523 // API parameter values that are decorated as "sensitive" in the API will not 6524 // be included in the string output. The member name will be present, but the 6525 // value will be replaced with "sensitive". 6526 func (s ScalingParametersStatus) GoString() string { 6527 return s.String() 6528 } 6529 6530 // SetOptions sets the Options field's value. 6531 func (s *ScalingParametersStatus) SetOptions(v *ScalingParameters) *ScalingParametersStatus { 6532 s.Options = v 6533 return s 6534 } 6535 6536 // SetStatus sets the Status field's value. 6537 func (s *ScalingParametersStatus) SetStatus(v *OptionStatus) *ScalingParametersStatus { 6538 s.Status = v 6539 return s 6540 } 6541 6542 // The endpoint to which service requests can be submitted. 6543 type ServiceEndpoint struct { 6544 _ struct{} `type:"structure"` 6545 6546 // The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com 6547 // or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com. 6548 Endpoint *string `type:"string"` 6549 } 6550 6551 // String returns the string representation. 6552 // 6553 // API parameter values that are decorated as "sensitive" in the API will not 6554 // be included in the string output. The member name will be present, but the 6555 // value will be replaced with "sensitive". 6556 func (s ServiceEndpoint) String() string { 6557 return awsutil.Prettify(s) 6558 } 6559 6560 // GoString returns the string representation. 6561 // 6562 // API parameter values that are decorated as "sensitive" in the API will not 6563 // be included in the string output. The member name will be present, but the 6564 // value will be replaced with "sensitive". 6565 func (s ServiceEndpoint) GoString() string { 6566 return s.String() 6567 } 6568 6569 // SetEndpoint sets the Endpoint field's value. 6570 func (s *ServiceEndpoint) SetEndpoint(v string) *ServiceEndpoint { 6571 s.Endpoint = &v 6572 return s 6573 } 6574 6575 // Configuration information for a search suggester. Each suggester has a unique 6576 // name and specifies the text field you want to use for suggestions. The following 6577 // options can be configured for a suggester: FuzzyMatching, SortExpression. 6578 type Suggester struct { 6579 _ struct{} `type:"structure"` 6580 6581 // Options for a search suggester. 6582 // 6583 // DocumentSuggesterOptions is a required field 6584 DocumentSuggesterOptions *DocumentSuggesterOptions `type:"structure" required:"true"` 6585 6586 // Names must begin with a letter and can contain the following characters: 6587 // a-z (lowercase), 0-9, and _ (underscore). 6588 // 6589 // SuggesterName is a required field 6590 SuggesterName *string `min:"1" type:"string" required:"true"` 6591 } 6592 6593 // String returns the string representation. 6594 // 6595 // API parameter values that are decorated as "sensitive" in the API will not 6596 // be included in the string output. The member name will be present, but the 6597 // value will be replaced with "sensitive". 6598 func (s Suggester) String() string { 6599 return awsutil.Prettify(s) 6600 } 6601 6602 // GoString returns the string representation. 6603 // 6604 // API parameter values that are decorated as "sensitive" in the API will not 6605 // be included in the string output. The member name will be present, but the 6606 // value will be replaced with "sensitive". 6607 func (s Suggester) GoString() string { 6608 return s.String() 6609 } 6610 6611 // Validate inspects the fields of the type to determine if they are valid. 6612 func (s *Suggester) Validate() error { 6613 invalidParams := request.ErrInvalidParams{Context: "Suggester"} 6614 if s.DocumentSuggesterOptions == nil { 6615 invalidParams.Add(request.NewErrParamRequired("DocumentSuggesterOptions")) 6616 } 6617 if s.SuggesterName == nil { 6618 invalidParams.Add(request.NewErrParamRequired("SuggesterName")) 6619 } 6620 if s.SuggesterName != nil && len(*s.SuggesterName) < 1 { 6621 invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1)) 6622 } 6623 if s.DocumentSuggesterOptions != nil { 6624 if err := s.DocumentSuggesterOptions.Validate(); err != nil { 6625 invalidParams.AddNested("DocumentSuggesterOptions", err.(request.ErrInvalidParams)) 6626 } 6627 } 6628 6629 if invalidParams.Len() > 0 { 6630 return invalidParams 6631 } 6632 return nil 6633 } 6634 6635 // SetDocumentSuggesterOptions sets the DocumentSuggesterOptions field's value. 6636 func (s *Suggester) SetDocumentSuggesterOptions(v *DocumentSuggesterOptions) *Suggester { 6637 s.DocumentSuggesterOptions = v 6638 return s 6639 } 6640 6641 // SetSuggesterName sets the SuggesterName field's value. 6642 func (s *Suggester) SetSuggesterName(v string) *Suggester { 6643 s.SuggesterName = &v 6644 return s 6645 } 6646 6647 // The value of a Suggester and its current status. 6648 type SuggesterStatus struct { 6649 _ struct{} `type:"structure"` 6650 6651 // Configuration information for a search suggester. Each suggester has a unique 6652 // name and specifies the text field you want to use for suggestions. The following 6653 // options can be configured for a suggester: FuzzyMatching, SortExpression. 6654 // 6655 // Options is a required field 6656 Options *Suggester `type:"structure" required:"true"` 6657 6658 // The status of domain configuration option. 6659 // 6660 // Status is a required field 6661 Status *OptionStatus `type:"structure" required:"true"` 6662 } 6663 6664 // String returns the string representation. 6665 // 6666 // API parameter values that are decorated as "sensitive" in the API will not 6667 // be included in the string output. The member name will be present, but the 6668 // value will be replaced with "sensitive". 6669 func (s SuggesterStatus) String() string { 6670 return awsutil.Prettify(s) 6671 } 6672 6673 // GoString returns the string representation. 6674 // 6675 // API parameter values that are decorated as "sensitive" in the API will not 6676 // be included in the string output. The member name will be present, but the 6677 // value will be replaced with "sensitive". 6678 func (s SuggesterStatus) GoString() string { 6679 return s.String() 6680 } 6681 6682 // SetOptions sets the Options field's value. 6683 func (s *SuggesterStatus) SetOptions(v *Suggester) *SuggesterStatus { 6684 s.Options = v 6685 return s 6686 } 6687 6688 // SetStatus sets the Status field's value. 6689 func (s *SuggesterStatus) SetStatus(v *OptionStatus) *SuggesterStatus { 6690 s.Status = v 6691 return s 6692 } 6693 6694 // Options for a field that contains an array of text strings. Present if IndexFieldType 6695 // specifies the field is of type text-array. A text-array field is always searchable. 6696 // All options are enabled by default. 6697 type TextArrayOptions struct { 6698 _ struct{} `type:"structure"` 6699 6700 // The name of an analysis scheme for a text-array field. 6701 AnalysisScheme *string `type:"string"` 6702 6703 // A value to use for the field if the field isn't specified for a document. 6704 DefaultValue *string `type:"string"` 6705 6706 // Whether highlights can be returned for the field. 6707 HighlightEnabled *bool `type:"boolean"` 6708 6709 // Whether the contents of the field can be returned in the search results. 6710 ReturnEnabled *bool `type:"boolean"` 6711 6712 // A list of source fields to map to the field. 6713 SourceFields *string `type:"string"` 6714 } 6715 6716 // String returns the string representation. 6717 // 6718 // API parameter values that are decorated as "sensitive" in the API will not 6719 // be included in the string output. The member name will be present, but the 6720 // value will be replaced with "sensitive". 6721 func (s TextArrayOptions) String() string { 6722 return awsutil.Prettify(s) 6723 } 6724 6725 // GoString returns the string representation. 6726 // 6727 // API parameter values that are decorated as "sensitive" in the API will not 6728 // be included in the string output. The member name will be present, but the 6729 // value will be replaced with "sensitive". 6730 func (s TextArrayOptions) GoString() string { 6731 return s.String() 6732 } 6733 6734 // SetAnalysisScheme sets the AnalysisScheme field's value. 6735 func (s *TextArrayOptions) SetAnalysisScheme(v string) *TextArrayOptions { 6736 s.AnalysisScheme = &v 6737 return s 6738 } 6739 6740 // SetDefaultValue sets the DefaultValue field's value. 6741 func (s *TextArrayOptions) SetDefaultValue(v string) *TextArrayOptions { 6742 s.DefaultValue = &v 6743 return s 6744 } 6745 6746 // SetHighlightEnabled sets the HighlightEnabled field's value. 6747 func (s *TextArrayOptions) SetHighlightEnabled(v bool) *TextArrayOptions { 6748 s.HighlightEnabled = &v 6749 return s 6750 } 6751 6752 // SetReturnEnabled sets the ReturnEnabled field's value. 6753 func (s *TextArrayOptions) SetReturnEnabled(v bool) *TextArrayOptions { 6754 s.ReturnEnabled = &v 6755 return s 6756 } 6757 6758 // SetSourceFields sets the SourceFields field's value. 6759 func (s *TextArrayOptions) SetSourceFields(v string) *TextArrayOptions { 6760 s.SourceFields = &v 6761 return s 6762 } 6763 6764 // Options for text field. Present if IndexFieldType specifies the field is 6765 // of type text. A text field is always searchable. All options are enabled 6766 // by default. 6767 type TextOptions struct { 6768 _ struct{} `type:"structure"` 6769 6770 // The name of an analysis scheme for a text field. 6771 AnalysisScheme *string `type:"string"` 6772 6773 // A value to use for the field if the field isn't specified for a document. 6774 DefaultValue *string `type:"string"` 6775 6776 // Whether highlights can be returned for the field. 6777 HighlightEnabled *bool `type:"boolean"` 6778 6779 // Whether the contents of the field can be returned in the search results. 6780 ReturnEnabled *bool `type:"boolean"` 6781 6782 // Whether the field can be used to sort the search results. 6783 SortEnabled *bool `type:"boolean"` 6784 6785 // A string that represents the name of an index field. CloudSearch supports 6786 // regular index fields as well as dynamic fields. A dynamic field's name defines 6787 // a pattern that begins or ends with a wildcard. Any document fields that don't 6788 // map to a regular index field but do match a dynamic field's pattern are configured 6789 // with the dynamic field's indexing options. 6790 // 6791 // Regular field names begin with a letter and can contain the following characters: 6792 // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin 6793 // or end with a wildcard (*). The wildcard can also be the only character in 6794 // a dynamic field name. Multiple wildcards, and wildcards embedded within a 6795 // string are not supported. 6796 // 6797 // The name score is reserved and cannot be used as a field name. To reference 6798 // a document's ID, you can use the name _id. 6799 SourceField *string `min:"1" type:"string"` 6800 } 6801 6802 // String returns the string representation. 6803 // 6804 // API parameter values that are decorated as "sensitive" in the API will not 6805 // be included in the string output. The member name will be present, but the 6806 // value will be replaced with "sensitive". 6807 func (s TextOptions) String() string { 6808 return awsutil.Prettify(s) 6809 } 6810 6811 // GoString returns the string representation. 6812 // 6813 // API parameter values that are decorated as "sensitive" in the API will not 6814 // be included in the string output. The member name will be present, but the 6815 // value will be replaced with "sensitive". 6816 func (s TextOptions) GoString() string { 6817 return s.String() 6818 } 6819 6820 // Validate inspects the fields of the type to determine if they are valid. 6821 func (s *TextOptions) Validate() error { 6822 invalidParams := request.ErrInvalidParams{Context: "TextOptions"} 6823 if s.SourceField != nil && len(*s.SourceField) < 1 { 6824 invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) 6825 } 6826 6827 if invalidParams.Len() > 0 { 6828 return invalidParams 6829 } 6830 return nil 6831 } 6832 6833 // SetAnalysisScheme sets the AnalysisScheme field's value. 6834 func (s *TextOptions) SetAnalysisScheme(v string) *TextOptions { 6835 s.AnalysisScheme = &v 6836 return s 6837 } 6838 6839 // SetDefaultValue sets the DefaultValue field's value. 6840 func (s *TextOptions) SetDefaultValue(v string) *TextOptions { 6841 s.DefaultValue = &v 6842 return s 6843 } 6844 6845 // SetHighlightEnabled sets the HighlightEnabled field's value. 6846 func (s *TextOptions) SetHighlightEnabled(v bool) *TextOptions { 6847 s.HighlightEnabled = &v 6848 return s 6849 } 6850 6851 // SetReturnEnabled sets the ReturnEnabled field's value. 6852 func (s *TextOptions) SetReturnEnabled(v bool) *TextOptions { 6853 s.ReturnEnabled = &v 6854 return s 6855 } 6856 6857 // SetSortEnabled sets the SortEnabled field's value. 6858 func (s *TextOptions) SetSortEnabled(v bool) *TextOptions { 6859 s.SortEnabled = &v 6860 return s 6861 } 6862 6863 // SetSourceField sets the SourceField field's value. 6864 func (s *TextOptions) SetSourceField(v string) *TextOptions { 6865 s.SourceField = &v 6866 return s 6867 } 6868 6869 // Container for the parameters to the UpdateAvailabilityOptions operation. 6870 // Specifies the name of the domain you want to update and the Multi-AZ availability 6871 // option. 6872 type UpdateAvailabilityOptionsInput struct { 6873 _ struct{} `type:"structure"` 6874 6875 // A string that represents the name of a domain. Domain names are unique across 6876 // the domains owned by an account within an AWS region. Domain names start 6877 // with a letter or number and can contain the following characters: a-z (lowercase), 6878 // 0-9, and - (hyphen). 6879 // 6880 // DomainName is a required field 6881 DomainName *string `min:"3" type:"string" required:"true"` 6882 6883 // You expand an existing search domain to a second Availability Zone by setting 6884 // the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option 6885 // to downgrade the domain to a single Availability Zone by setting the Multi-AZ 6886 // option to false. 6887 // 6888 // MultiAZ is a required field 6889 MultiAZ *bool `type:"boolean" required:"true"` 6890 } 6891 6892 // String returns the string representation. 6893 // 6894 // API parameter values that are decorated as "sensitive" in the API will not 6895 // be included in the string output. The member name will be present, but the 6896 // value will be replaced with "sensitive". 6897 func (s UpdateAvailabilityOptionsInput) String() string { 6898 return awsutil.Prettify(s) 6899 } 6900 6901 // GoString returns the string representation. 6902 // 6903 // API parameter values that are decorated as "sensitive" in the API will not 6904 // be included in the string output. The member name will be present, but the 6905 // value will be replaced with "sensitive". 6906 func (s UpdateAvailabilityOptionsInput) GoString() string { 6907 return s.String() 6908 } 6909 6910 // Validate inspects the fields of the type to determine if they are valid. 6911 func (s *UpdateAvailabilityOptionsInput) Validate() error { 6912 invalidParams := request.ErrInvalidParams{Context: "UpdateAvailabilityOptionsInput"} 6913 if s.DomainName == nil { 6914 invalidParams.Add(request.NewErrParamRequired("DomainName")) 6915 } 6916 if s.DomainName != nil && len(*s.DomainName) < 3 { 6917 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 6918 } 6919 if s.MultiAZ == nil { 6920 invalidParams.Add(request.NewErrParamRequired("MultiAZ")) 6921 } 6922 6923 if invalidParams.Len() > 0 { 6924 return invalidParams 6925 } 6926 return nil 6927 } 6928 6929 // SetDomainName sets the DomainName field's value. 6930 func (s *UpdateAvailabilityOptionsInput) SetDomainName(v string) *UpdateAvailabilityOptionsInput { 6931 s.DomainName = &v 6932 return s 6933 } 6934 6935 // SetMultiAZ sets the MultiAZ field's value. 6936 func (s *UpdateAvailabilityOptionsInput) SetMultiAZ(v bool) *UpdateAvailabilityOptionsInput { 6937 s.MultiAZ = &v 6938 return s 6939 } 6940 6941 // The result of a UpdateAvailabilityOptions request. Contains the status of 6942 // the domain's availability options. 6943 type UpdateAvailabilityOptionsOutput struct { 6944 _ struct{} `type:"structure"` 6945 6946 // The newly-configured availability options. Indicates whether Multi-AZ is 6947 // enabled for the domain. 6948 AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"` 6949 } 6950 6951 // String returns the string representation. 6952 // 6953 // API parameter values that are decorated as "sensitive" in the API will not 6954 // be included in the string output. The member name will be present, but the 6955 // value will be replaced with "sensitive". 6956 func (s UpdateAvailabilityOptionsOutput) String() string { 6957 return awsutil.Prettify(s) 6958 } 6959 6960 // GoString returns the string representation. 6961 // 6962 // API parameter values that are decorated as "sensitive" in the API will not 6963 // be included in the string output. The member name will be present, but the 6964 // value will be replaced with "sensitive". 6965 func (s UpdateAvailabilityOptionsOutput) GoString() string { 6966 return s.String() 6967 } 6968 6969 // SetAvailabilityOptions sets the AvailabilityOptions field's value. 6970 func (s *UpdateAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *UpdateAvailabilityOptionsOutput { 6971 s.AvailabilityOptions = v 6972 return s 6973 } 6974 6975 // Container for the parameters to the UpdateDomainEndpointOptions operation. 6976 // Specifies the name of the domain you want to update and the domain endpoint 6977 // options. 6978 type UpdateDomainEndpointOptionsInput struct { 6979 _ struct{} `type:"structure"` 6980 6981 // Whether to require that all requests to the domain arrive over HTTPS. We 6982 // recommend Policy-Min-TLS-1-2-2019-07 for TLSSecurityPolicy. For compatibility 6983 // with older clients, the default is Policy-Min-TLS-1-0-2019-07. 6984 // 6985 // DomainEndpointOptions is a required field 6986 DomainEndpointOptions *DomainEndpointOptions `type:"structure" required:"true"` 6987 6988 // A string that represents the name of a domain. 6989 // 6990 // DomainName is a required field 6991 DomainName *string `min:"3" type:"string" required:"true"` 6992 } 6993 6994 // String returns the string representation. 6995 // 6996 // API parameter values that are decorated as "sensitive" in the API will not 6997 // be included in the string output. The member name will be present, but the 6998 // value will be replaced with "sensitive". 6999 func (s UpdateDomainEndpointOptionsInput) String() string { 7000 return awsutil.Prettify(s) 7001 } 7002 7003 // GoString returns the string representation. 7004 // 7005 // API parameter values that are decorated as "sensitive" in the API will not 7006 // be included in the string output. The member name will be present, but the 7007 // value will be replaced with "sensitive". 7008 func (s UpdateDomainEndpointOptionsInput) GoString() string { 7009 return s.String() 7010 } 7011 7012 // Validate inspects the fields of the type to determine if they are valid. 7013 func (s *UpdateDomainEndpointOptionsInput) Validate() error { 7014 invalidParams := request.ErrInvalidParams{Context: "UpdateDomainEndpointOptionsInput"} 7015 if s.DomainEndpointOptions == nil { 7016 invalidParams.Add(request.NewErrParamRequired("DomainEndpointOptions")) 7017 } 7018 if s.DomainName == nil { 7019 invalidParams.Add(request.NewErrParamRequired("DomainName")) 7020 } 7021 if s.DomainName != nil && len(*s.DomainName) < 3 { 7022 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 7023 } 7024 7025 if invalidParams.Len() > 0 { 7026 return invalidParams 7027 } 7028 return nil 7029 } 7030 7031 // SetDomainEndpointOptions sets the DomainEndpointOptions field's value. 7032 func (s *UpdateDomainEndpointOptionsInput) SetDomainEndpointOptions(v *DomainEndpointOptions) *UpdateDomainEndpointOptionsInput { 7033 s.DomainEndpointOptions = v 7034 return s 7035 } 7036 7037 // SetDomainName sets the DomainName field's value. 7038 func (s *UpdateDomainEndpointOptionsInput) SetDomainName(v string) *UpdateDomainEndpointOptionsInput { 7039 s.DomainName = &v 7040 return s 7041 } 7042 7043 // The result of a UpdateDomainEndpointOptions request. Contains the configuration 7044 // and status of the domain's endpoint options. 7045 type UpdateDomainEndpointOptionsOutput struct { 7046 _ struct{} `type:"structure"` 7047 7048 // The newly-configured domain endpoint options. 7049 DomainEndpointOptions *DomainEndpointOptionsStatus `type:"structure"` 7050 } 7051 7052 // String returns the string representation. 7053 // 7054 // API parameter values that are decorated as "sensitive" in the API will not 7055 // be included in the string output. The member name will be present, but the 7056 // value will be replaced with "sensitive". 7057 func (s UpdateDomainEndpointOptionsOutput) String() string { 7058 return awsutil.Prettify(s) 7059 } 7060 7061 // GoString returns the string representation. 7062 // 7063 // API parameter values that are decorated as "sensitive" in the API will not 7064 // be included in the string output. The member name will be present, but the 7065 // value will be replaced with "sensitive". 7066 func (s UpdateDomainEndpointOptionsOutput) GoString() string { 7067 return s.String() 7068 } 7069 7070 // SetDomainEndpointOptions sets the DomainEndpointOptions field's value. 7071 func (s *UpdateDomainEndpointOptionsOutput) SetDomainEndpointOptions(v *DomainEndpointOptionsStatus) *UpdateDomainEndpointOptionsOutput { 7072 s.DomainEndpointOptions = v 7073 return s 7074 } 7075 7076 // Container for the parameters to the UpdateScalingParameters operation. Specifies 7077 // the name of the domain you want to update and the scaling parameters you 7078 // want to configure. 7079 type UpdateScalingParametersInput struct { 7080 _ struct{} `type:"structure"` 7081 7082 // A string that represents the name of a domain. Domain names are unique across 7083 // the domains owned by an account within an AWS region. Domain names start 7084 // with a letter or number and can contain the following characters: a-z (lowercase), 7085 // 0-9, and - (hyphen). 7086 // 7087 // DomainName is a required field 7088 DomainName *string `min:"3" type:"string" required:"true"` 7089 7090 // The desired instance type and desired number of replicas of each index partition. 7091 // 7092 // ScalingParameters is a required field 7093 ScalingParameters *ScalingParameters `type:"structure" required:"true"` 7094 } 7095 7096 // String returns the string representation. 7097 // 7098 // API parameter values that are decorated as "sensitive" in the API will not 7099 // be included in the string output. The member name will be present, but the 7100 // value will be replaced with "sensitive". 7101 func (s UpdateScalingParametersInput) String() string { 7102 return awsutil.Prettify(s) 7103 } 7104 7105 // GoString returns the string representation. 7106 // 7107 // API parameter values that are decorated as "sensitive" in the API will not 7108 // be included in the string output. The member name will be present, but the 7109 // value will be replaced with "sensitive". 7110 func (s UpdateScalingParametersInput) GoString() string { 7111 return s.String() 7112 } 7113 7114 // Validate inspects the fields of the type to determine if they are valid. 7115 func (s *UpdateScalingParametersInput) Validate() error { 7116 invalidParams := request.ErrInvalidParams{Context: "UpdateScalingParametersInput"} 7117 if s.DomainName == nil { 7118 invalidParams.Add(request.NewErrParamRequired("DomainName")) 7119 } 7120 if s.DomainName != nil && len(*s.DomainName) < 3 { 7121 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 7122 } 7123 if s.ScalingParameters == nil { 7124 invalidParams.Add(request.NewErrParamRequired("ScalingParameters")) 7125 } 7126 7127 if invalidParams.Len() > 0 { 7128 return invalidParams 7129 } 7130 return nil 7131 } 7132 7133 // SetDomainName sets the DomainName field's value. 7134 func (s *UpdateScalingParametersInput) SetDomainName(v string) *UpdateScalingParametersInput { 7135 s.DomainName = &v 7136 return s 7137 } 7138 7139 // SetScalingParameters sets the ScalingParameters field's value. 7140 func (s *UpdateScalingParametersInput) SetScalingParameters(v *ScalingParameters) *UpdateScalingParametersInput { 7141 s.ScalingParameters = v 7142 return s 7143 } 7144 7145 // The result of a UpdateScalingParameters request. Contains the status of the 7146 // newly-configured scaling parameters. 7147 type UpdateScalingParametersOutput struct { 7148 _ struct{} `type:"structure"` 7149 7150 // The status and configuration of a search domain's scaling parameters. 7151 // 7152 // ScalingParameters is a required field 7153 ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"` 7154 } 7155 7156 // String returns the string representation. 7157 // 7158 // API parameter values that are decorated as "sensitive" in the API will not 7159 // be included in the string output. The member name will be present, but the 7160 // value will be replaced with "sensitive". 7161 func (s UpdateScalingParametersOutput) String() string { 7162 return awsutil.Prettify(s) 7163 } 7164 7165 // GoString returns the string representation. 7166 // 7167 // API parameter values that are decorated as "sensitive" in the API will not 7168 // be included in the string output. The member name will be present, but the 7169 // value will be replaced with "sensitive". 7170 func (s UpdateScalingParametersOutput) GoString() string { 7171 return s.String() 7172 } 7173 7174 // SetScalingParameters sets the ScalingParameters field's value. 7175 func (s *UpdateScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *UpdateScalingParametersOutput { 7176 s.ScalingParameters = v 7177 return s 7178 } 7179 7180 // Container for the parameters to the UpdateServiceAccessPolicies operation. 7181 // Specifies the name of the domain you want to update and the access rules 7182 // you want to configure. 7183 type UpdateServiceAccessPoliciesInput struct { 7184 _ struct{} `type:"structure"` 7185 7186 // The access rules you want to configure. These rules replace any existing 7187 // rules. 7188 // 7189 // AccessPolicies is a required field 7190 AccessPolicies *string `type:"string" required:"true"` 7191 7192 // A string that represents the name of a domain. Domain names are unique across 7193 // the domains owned by an account within an AWS region. Domain names start 7194 // with a letter or number and can contain the following characters: a-z (lowercase), 7195 // 0-9, and - (hyphen). 7196 // 7197 // DomainName is a required field 7198 DomainName *string `min:"3" type:"string" required:"true"` 7199 } 7200 7201 // String returns the string representation. 7202 // 7203 // API parameter values that are decorated as "sensitive" in the API will not 7204 // be included in the string output. The member name will be present, but the 7205 // value will be replaced with "sensitive". 7206 func (s UpdateServiceAccessPoliciesInput) String() string { 7207 return awsutil.Prettify(s) 7208 } 7209 7210 // GoString returns the string representation. 7211 // 7212 // API parameter values that are decorated as "sensitive" in the API will not 7213 // be included in the string output. The member name will be present, but the 7214 // value will be replaced with "sensitive". 7215 func (s UpdateServiceAccessPoliciesInput) GoString() string { 7216 return s.String() 7217 } 7218 7219 // Validate inspects the fields of the type to determine if they are valid. 7220 func (s *UpdateServiceAccessPoliciesInput) Validate() error { 7221 invalidParams := request.ErrInvalidParams{Context: "UpdateServiceAccessPoliciesInput"} 7222 if s.AccessPolicies == nil { 7223 invalidParams.Add(request.NewErrParamRequired("AccessPolicies")) 7224 } 7225 if s.DomainName == nil { 7226 invalidParams.Add(request.NewErrParamRequired("DomainName")) 7227 } 7228 if s.DomainName != nil && len(*s.DomainName) < 3 { 7229 invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) 7230 } 7231 7232 if invalidParams.Len() > 0 { 7233 return invalidParams 7234 } 7235 return nil 7236 } 7237 7238 // SetAccessPolicies sets the AccessPolicies field's value. 7239 func (s *UpdateServiceAccessPoliciesInput) SetAccessPolicies(v string) *UpdateServiceAccessPoliciesInput { 7240 s.AccessPolicies = &v 7241 return s 7242 } 7243 7244 // SetDomainName sets the DomainName field's value. 7245 func (s *UpdateServiceAccessPoliciesInput) SetDomainName(v string) *UpdateServiceAccessPoliciesInput { 7246 s.DomainName = &v 7247 return s 7248 } 7249 7250 // The result of an UpdateServiceAccessPolicies request. Contains the new access 7251 // policies. 7252 type UpdateServiceAccessPoliciesOutput struct { 7253 _ struct{} `type:"structure"` 7254 7255 // The access rules configured for the domain. 7256 // 7257 // AccessPolicies is a required field 7258 AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"` 7259 } 7260 7261 // String returns the string representation. 7262 // 7263 // API parameter values that are decorated as "sensitive" in the API will not 7264 // be included in the string output. The member name will be present, but the 7265 // value will be replaced with "sensitive". 7266 func (s UpdateServiceAccessPoliciesOutput) String() string { 7267 return awsutil.Prettify(s) 7268 } 7269 7270 // GoString returns the string representation. 7271 // 7272 // API parameter values that are decorated as "sensitive" in the API will not 7273 // be included in the string output. The member name will be present, but the 7274 // value will be replaced with "sensitive". 7275 func (s UpdateServiceAccessPoliciesOutput) GoString() string { 7276 return s.String() 7277 } 7278 7279 // SetAccessPolicies sets the AccessPolicies field's value. 7280 func (s *UpdateServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *UpdateServiceAccessPoliciesOutput { 7281 s.AccessPolicies = v 7282 return s 7283 } 7284 7285 const ( 7286 // AlgorithmicStemmingNone is a AlgorithmicStemming enum value 7287 AlgorithmicStemmingNone = "none" 7288 7289 // AlgorithmicStemmingMinimal is a AlgorithmicStemming enum value 7290 AlgorithmicStemmingMinimal = "minimal" 7291 7292 // AlgorithmicStemmingLight is a AlgorithmicStemming enum value 7293 AlgorithmicStemmingLight = "light" 7294 7295 // AlgorithmicStemmingFull is a AlgorithmicStemming enum value 7296 AlgorithmicStemmingFull = "full" 7297 ) 7298 7299 // AlgorithmicStemming_Values returns all elements of the AlgorithmicStemming enum 7300 func AlgorithmicStemming_Values() []string { 7301 return []string{ 7302 AlgorithmicStemmingNone, 7303 AlgorithmicStemmingMinimal, 7304 AlgorithmicStemmingLight, 7305 AlgorithmicStemmingFull, 7306 } 7307 } 7308 7309 // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul 7310 // for multiple languages. 7311 const ( 7312 // AnalysisSchemeLanguageAr is a AnalysisSchemeLanguage enum value 7313 AnalysisSchemeLanguageAr = "ar" 7314 7315 // AnalysisSchemeLanguageBg is a AnalysisSchemeLanguage enum value 7316 AnalysisSchemeLanguageBg = "bg" 7317 7318 // AnalysisSchemeLanguageCa is a AnalysisSchemeLanguage enum value 7319 AnalysisSchemeLanguageCa = "ca" 7320 7321 // AnalysisSchemeLanguageCs is a AnalysisSchemeLanguage enum value 7322 AnalysisSchemeLanguageCs = "cs" 7323 7324 // AnalysisSchemeLanguageDa is a AnalysisSchemeLanguage enum value 7325 AnalysisSchemeLanguageDa = "da" 7326 7327 // AnalysisSchemeLanguageDe is a AnalysisSchemeLanguage enum value 7328 AnalysisSchemeLanguageDe = "de" 7329 7330 // AnalysisSchemeLanguageEl is a AnalysisSchemeLanguage enum value 7331 AnalysisSchemeLanguageEl = "el" 7332 7333 // AnalysisSchemeLanguageEn is a AnalysisSchemeLanguage enum value 7334 AnalysisSchemeLanguageEn = "en" 7335 7336 // AnalysisSchemeLanguageEs is a AnalysisSchemeLanguage enum value 7337 AnalysisSchemeLanguageEs = "es" 7338 7339 // AnalysisSchemeLanguageEu is a AnalysisSchemeLanguage enum value 7340 AnalysisSchemeLanguageEu = "eu" 7341 7342 // AnalysisSchemeLanguageFa is a AnalysisSchemeLanguage enum value 7343 AnalysisSchemeLanguageFa = "fa" 7344 7345 // AnalysisSchemeLanguageFi is a AnalysisSchemeLanguage enum value 7346 AnalysisSchemeLanguageFi = "fi" 7347 7348 // AnalysisSchemeLanguageFr is a AnalysisSchemeLanguage enum value 7349 AnalysisSchemeLanguageFr = "fr" 7350 7351 // AnalysisSchemeLanguageGa is a AnalysisSchemeLanguage enum value 7352 AnalysisSchemeLanguageGa = "ga" 7353 7354 // AnalysisSchemeLanguageGl is a AnalysisSchemeLanguage enum value 7355 AnalysisSchemeLanguageGl = "gl" 7356 7357 // AnalysisSchemeLanguageHe is a AnalysisSchemeLanguage enum value 7358 AnalysisSchemeLanguageHe = "he" 7359 7360 // AnalysisSchemeLanguageHi is a AnalysisSchemeLanguage enum value 7361 AnalysisSchemeLanguageHi = "hi" 7362 7363 // AnalysisSchemeLanguageHu is a AnalysisSchemeLanguage enum value 7364 AnalysisSchemeLanguageHu = "hu" 7365 7366 // AnalysisSchemeLanguageHy is a AnalysisSchemeLanguage enum value 7367 AnalysisSchemeLanguageHy = "hy" 7368 7369 // AnalysisSchemeLanguageId is a AnalysisSchemeLanguage enum value 7370 AnalysisSchemeLanguageId = "id" 7371 7372 // AnalysisSchemeLanguageIt is a AnalysisSchemeLanguage enum value 7373 AnalysisSchemeLanguageIt = "it" 7374 7375 // AnalysisSchemeLanguageJa is a AnalysisSchemeLanguage enum value 7376 AnalysisSchemeLanguageJa = "ja" 7377 7378 // AnalysisSchemeLanguageKo is a AnalysisSchemeLanguage enum value 7379 AnalysisSchemeLanguageKo = "ko" 7380 7381 // AnalysisSchemeLanguageLv is a AnalysisSchemeLanguage enum value 7382 AnalysisSchemeLanguageLv = "lv" 7383 7384 // AnalysisSchemeLanguageMul is a AnalysisSchemeLanguage enum value 7385 AnalysisSchemeLanguageMul = "mul" 7386 7387 // AnalysisSchemeLanguageNl is a AnalysisSchemeLanguage enum value 7388 AnalysisSchemeLanguageNl = "nl" 7389 7390 // AnalysisSchemeLanguageNo is a AnalysisSchemeLanguage enum value 7391 AnalysisSchemeLanguageNo = "no" 7392 7393 // AnalysisSchemeLanguagePt is a AnalysisSchemeLanguage enum value 7394 AnalysisSchemeLanguagePt = "pt" 7395 7396 // AnalysisSchemeLanguageRo is a AnalysisSchemeLanguage enum value 7397 AnalysisSchemeLanguageRo = "ro" 7398 7399 // AnalysisSchemeLanguageRu is a AnalysisSchemeLanguage enum value 7400 AnalysisSchemeLanguageRu = "ru" 7401 7402 // AnalysisSchemeLanguageSv is a AnalysisSchemeLanguage enum value 7403 AnalysisSchemeLanguageSv = "sv" 7404 7405 // AnalysisSchemeLanguageTh is a AnalysisSchemeLanguage enum value 7406 AnalysisSchemeLanguageTh = "th" 7407 7408 // AnalysisSchemeLanguageTr is a AnalysisSchemeLanguage enum value 7409 AnalysisSchemeLanguageTr = "tr" 7410 7411 // AnalysisSchemeLanguageZhHans is a AnalysisSchemeLanguage enum value 7412 AnalysisSchemeLanguageZhHans = "zh-Hans" 7413 7414 // AnalysisSchemeLanguageZhHant is a AnalysisSchemeLanguage enum value 7415 AnalysisSchemeLanguageZhHant = "zh-Hant" 7416 ) 7417 7418 // AnalysisSchemeLanguage_Values returns all elements of the AnalysisSchemeLanguage enum 7419 func AnalysisSchemeLanguage_Values() []string { 7420 return []string{ 7421 AnalysisSchemeLanguageAr, 7422 AnalysisSchemeLanguageBg, 7423 AnalysisSchemeLanguageCa, 7424 AnalysisSchemeLanguageCs, 7425 AnalysisSchemeLanguageDa, 7426 AnalysisSchemeLanguageDe, 7427 AnalysisSchemeLanguageEl, 7428 AnalysisSchemeLanguageEn, 7429 AnalysisSchemeLanguageEs, 7430 AnalysisSchemeLanguageEu, 7431 AnalysisSchemeLanguageFa, 7432 AnalysisSchemeLanguageFi, 7433 AnalysisSchemeLanguageFr, 7434 AnalysisSchemeLanguageGa, 7435 AnalysisSchemeLanguageGl, 7436 AnalysisSchemeLanguageHe, 7437 AnalysisSchemeLanguageHi, 7438 AnalysisSchemeLanguageHu, 7439 AnalysisSchemeLanguageHy, 7440 AnalysisSchemeLanguageId, 7441 AnalysisSchemeLanguageIt, 7442 AnalysisSchemeLanguageJa, 7443 AnalysisSchemeLanguageKo, 7444 AnalysisSchemeLanguageLv, 7445 AnalysisSchemeLanguageMul, 7446 AnalysisSchemeLanguageNl, 7447 AnalysisSchemeLanguageNo, 7448 AnalysisSchemeLanguagePt, 7449 AnalysisSchemeLanguageRo, 7450 AnalysisSchemeLanguageRu, 7451 AnalysisSchemeLanguageSv, 7452 AnalysisSchemeLanguageTh, 7453 AnalysisSchemeLanguageTr, 7454 AnalysisSchemeLanguageZhHans, 7455 AnalysisSchemeLanguageZhHant, 7456 } 7457 } 7458 7459 // The type of field. The valid options for a field depend on the field type. 7460 // For more information about the supported field types, see Configuring Index 7461 // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html) 7462 // in the Amazon CloudSearch Developer Guide. 7463 const ( 7464 // IndexFieldTypeInt is a IndexFieldType enum value 7465 IndexFieldTypeInt = "int" 7466 7467 // IndexFieldTypeDouble is a IndexFieldType enum value 7468 IndexFieldTypeDouble = "double" 7469 7470 // IndexFieldTypeLiteral is a IndexFieldType enum value 7471 IndexFieldTypeLiteral = "literal" 7472 7473 // IndexFieldTypeText is a IndexFieldType enum value 7474 IndexFieldTypeText = "text" 7475 7476 // IndexFieldTypeDate is a IndexFieldType enum value 7477 IndexFieldTypeDate = "date" 7478 7479 // IndexFieldTypeLatlon is a IndexFieldType enum value 7480 IndexFieldTypeLatlon = "latlon" 7481 7482 // IndexFieldTypeIntArray is a IndexFieldType enum value 7483 IndexFieldTypeIntArray = "int-array" 7484 7485 // IndexFieldTypeDoubleArray is a IndexFieldType enum value 7486 IndexFieldTypeDoubleArray = "double-array" 7487 7488 // IndexFieldTypeLiteralArray is a IndexFieldType enum value 7489 IndexFieldTypeLiteralArray = "literal-array" 7490 7491 // IndexFieldTypeTextArray is a IndexFieldType enum value 7492 IndexFieldTypeTextArray = "text-array" 7493 7494 // IndexFieldTypeDateArray is a IndexFieldType enum value 7495 IndexFieldTypeDateArray = "date-array" 7496 ) 7497 7498 // IndexFieldType_Values returns all elements of the IndexFieldType enum 7499 func IndexFieldType_Values() []string { 7500 return []string{ 7501 IndexFieldTypeInt, 7502 IndexFieldTypeDouble, 7503 IndexFieldTypeLiteral, 7504 IndexFieldTypeText, 7505 IndexFieldTypeDate, 7506 IndexFieldTypeLatlon, 7507 IndexFieldTypeIntArray, 7508 IndexFieldTypeDoubleArray, 7509 IndexFieldTypeLiteralArray, 7510 IndexFieldTypeTextArray, 7511 IndexFieldTypeDateArray, 7512 } 7513 } 7514 7515 // The state of processing a change to an option. One of: 7516 // 7517 // * RequiresIndexDocuments: The option's latest value will not be deployed 7518 // until IndexDocuments has been called and indexing is complete. 7519 // 7520 // * Processing: The option's latest value is in the process of being activated. 7521 // 7522 // * Active: The option's latest value is fully deployed. 7523 // 7524 // * FailedToValidate: The option value is not compatible with the domain's 7525 // data and cannot be used to index the data. You must either modify the 7526 // option value or update or remove the incompatible documents. 7527 const ( 7528 // OptionStateRequiresIndexDocuments is a OptionState enum value 7529 OptionStateRequiresIndexDocuments = "RequiresIndexDocuments" 7530 7531 // OptionStateProcessing is a OptionState enum value 7532 OptionStateProcessing = "Processing" 7533 7534 // OptionStateActive is a OptionState enum value 7535 OptionStateActive = "Active" 7536 7537 // OptionStateFailedToValidate is a OptionState enum value 7538 OptionStateFailedToValidate = "FailedToValidate" 7539 ) 7540 7541 // OptionState_Values returns all elements of the OptionState enum 7542 func OptionState_Values() []string { 7543 return []string{ 7544 OptionStateRequiresIndexDocuments, 7545 OptionStateProcessing, 7546 OptionStateActive, 7547 OptionStateFailedToValidate, 7548 } 7549 } 7550 7551 // The instance type (such as search.m1.small) on which an index partition is 7552 // hosted. 7553 const ( 7554 // PartitionInstanceTypeSearchM1Small is a PartitionInstanceType enum value 7555 PartitionInstanceTypeSearchM1Small = "search.m1.small" 7556 7557 // PartitionInstanceTypeSearchM1Large is a PartitionInstanceType enum value 7558 PartitionInstanceTypeSearchM1Large = "search.m1.large" 7559 7560 // PartitionInstanceTypeSearchM2Xlarge is a PartitionInstanceType enum value 7561 PartitionInstanceTypeSearchM2Xlarge = "search.m2.xlarge" 7562 7563 // PartitionInstanceTypeSearchM22xlarge is a PartitionInstanceType enum value 7564 PartitionInstanceTypeSearchM22xlarge = "search.m2.2xlarge" 7565 7566 // PartitionInstanceTypeSearchM3Medium is a PartitionInstanceType enum value 7567 PartitionInstanceTypeSearchM3Medium = "search.m3.medium" 7568 7569 // PartitionInstanceTypeSearchM3Large is a PartitionInstanceType enum value 7570 PartitionInstanceTypeSearchM3Large = "search.m3.large" 7571 7572 // PartitionInstanceTypeSearchM3Xlarge is a PartitionInstanceType enum value 7573 PartitionInstanceTypeSearchM3Xlarge = "search.m3.xlarge" 7574 7575 // PartitionInstanceTypeSearchM32xlarge is a PartitionInstanceType enum value 7576 PartitionInstanceTypeSearchM32xlarge = "search.m3.2xlarge" 7577 7578 // PartitionInstanceTypeSearchSmall is a PartitionInstanceType enum value 7579 PartitionInstanceTypeSearchSmall = "search.small" 7580 7581 // PartitionInstanceTypeSearchMedium is a PartitionInstanceType enum value 7582 PartitionInstanceTypeSearchMedium = "search.medium" 7583 7584 // PartitionInstanceTypeSearchLarge is a PartitionInstanceType enum value 7585 PartitionInstanceTypeSearchLarge = "search.large" 7586 7587 // PartitionInstanceTypeSearchXlarge is a PartitionInstanceType enum value 7588 PartitionInstanceTypeSearchXlarge = "search.xlarge" 7589 7590 // PartitionInstanceTypeSearch2xlarge is a PartitionInstanceType enum value 7591 PartitionInstanceTypeSearch2xlarge = "search.2xlarge" 7592 7593 // PartitionInstanceTypeSearchPreviousgenerationSmall is a PartitionInstanceType enum value 7594 PartitionInstanceTypeSearchPreviousgenerationSmall = "search.previousgeneration.small" 7595 7596 // PartitionInstanceTypeSearchPreviousgenerationLarge is a PartitionInstanceType enum value 7597 PartitionInstanceTypeSearchPreviousgenerationLarge = "search.previousgeneration.large" 7598 7599 // PartitionInstanceTypeSearchPreviousgenerationXlarge is a PartitionInstanceType enum value 7600 PartitionInstanceTypeSearchPreviousgenerationXlarge = "search.previousgeneration.xlarge" 7601 7602 // PartitionInstanceTypeSearchPreviousgeneration2xlarge is a PartitionInstanceType enum value 7603 PartitionInstanceTypeSearchPreviousgeneration2xlarge = "search.previousgeneration.2xlarge" 7604 ) 7605 7606 // PartitionInstanceType_Values returns all elements of the PartitionInstanceType enum 7607 func PartitionInstanceType_Values() []string { 7608 return []string{ 7609 PartitionInstanceTypeSearchM1Small, 7610 PartitionInstanceTypeSearchM1Large, 7611 PartitionInstanceTypeSearchM2Xlarge, 7612 PartitionInstanceTypeSearchM22xlarge, 7613 PartitionInstanceTypeSearchM3Medium, 7614 PartitionInstanceTypeSearchM3Large, 7615 PartitionInstanceTypeSearchM3Xlarge, 7616 PartitionInstanceTypeSearchM32xlarge, 7617 PartitionInstanceTypeSearchSmall, 7618 PartitionInstanceTypeSearchMedium, 7619 PartitionInstanceTypeSearchLarge, 7620 PartitionInstanceTypeSearchXlarge, 7621 PartitionInstanceTypeSearch2xlarge, 7622 PartitionInstanceTypeSearchPreviousgenerationSmall, 7623 PartitionInstanceTypeSearchPreviousgenerationLarge, 7624 PartitionInstanceTypeSearchPreviousgenerationXlarge, 7625 PartitionInstanceTypeSearchPreviousgeneration2xlarge, 7626 } 7627 } 7628 7629 const ( 7630 // SuggesterFuzzyMatchingNone is a SuggesterFuzzyMatching enum value 7631 SuggesterFuzzyMatchingNone = "none" 7632 7633 // SuggesterFuzzyMatchingLow is a SuggesterFuzzyMatching enum value 7634 SuggesterFuzzyMatchingLow = "low" 7635 7636 // SuggesterFuzzyMatchingHigh is a SuggesterFuzzyMatching enum value 7637 SuggesterFuzzyMatchingHigh = "high" 7638 ) 7639 7640 // SuggesterFuzzyMatching_Values returns all elements of the SuggesterFuzzyMatching enum 7641 func SuggesterFuzzyMatching_Values() []string { 7642 return []string{ 7643 SuggesterFuzzyMatchingNone, 7644 SuggesterFuzzyMatchingLow, 7645 SuggesterFuzzyMatchingHigh, 7646 } 7647 } 7648 7649 // The minimum required TLS version. 7650 const ( 7651 // TLSSecurityPolicyPolicyMinTls10201907 is a TLSSecurityPolicy enum value 7652 TLSSecurityPolicyPolicyMinTls10201907 = "Policy-Min-TLS-1-0-2019-07" 7653 7654 // TLSSecurityPolicyPolicyMinTls12201907 is a TLSSecurityPolicy enum value 7655 TLSSecurityPolicyPolicyMinTls12201907 = "Policy-Min-TLS-1-2-2019-07" 7656 ) 7657 7658 // TLSSecurityPolicy_Values returns all elements of the TLSSecurityPolicy enum 7659 func TLSSecurityPolicy_Values() []string { 7660 return []string{ 7661 TLSSecurityPolicyPolicyMinTls10201907, 7662 TLSSecurityPolicyPolicyMinTls12201907, 7663 } 7664 }