Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
+28 -12
View File
@@ -15,7 +15,7 @@ const opSearch = "Search"
// SearchRequest generates a "aws/request.Request" representing the
// client's request for the Search operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -58,13 +58,17 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ
//
// * simple: search all text and text-array fields for the specified string.
// Search for phrases, individual terms, and prefixes.
//
// * structured: search specific fields, construct compound queries using
// Boolean operators, and use advanced features such as term boosting and
// proximity searching.
//
// * lucene: specify search criteria using the Apache Lucene query parser
// syntax.
//
// * dismax: specify search criteria using the simplified subset of the Apache
// Lucene query parser syntax defined by the DisMax query parser.
//
// For more information, see Searching Your Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html)
// in the Amazon CloudSearch Developer Guide.
//
@@ -111,7 +115,7 @@ const opSuggest = "Suggest"
// SuggestRequest generates a "aws/request.Request" representing the
// client's request for the Suggest operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -203,7 +207,7 @@ const opUploadDocuments = "UploadDocuments"
// UploadDocumentsRequest generates a "aws/request.Request" representing the
// client's request for the UploadDocuments operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -627,8 +631,7 @@ type SearchInput struct {
//
// * buckets specifies an array of the facet values or ranges to count. Ranges
// are specified using the same syntax that you use to search for a range
// of values. For more information, see Searching for a Range of Values
// (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-ranges.html)
// of values. For more information, see Searching for a Range of Values (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-ranges.html)
// in the Amazon CloudSearch Developer Guide. Buckets are returned in the
// order they are specified in the request. The sort and size options are
// not valid if you specify buckets.
@@ -694,15 +697,18 @@ type SearchInput struct {
// * format: specifies the format of the data in the text field: text or
// html. When data is returned as HTML, all non-alphanumeric characters are
// encoded. The default is html.
//
// * max_phrases: specifies the maximum number of occurrences of the search
// term(s) you want to highlight. By default, the first occurrence is highlighted.
//
// * pre_tag: specifies the string to prepend to an occurrence of a search
// term. The default for HTML highlights is <em>. The default for text
// highlights is *.
//
// * post_tag: specifies the string to append to an occurrence of a search
// term. The default for HTML highlights is </em>. The default for
// text highlights is *.
//
// If no highlight options are specified for a field, the returned field text
// is treated as HTML and the first match is highlighted with emphasis tags:
// <em>search-term</em>.
@@ -755,6 +761,7 @@ type SearchInput struct {
// 50%. Valid values: and, or, a percentage in the range 0%-100% (dismax).
// Default: and (simple, structured, lucene) or 100 (dismax). Valid for:
// simple, structured, lucene, and dismax.
//
// * fields: An array of the fields to search when no fields are specified
// in a search. If no fields are specified in a search and this option is
// not specified, all text and text-array fields are searched. You can specify
@@ -766,6 +773,7 @@ type SearchInput struct {
// The name of any configured field and an optional numeric value greater
// than zero. Default: All text and text-array fields. Valid for: simple,
// structured, lucene, and dismax.
//
// * operators: An array of the operators or special characters you want
// to disable for the simple query parser. If you disable the and, or, or
// not operators, the corresponding operators (+, |, -) have no special meaning
@@ -785,6 +793,7 @@ type SearchInput struct {
// Valid values: and, escape, fuzzy, near, not, or, phrase, precedence, prefix,
// whitespace. Default: All operators and special characters are enabled.
// Valid for: simple.
//
// * phraseFields: An array of the text or text-array fields you want to
// use for phrase searches. When the terms in the search string appear in
// close proximity within a field, the field scores higher. You can specify
@@ -797,17 +806,20 @@ type SearchInput struct {
// optional numeric value greater than zero. Default: No fields. If you don't
// specify any fields with phraseFields, proximity scoring is disabled even
// if phraseSlop is specified. Valid for: dismax.
//
// * phraseSlop: An integer value that specifies how much matches can deviate
// from the search phrase and still be boosted according to the weights specified
// in the phraseFields option; for example, phraseSlop: 2. You must also
// specify phraseFields to enable proximity scoring. Valid values: positive
// integers. Default: 0. Valid for: dismax.
//
// * explicitPhraseSlop: An integer value that specifies how much a match
// can deviate from the search phrase when the phrase is enclosed in double
// quotes in the search string. (Phrases that exceed this proximity distance
// are not considered a match.) For example, to specify a slop of three for
// dismax phrase queries, you would specify "explicitPhraseSlop":3. Valid
// values: positive integers. Default: 0. Valid for: dismax.
//
// * tieBreaker: When a term in the search string is found in a document's
// field, a score is calculated for that field based on how common the word
// is in that field compared to other documents. If the term occurs in multiple
@@ -838,20 +850,21 @@ type SearchInput struct {
// - (NOT), | (OR), and * (wildcard) operators to exclude particular terms,
// find results that match any of the specified terms, or search for a prefix.
// To search for a phrase rather than individual terms, enclose the phrase
// in double quotes. For more information, see Searching for Text (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-text.html)
// in the Amazon CloudSearch Developer Guide.
// in double quotes. For more information, see Searching for Text in the
// Amazon CloudSearch Developer Guide.
//
// * structured: perform advanced searches by combining multiple expressions
// to define the search criteria. You can also search within particular fields,
// search for values and ranges of values, and use advanced options such
// as term boosting, matchall, and near. For more information, see Constructing
// Compound Queries (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching-compound-queries.html)
// in the Amazon CloudSearch Developer Guide.
// Compound Queries in the Amazon CloudSearch Developer Guide.
//
// * lucene: search using the Apache Lucene query parser syntax. For more
// information, see Apache Lucene Query Parser Syntax (http://lucene.apache.org/core/4_6_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description).
// information, see Apache Lucene Query Parser Syntax.
//
// * dismax: search using the simplified subset of the Apache Lucene query
// parser syntax defined by the DisMax query parser. For more information,
// see DisMax Query Parser Syntax (http://wiki.apache.org/solr/DisMaxQParserPlugin#Query_Syntax).
// see DisMax Query Parser Syntax.
QueryParser *string `location:"querystring" locationName:"q.parser" type:"string" enum:"QueryParser"`
// Specifies the field and expression values to include in the response. Multiple
@@ -889,7 +902,9 @@ type SearchInput struct {
// specified field must be facet-enabled in the domain configuration. The fields
// are specified in JSON using the form:
//
// {"FIELD-A":{},"FIELD-B":{}}There are currently no options supported for statistics.
// {"FIELD-A":{},"FIELD-B":{}}
//
// There are currently no options supported for statistics.
Stats *string `location:"querystring" locationName:"stats" type:"string"`
}
@@ -1308,6 +1323,7 @@ type UploadDocumentsInput struct {
// document batch formats:
//
// * application/json
//
// * application/xml
//
// ContentType is a required field
+4 -3
View File
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "cloudsearchdomain" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
ServiceName = "cloudsearchdomain" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "CloudSearch Domain" // ServiceID is a unique identifer of a specific service.
)
// New creates a new instance of the CloudSearchDomain client with a session.
@@ -63,11 +64,11 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2013-01-01",
JSONVersion: "1.1",
},
handlers,
),