From a200c590981dbf7e6f9f518c33ea6adb88cd0bf7 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Thu, 5 May 2022 11:46:28 -0700 Subject: [PATCH] Release v1.44.8 (2022-05-05) (#4390) Release v1.44.8 (2022-05-05) === ### Service Client Updates * `service/datasync`: Updates service API and documentation * `service/ec2`: Updates service API * Amazon EC2 I4i instances are powered by 3rd generation Intel Xeon Scalable processors and feature up to 30 TB of local AWS Nitro SSD storage * `service/iot`: Updates service API and documentation * AWS IoT Jobs now allows you to create up to 100,000 active continuous and snapshot jobs by using concurrency control. * `service/kendra`: Updates service API, documentation, and paginators * AWS Kendra now supports hierarchical facets for a query. For more information, see https://docs.aws.amazon.com/kendra/latest/dg/filtering.html --- CHANGELOG.md | 12 + aws/endpoints/defaults.go | 64 ++- aws/version.go | 2 +- models/apis/datasync/2018-11-09/api-2.json | 13 +- models/apis/datasync/2018-11-09/docs-2.json | 11 +- models/apis/ec2/2016-11-15/api-2.json | 9 +- models/apis/iot/2015-05-28/api-2.json | 10 +- models/apis/iot/2015-05-28/docs-2.json | 7 + models/apis/kendra/2019-02-03/api-2.json | 12 +- models/apis/kendra/2019-02-03/docs-2.json | 40 +- .../apis/kendra/2019-02-03/paginators-1.json | 20 + models/endpoints/endpoints.json | 42 +- service/datasync/api.go | 37 +- service/ec2/api.go | 28 ++ service/iot/api.go | 19 + service/kendra/api.go | 375 ++++++++++++++++-- service/kendra/kendraiface/interface.go | 12 + 17 files changed, 642 insertions(+), 71 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03c5217b179..56c3175502a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +Release v1.44.8 (2022-05-05) +=== + +### Service Client Updates +* `service/datasync`: Updates service API and documentation +* `service/ec2`: Updates service API + * Amazon EC2 I4i instances are powered by 3rd generation Intel Xeon Scalable processors and feature up to 30 TB of local AWS Nitro SSD storage +* `service/iot`: Updates service API and documentation + * AWS IoT Jobs now allows you to create up to 100,000 active continuous and snapshot jobs by using concurrency control. +* `service/kendra`: Updates service API, documentation, and paginators + * AWS Kendra now supports hierarchical facets for a query. For more information, see https://docs.aws.amazon.com/kendra/latest/dg/filtering.html + Release v1.44.7 (2022-05-04) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index fd2c83e63c8..3133e1192ab 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -548,6 +548,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-2", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{}, endpointKey{ Region: "ca-central-1", }: endpoint{}, @@ -2642,6 +2645,9 @@ var awsPartition = partition{ endpointKey{ Region: "eu-west-1", }: endpoint{}, + endpointKey{ + Region: "eu-west-2", + }: endpoint{}, endpointKey{ Region: "us-east-1", }: endpoint{}, @@ -3643,9 +3649,6 @@ var awsPartition = partition{ }, "cloudhsm": service{ Endpoints: serviceEndpoints{ - endpointKey{ - Region: "eu-west-1", - }: endpoint{}, endpointKey{ Region: "us-east-1", }: endpoint{}, @@ -21936,6 +21939,23 @@ var awsPartition = partition{ Region: "ap-southeast-2", }, }, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{ + Hostname: "waf-regional.ap-southeast-3.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ap-southeast-3", + }, + }, + endpointKey{ + Region: "ap-southeast-3", + Variant: fipsVariant, + }: endpoint{ + Hostname: "waf-regional-fips.ap-southeast-3.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ap-southeast-3", + }, + }, endpointKey{ Region: "ca-central-1", }: endpoint{ @@ -22127,6 +22147,15 @@ var awsPartition = partition{ }, Deprecated: boxedTrue, }, + endpointKey{ + Region: "fips-ap-southeast-3", + }: endpoint{ + Hostname: "waf-regional-fips.ap-southeast-3.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ap-southeast-3", + }, + Deprecated: boxedTrue, + }, endpointKey{ Region: "fips-ca-central-1", }: endpoint{ @@ -27675,6 +27704,13 @@ var awsusgovPartition = partition{ }, }, }, + "robomaker": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "us-gov-west-1", + }: endpoint{}, + }, + }, "route53": service{ PartitionEndpoint: "aws-us-gov-global", IsRegionalized: boxedFalse, @@ -30111,6 +30147,28 @@ var awsisobPartition = partition{ }: endpoint{}, }, }, + "elasticfilesystem": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "fips-us-isob-east-1", + }: endpoint{ + Hostname: "elasticfilesystem-fips.us-isob-east-1.sc2s.sgov.gov", + CredentialScope: credentialScope{ + Region: "us-isob-east-1", + }, + Deprecated: boxedTrue, + }, + endpointKey{ + Region: "us-isob-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-isob-east-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "elasticfilesystem-fips.us-isob-east-1.sc2s.sgov.gov", + }, + }, + }, "elasticloadbalancing": service{ Endpoints: serviceEndpoints{ endpointKey{ diff --git a/aws/version.go b/aws/version.go index a1421d62cc2..02cc10e9d01 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.7" +const SDKVersion = "1.44.8" diff --git a/models/apis/datasync/2018-11-09/api-2.json b/models/apis/datasync/2018-11-09/api-2.json index 04cb0c47745..2fef8b262c2 100644 --- a/models/apis/datasync/2018-11-09/api-2.json +++ b/models/apis/datasync/2018-11-09/api-2.json @@ -1372,7 +1372,8 @@ "type":"structure", "members":{ "message":{"shape":"string"}, - "errorCode":{"shape":"string"} + "errorCode":{"shape":"string"}, + "datasyncErrorCode":{"shape":"string"} }, "exception":true }, @@ -1604,6 +1605,13 @@ "HTTP" ] }, + "ObjectTags":{ + "type":"string", + "enum":[ + "PRESERVE", + "NONE" + ] + }, "OnPremConfig":{ "type":"structure", "required":["AgentArns"], @@ -1642,7 +1650,8 @@ "TaskQueueing":{"shape":"TaskQueueing"}, "LogLevel":{"shape":"LogLevel"}, "TransferMode":{"shape":"TransferMode"}, - "SecurityDescriptorCopyFlags":{"shape":"SmbSecurityDescriptorCopyFlags"} + "SecurityDescriptorCopyFlags":{"shape":"SmbSecurityDescriptorCopyFlags"}, + "ObjectTags":{"shape":"ObjectTags"} } }, "OutputTagList":{ diff --git a/models/apis/datasync/2018-11-09/docs-2.json b/models/apis/datasync/2018-11-09/docs-2.json index ac0e3d49577..ffa0e6bbc79 100644 --- a/models/apis/datasync/2018-11-09/docs-2.json +++ b/models/apis/datasync/2018-11-09/docs-2.json @@ -849,7 +849,7 @@ "Mtime": { "base": null, "refs": { - "Options$Mtime": "
A value that indicates the last time that a file was modified (that is, a file was written to) before the PREPARING phase. This option is required for cases when you need to run the same task more than one time.
Default value: PRESERVE.
PRESERVE: Preserve original Mtime
(recommended)
NONE: Ignore Mtime
.
If Mtime
is set to PRESERVE, Atime
must be set to BEST_EFFORT.
If Mtime
is set to NONE, Atime
must also be set to NONE.
A value that indicates the last time that a file was modified (that is, a file was written to) before the PREPARING phase. This option is required for cases when you need to run the same task more than one time.
Default Value: PRESERVE
PRESERVE: Preserve original Mtime
(recommended)
NONE: Ignore Mtime
.
If Mtime
is set to PRESERVE, Atime
must be set to BEST_EFFORT.
If Mtime
is set to NONE, Atime
must also be set to NONE.
The protocol that the object storage server uses to communicate. Valid values are HTTP
or HTTPS
.
Specifies whether object tags are maintained when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE
value.
Default Value: PRESERVE
A list of Amazon Resource Names (ARNs) of agents to use for a Network File System (NFS) location.
", "refs": { @@ -1404,7 +1410,7 @@ "VerifyMode": { "base": null, "refs": { - "Options$VerifyMode": "A value that determines whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. For more information, see Configure task settings.
Default value: POINT_IN_TIME_CONSISTENT.
ONLY_FILES_TRANSFERRED (recommended): Perform verification only on files that were transferred.
POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at the end of the transfer to verify that source and destination are fully synchronized. This option isn't supported when transferring to S3 Glacier or S3 Glacier Deep Archive storage classes.
NONE: No additional verification is done at the end of the transfer, but all data transmissions are integrity-checked with checksum verification during the transfer.
" + "Options$VerifyMode": "A value that determines whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. For more information, see Configure task settings.
Default value: POINT_IN_TIME_CONSISTENT.
ONLY_FILES_TRANSFERRED (recommended): Perform verification only on files that were transferred.
POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at the end of the transfer to verify that source and destination are fully synchronized. This option isn't supported when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes.
NONE: No additional verification is done at the end of the transfer, but all data transmissions are integrity-checked with checksum verification during the transfer.
" } }, "VpcEndpointId": { @@ -1433,6 +1439,7 @@ "InternalException$errorCode": null, "InvalidRequestException$message": null, "InvalidRequestException$errorCode": null, + "InvalidRequestException$datasyncErrorCode": null, "TaskExecutionResultDetail$ErrorCode": "Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot issues.
", "TaskExecutionResultDetail$ErrorDetail": "Detailed description of an error that was encountered during the task execution. You can use this information to help troubleshoot issues.
" } diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 8fb67afa780..11ab3612b8d 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -24160,7 +24160,14 @@ "c6a.32xlarge", "c6a.48xlarge", "c6a.metal", - "m6a.metal" + "m6a.metal", + "i4i.large", + "i4i.xlarge", + "i4i.2xlarge", + "i4i.4xlarge", + "i4i.8xlarge", + "i4i.16xlarge", + "i4i.32xlarge" ] }, "InstanceTypeHypervisor":{ diff --git a/models/apis/iot/2015-05-28/api-2.json b/models/apis/iot/2015-05-28/api-2.json index 170549db5e4..9ec9b59e5d5 100644 --- a/models/apis/iot/2015-05-28/api-2.json +++ b/models/apis/iot/2015-05-28/api-2.json @@ -217,7 +217,8 @@ {"shape":"InvalidRequestException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, - {"shape":"ServiceUnavailableException"} + {"shape":"ServiceUnavailableException"}, + {"shape":"LimitExceededException"} ] }, "CancelJobExecution":{ @@ -4767,6 +4768,7 @@ }, "Boolean":{"type":"boolean"}, "BooleanKey":{"type":"boolean"}, + "BooleanWrapperObject":{"type":"boolean"}, "Bucket":{ "type":"structure", "members":{ @@ -8504,7 +8506,8 @@ "namespaceId":{"shape":"NamespaceId"}, "jobTemplateArn":{"shape":"JobTemplateArn"}, "jobExecutionsRetryConfig":{"shape":"JobExecutionsRetryConfig"}, - "documentParameters":{"shape":"ParameterMap"} + "documentParameters":{"shape":"ParameterMap"}, + "isConcurrent":{"shape":"BooleanWrapperObject"} } }, "JobArn":{"type":"string"}, @@ -8652,7 +8655,8 @@ "status":{"shape":"JobStatus"}, "createdAt":{"shape":"DateType"}, "lastUpdatedAt":{"shape":"DateType"}, - "completedAt":{"shape":"DateType"} + "completedAt":{"shape":"DateType"}, + "isConcurrent":{"shape":"BooleanWrapperObject"} } }, "JobSummaryList":{ diff --git a/models/apis/iot/2015-05-28/docs-2.json b/models/apis/iot/2015-05-28/docs-2.json index ed77e5753d6..17095b6bcbc 100644 --- a/models/apis/iot/2015-05-28/docs-2.json +++ b/models/apis/iot/2015-05-28/docs-2.json @@ -1311,6 +1311,13 @@ "CreateAuthorizerRequest$signingDisabled": "Specifies whether IoT validates the token signature in an authorization request.
" } }, + "BooleanWrapperObject": { + "base": null, + "refs": { + "Job$isConcurrent": null, + "JobSummary$isConcurrent": null + } + }, "Bucket": { "base": "A count of documents that meets a specific aggregation criteria.
", "refs": { diff --git a/models/apis/kendra/2019-02-03/api-2.json b/models/apis/kendra/2019-02-03/api-2.json index d333ccf231c..39d3643c532 100644 --- a/models/apis/kendra/2019-02-03/api-2.json +++ b/models/apis/kendra/2019-02-03/api-2.json @@ -2357,7 +2357,8 @@ "type":"structure", "members":{ "DocumentAttributeValue":{"shape":"DocumentAttributeValue"}, - "Count":{"shape":"Integer"} + "Count":{"shape":"Integer"}, + "FacetResults":{"shape":"FacetResultList"} } }, "DocumentAttributeValueCountPairList":{ @@ -2653,7 +2654,9 @@ "Facet":{ "type":"structure", "members":{ - "DocumentAttributeKey":{"shape":"DocumentAttributeKey"} + "DocumentAttributeKey":{"shape":"DocumentAttributeKey"}, + "Facets":{"shape":"FacetList"}, + "MaxResults":{"shape":"TopDocumentAttributeValueCountPairsSize"} } }, "FacetList":{ @@ -4596,6 +4599,11 @@ "min":1, "pattern":"^\\P{C}*$" }, + "TopDocumentAttributeValueCountPairsSize":{ + "type":"integer", + "max":5000, + "min":0 + }, "UntagResourceRequest":{ "type":"structure", "required":[ diff --git a/models/apis/kendra/2019-02-03/docs-2.json b/models/apis/kendra/2019-02-03/docs-2.json index f9b22b35b6f..4d25d5ec703 100644 --- a/models/apis/kendra/2019-02-03/docs-2.json +++ b/models/apis/kendra/2019-02-03/docs-2.json @@ -260,9 +260,9 @@ "Highlight$TopAnswer": "Indicates whether the response is the best response. True if this is the best response; otherwise, false.
", "InlineCustomDocumentEnrichmentConfiguration$DocumentContentDeletion": " TRUE
to delete content if the condition used for the target attribute is met.
A Boolean value that specifies whether local groups are disabled (True
) or enabled (False
).
Specify whether to crawl file comments in your Quip data source. You can specify one or more of these options.
", - "QuipConfiguration$CrawlChatRooms": "Specify whether to crawl chat rooms in your Quip data source. You can specify one or more of these options.
", - "QuipConfiguration$CrawlAttachments": "Specify whether to crawl attachments in your Quip data source. You can specify one or more of these options.
", + "QuipConfiguration$CrawlFileComments": "Specify whether to crawl file comments in Quip. You can specify one or more of these options.
", + "QuipConfiguration$CrawlChatRooms": "Specify whether to crawl chat rooms in Quip. You can specify one or more of these options.
", + "QuipConfiguration$CrawlAttachments": "Specify whether to crawl attachments in Quip. You can specify one or more of these options.
", "SalesforceConfiguration$CrawlAttachments": "Indicates whether Amazon Kendra should index attachments to Salesforce objects.
", "Search$Facetable": "Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false
.
Determines whether the field is used in the search. If the Searchable
field is true
, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true
for string fields and false
for number and date fields.
A list of DataSourceToIndexFieldMapping
objects that map Amazon FSx data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Amazon FSx fields. For more information, see Mapping data source fields. The Amazon FSx data source field names must exist in your Amazon FSx custom metadata.
Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.
A list of DataSourceToIndexFieldMapping
objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to OneDrive fields. For more information, see Mapping data source fields. The OneDrive data source field names must exist in your OneDrive custom metadata.
A list of field mappings to apply when indexing Quip threads.
", - "QuipConfiguration$MessageFieldMappings": "A list of field mappings to apply when indexing Quip messages.
", - "QuipConfiguration$AttachmentFieldMappings": "A list of field mappings to apply when indexing Quip attachments.
", + "QuipConfiguration$ThreadFieldMappings": "A list of DataSourceToIndexFieldMapping
objects that map attributes or field names of Quip threads to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.
A list of DataSourceToIndexFieldMapping
objects that map attributes or field names of Quip messages to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.
A list of DataSourceToIndexFieldMapping
objects that map attributes or field names of Quip attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.
Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.
", "SalesforceCustomKnowledgeArticleTypeConfiguration$FieldMappings": "Maps attributes or field names of the custom knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.
Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.
Configuration information for an Amazon Virtual Private Cloud to connect to your Confluence. For more information, see Configuring a VPC.
", "DatabaseConfiguration$VpcConfiguration": null, "FsxConfiguration$VpcConfiguration": "Configuration information for an Amazon Virtual Private Cloud to connect to your Amazon FSx. Your Amazon FSx instance must reside inside your VPC.
", - "QuipConfiguration$VpcConfiguration": "Configuration information for connecting to an Amazon Virtual Private Cloud (VPC) for your Quip. Your Quip instance must reside inside your VPC.
", + "QuipConfiguration$VpcConfiguration": "Configuration information for an Amazon Virtual Private Cloud (VPC) to connect to your Quip. For more information, see Configuring a VPC.
", "SharePointConfiguration$VpcConfiguration": null, "SlackConfiguration$VpcConfiguration": "Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.
" } @@ -1029,7 +1029,7 @@ } }, "DocumentAttribute": { - "base": "A custom attribute value assigned to a document.
For more information on how to create custom document attributes, see Custom Attributes.
", + "base": "A document attribute or metadata field. To create custom document attributes, see Custom attributes.
", "refs": { "AttributeFilter$EqualsTo": "Performs an equals operation on two document attributes.
", "AttributeFilter$ContainsAll": "Returns true when a document contains all of the specified document attributes. This filter is only applicable to StringListValue
metadata.
An array of document attributes to include in the response. No other document attributes are included in the response. By default all document attributes are included in the response.
" + "QueryRequest$RequestedDocumentAttributes": "An array of document attributes to include in the response. You can limit the response to include certain document attributes. By default all document attributes are included in the response.
" } }, "DocumentAttributeList": { @@ -1071,7 +1071,7 @@ "refs": { "Document$Attributes": "Custom attributes to apply to the document. Use the custom attributes to provide additional information for searching, to provide facets for refining searches, and to provide additional information in the query response.
For example, 'DataSourceId' and 'DataSourceSyncJobId' are custom attributes that provide information on the synchronization of documents running on a data source. Note, 'DataSourceSyncJobId' could be an optional custom attribute as Amazon Kendra will use the ID of a running sync job.
", "DocumentInfo$Attributes": "Attributes that identify a specific version of a document to check.
The only valid attributes are:
version
datasourceId
jobExecutionId
The attributes follow these rules:
dataSourceId
and jobExecutionId
must be used together.
version
is ignored if dataSourceId
and jobExecutionId
are not provided.
If dataSourceId
and jobExecutionId
are provided, but version
is not, the version defaults to \"0\".
An array of document attributes for the document that the query result maps to. For example, the document author (Author) or the source URI (SourceUri) of the document.
" + "QueryResultItem$DocumentAttributes": "An array of document attributes assigned to a document in the search results. For example, the document author (_author
) or the source URI (_source_uri
) of the document.
The value of a custom document attribute. You can only provide one value for a custom attribute.
", + "base": "The value of a document attribute. You can only provide one value for a document attribute.
", "refs": { "DocumentAttribute$Value": "The value of the attribute.
", "DocumentAttributeCondition$ConditionOnValue": "The value used by the operator.
For example, you can specify the value 'financial' for strings in the 'Source_URI' field that partially match or contain this value.
", "DocumentAttributeTarget$TargetDocumentAttributeValue": "The target value you want to create for the target attribute.
For example, 'Finance' could be the target value for the target attribute key 'Department'.
", - "DocumentAttributeValueCountPair$DocumentAttributeValue": "The value of the attribute. For example, \"HR.\"
" + "DocumentAttributeValueCountPair$DocumentAttributeValue": "The value of the attribute. For example, \"HR\".
" } }, "DocumentAttributeValueCountPair": { @@ -1216,7 +1216,7 @@ "Domain": { "base": null, "refs": { - "QuipConfiguration$Domain": "The configuration information to connect to your Quip data source domain.
" + "QuipConfiguration$Domain": "The Quip site domain.
" } }, "Duration": { @@ -1425,7 +1425,7 @@ } }, "Facet": { - "base": "Information about a document attribute
", + "base": "Information about a document attribute. You can use document attributes as facets.
For example, the document attribute or facet \"Department\" includes the values \"HR\", \"Engineering\", and \"Accounting\". You can display these values in the search results so that documents can be searched by department.
You can display up to 10 facet values per facet for a query. If you want to increase this limit, contact Support.
", "refs": { "FacetList$member": null } @@ -1433,7 +1433,8 @@ "FacetList": { "base": null, "refs": { - "QueryRequest$Facets": "An array of documents attributes. Amazon Kendra returns a count for each attribute key specified. You can use this information to help narrow the search for your user.
" + "Facet$Facets": "An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet \"Department\" includes a value called \"Engineering\". In addition, the document attribute or facet \"SubDepartment\" includes the values \"Frontend\" and \"Backend\" for documents assigned to \"Engineering\". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
", + "QueryRequest$Facets": "An array of documents attributes. Amazon Kendra returns a count for each attribute key specified. This helps your users narrow their search.
" } }, "FacetResult": { @@ -1445,6 +1446,7 @@ "FacetResultList": { "base": null, "refs": { + "DocumentAttributeValueCountPair$FacetResults": "Contains the results of a document attribute that is a nested facet. A FacetResult
contains the counts for each facet nested within a facet.
For example, the document attribute or facet \"Department\" includes a value called \"Engineering\". In addition, the document attribute or facet \"SubDepartment\" includes the values \"Frontend\" and \"Backend\" for documents assigned to \"Engineering\". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. The counts for documents that belong to \"Frontend\" and \"Backend\" within \"Engineering\" are returned for a query.
", "QueryResult$FacetResults": "Contains the facet results. A FacetResult
contains the counts for each attribute key that was specified in the Facets
input parameter.
The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.
", "OneDriveConfiguration$SecretArn": "The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the user name and password to connect to OneDrive. The user namd should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.
", "ProxyConfiguration$Credentials": "Your secret ARN, which you can create in Secrets Manager
The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.
", - "QuipConfiguration$SecretArn": "The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs that are required to connect to your Quip file system. Windows is currently the only supported type. The secret must contain a JSON structure with the following keys:
username—The Active Directory user name, along with the Domain Name System (DNS) domain name. For example, user@corp.example.com. The Active Directory user account must have read and mounting access to the Quip file system for Windows.
password—The password of the Active Directory user account with read and mounting access to the Quip Windows file system.
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs that are required to connect to your Quip. The secret must contain a JSON structure with the following keys:
accessToken—The token created in Quip. For more information, see Authentication for a Quip data source.
The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:
authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.
consumerKey - The application public key generated when you created your Salesforce application.
consumerSecret - The application private key generated when you created your Salesforce application.
password - The password associated with the user logging in to the Salesforce instance.
securityToken - The token associated with the user account logging in to the Salesforce instance.
username - The user name of the user logging in to the Salesforce instance.
The Amazon Resource Name (ARN) of the Secrets Manager secret that contains the user name and password required to connect to the ServiceNow instance.
", "SharePointConfiguration$SecretArn": "The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. If you use SharePoint Server, you also need to provide the sever domain name as part of the credentials. For more information, see Using a Microsoft SharePoint Data Source. For more information about Secrets Manager see What Is Secrets Manager in the Secrets Manager user guide.
", @@ -3233,6 +3235,12 @@ "UserContext$Token": "The user context token for filtering search results for a user. It must be a JWT or a JSON token.
" } }, + "TopDocumentAttributeValueCountPairsSize": { + "base": null, + "refs": { + "Facet$MaxResults": "Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.
" + } + }, "UntagResourceRequest": { "base": null, "refs": { diff --git a/models/apis/kendra/2019-02-03/paginators-1.json b/models/apis/kendra/2019-02-03/paginators-1.json index d5b1cff17c9..c5e5cfcf10d 100644 --- a/models/apis/kendra/2019-02-03/paginators-1.json +++ b/models/apis/kendra/2019-02-03/paginators-1.json @@ -29,10 +29,30 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListFaqs": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListGroupsOlderThanOrderingId": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListIndices": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" + }, + "ListQuerySuggestionsBlockLists": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListThesauri": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" } } } diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index a2628f52cca..a643539940d 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -293,6 +293,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-3" : { }, "ca-central-1" : { "variants" : [ { "hostname" : "acm-pca-fips.ca-central-1.amazonaws.com", @@ -1478,6 +1479,7 @@ "eu-central-1" : { }, "eu-north-1" : { }, "eu-west-1" : { }, + "eu-west-2" : { }, "us-east-1" : { }, "us-east-2" : { }, "us-west-2" : { } @@ -2008,7 +2010,6 @@ }, "cloudhsm" : { "endpoints" : { - "eu-west-1" : { }, "us-east-1" : { } } }, @@ -12838,6 +12839,16 @@ "tags" : [ "fips" ] } ] }, + "ap-southeast-3" : { + "credentialScope" : { + "region" : "ap-southeast-3" + }, + "hostname" : "waf-regional.ap-southeast-3.amazonaws.com", + "variants" : [ { + "hostname" : "waf-regional-fips.ap-southeast-3.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, "ca-central-1" : { "credentialScope" : { "region" : "ca-central-1" @@ -12964,6 +12975,13 @@ "deprecated" : true, "hostname" : "waf-regional-fips.ap-southeast-2.amazonaws.com" }, + "fips-ap-southeast-3" : { + "credentialScope" : { + "region" : "ap-southeast-3" + }, + "deprecated" : true, + "hostname" : "waf-regional-fips.ap-southeast-3.amazonaws.com" + }, "fips-ca-central-1" : { "credentialScope" : { "region" : "ca-central-1" @@ -16905,6 +16923,11 @@ } } }, + "robomaker" : { + "endpoints" : { + "us-gov-west-1" : { } + } + }, "route53" : { "endpoints" : { "aws-us-gov-global" : { @@ -18610,6 +18633,23 @@ "us-isob-east-1" : { } } }, + "elasticfilesystem" : { + "endpoints" : { + "fips-us-isob-east-1" : { + "credentialScope" : { + "region" : "us-isob-east-1" + }, + "deprecated" : true, + "hostname" : "elasticfilesystem-fips.us-isob-east-1.sc2s.sgov.gov" + }, + "us-isob-east-1" : { + "variants" : [ { + "hostname" : "elasticfilesystem-fips.us-isob-east-1.sc2s.sgov.gov", + "tags" : [ "fips" ] + } ] + } + } + }, "elasticloadbalancing" : { "endpoints" : { "us-isob-east-1" : { diff --git a/service/datasync/api.go b/service/datasync/api.go index 2f1b94d5c60..87e9b03044b 100644 --- a/service/datasync/api.go +++ b/service/datasync/api.go @@ -8275,6 +8275,8 @@ type InvalidRequestException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + DatasyncErrorCode *string `locationName:"datasyncErrorCode" type:"string"` + ErrorCode *string `locationName:"errorCode" type:"string"` Message_ *string `locationName:"message" type:"string"` @@ -9153,7 +9155,7 @@ type Options struct { // file was written to) before the PREPARING phase. This option is required // for cases when you need to run the same task more than one time. // - // Default value: PRESERVE. + // Default Value: PRESERVE // // PRESERVE: Preserve original Mtime (recommended) // @@ -9164,6 +9166,13 @@ type Options struct { // If Mtime is set to NONE, Atime must also be set to NONE. Mtime *string `type:"string" enum:"Mtime"` + // Specifies whether object tags are maintained when transferring between object + // storage systems. If you want your DataSync task to ignore object tags, specify + // the NONE value. + // + // Default Value: PRESERVE + ObjectTags *string `type:"string" enum:"ObjectTags"` + // A value that determines whether files at the destination should be overwritten // or preserved when copying files. If set to NEVER a destination file will // not be replaced by a source file, even if the destination file differs from @@ -9302,8 +9311,8 @@ type Options struct { // // POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at // the end of the transfer to verify that source and destination are fully synchronized. - // This option isn't supported when transferring to S3 Glacier or S3 Glacier - // Deep Archive storage classes. + // This option isn't supported when transferring to S3 Glacier Flexible Retrieval + // or S3 Glacier Deep Archive storage classes. // // NONE: No additional verification is done at the end of the transfer, but // all data transmissions are integrity-checked with checksum verification during @@ -9372,6 +9381,12 @@ func (s *Options) SetMtime(v string) *Options { return s } +// SetObjectTags sets the ObjectTags field's value. +func (s *Options) SetObjectTags(v string) *Options { + s.ObjectTags = &v + return s +} + // SetOverwriteMode sets the OverwriteMode field's value. func (s *Options) SetOverwriteMode(v string) *Options { s.OverwriteMode = &v @@ -11571,6 +11586,22 @@ func ObjectStorageServerProtocol_Values() []string { } } +const ( + // ObjectTagsPreserve is a ObjectTags enum value + ObjectTagsPreserve = "PRESERVE" + + // ObjectTagsNone is a ObjectTags enum value + ObjectTagsNone = "NONE" +) + +// ObjectTags_Values returns all elements of the ObjectTags enum +func ObjectTags_Values() []string { + return []string{ + ObjectTagsPreserve, + ObjectTagsNone, + } +} + const ( // OperatorEquals is a Operator enum value OperatorEquals = "Equals" diff --git a/service/ec2/api.go b/service/ec2/api.go index 805371a623b..e698f89cf2c 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -164672,6 +164672,27 @@ const ( // InstanceTypeM6aMetal is a InstanceType enum value InstanceTypeM6aMetal = "m6a.metal" + + // InstanceTypeI4iLarge is a InstanceType enum value + InstanceTypeI4iLarge = "i4i.large" + + // InstanceTypeI4iXlarge is a InstanceType enum value + InstanceTypeI4iXlarge = "i4i.xlarge" + + // InstanceTypeI4i2xlarge is a InstanceType enum value + InstanceTypeI4i2xlarge = "i4i.2xlarge" + + // InstanceTypeI4i4xlarge is a InstanceType enum value + InstanceTypeI4i4xlarge = "i4i.4xlarge" + + // InstanceTypeI4i8xlarge is a InstanceType enum value + InstanceTypeI4i8xlarge = "i4i.8xlarge" + + // InstanceTypeI4i16xlarge is a InstanceType enum value + InstanceTypeI4i16xlarge = "i4i.16xlarge" + + // InstanceTypeI4i32xlarge is a InstanceType enum value + InstanceTypeI4i32xlarge = "i4i.32xlarge" ) // InstanceType_Values returns all elements of the InstanceType enum @@ -165184,6 +165205,13 @@ func InstanceType_Values() []string { InstanceTypeC6a48xlarge, InstanceTypeC6aMetal, InstanceTypeM6aMetal, + InstanceTypeI4iLarge, + InstanceTypeI4iXlarge, + InstanceTypeI4i2xlarge, + InstanceTypeI4i4xlarge, + InstanceTypeI4i8xlarge, + InstanceTypeI4i16xlarge, + InstanceTypeI4i32xlarge, } } diff --git a/service/iot/api.go b/service/iot/api.go index 91ee128e42d..7a1220eff2a 100644 --- a/service/iot/api.go +++ b/service/iot/api.go @@ -1241,6 +1241,9 @@ func (c *IoT) CancelJobRequest(input *CancelJobInput) (req *request.Request, out // * ServiceUnavailableException // The service is temporarily unavailable. // +// * LimitExceededException +// A limit has been exceeded. +// func (c *IoT) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) return out, req.Send() @@ -46847,6 +46850,8 @@ type Job struct { // to true. ForceCanceled *bool `locationName:"forceCanceled" type:"boolean"` + IsConcurrent *bool `locationName:"isConcurrent" type:"boolean"` + // An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId". JobArn *string `locationName:"jobArn" type:"string"` @@ -46967,6 +46972,12 @@ func (s *Job) SetForceCanceled(v bool) *Job { return s } +// SetIsConcurrent sets the IsConcurrent field's value. +func (s *Job) SetIsConcurrent(v bool) *Job { + s.IsConcurrent = &v + return s +} + // SetJobArn sets the JobArn field's value. func (s *Job) SetJobArn(v string) *Job { s.JobArn = &v @@ -47618,6 +47629,8 @@ type JobSummary struct { // The time, in seconds since the epoch, when the job was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + IsConcurrent *bool `locationName:"isConcurrent" type:"boolean"` + // The job ARN. JobArn *string `locationName:"jobArn" type:"string"` @@ -47672,6 +47685,12 @@ func (s *JobSummary) SetCreatedAt(v time.Time) *JobSummary { return s } +// SetIsConcurrent sets the IsConcurrent field's value. +func (s *JobSummary) SetIsConcurrent(v bool) *JobSummary { + s.IsConcurrent = &v + return s +} + // SetJobArn sets the JobArn field's value. func (s *JobSummary) SetJobArn(v string) *JobSummary { s.JobArn = &v diff --git a/service/kendra/api.go b/service/kendra/api.go index 0fb1243a89e..5d98ff65561 100644 --- a/service/kendra/api.go +++ b/service/kendra/api.go @@ -3699,6 +3699,12 @@ func (c *Kendra) ListFaqsRequest(input *ListFaqsInput) (req *request.Request, ou Name: opListFaqs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -3754,6 +3760,58 @@ func (c *Kendra) ListFaqsWithContext(ctx aws.Context, input *ListFaqsInput, opts return out, req.Send() } +// ListFaqsPages iterates over the pages of a ListFaqs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFaqs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListFaqs operation. +// pageNum := 0 +// err := client.ListFaqsPages(params, +// func(page *kendra.ListFaqsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Kendra) ListFaqsPages(input *ListFaqsInput, fn func(*ListFaqsOutput, bool) bool) error { + return c.ListFaqsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListFaqsPagesWithContext same as ListFaqsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kendra) ListFaqsPagesWithContext(ctx aws.Context, input *ListFaqsInput, fn func(*ListFaqsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListFaqsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListFaqsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListFaqsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListGroupsOlderThanOrderingId = "ListGroupsOlderThanOrderingId" // ListGroupsOlderThanOrderingIdRequest generates a "aws/request.Request" representing the @@ -3785,6 +3843,12 @@ func (c *Kendra) ListGroupsOlderThanOrderingIdRequest(input *ListGroupsOlderThan Name: opListGroupsOlderThanOrderingId, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -3846,6 +3910,58 @@ func (c *Kendra) ListGroupsOlderThanOrderingIdWithContext(ctx aws.Context, input return out, req.Send() } +// ListGroupsOlderThanOrderingIdPages iterates over the pages of a ListGroupsOlderThanOrderingId operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListGroupsOlderThanOrderingId method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListGroupsOlderThanOrderingId operation. +// pageNum := 0 +// err := client.ListGroupsOlderThanOrderingIdPages(params, +// func(page *kendra.ListGroupsOlderThanOrderingIdOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Kendra) ListGroupsOlderThanOrderingIdPages(input *ListGroupsOlderThanOrderingIdInput, fn func(*ListGroupsOlderThanOrderingIdOutput, bool) bool) error { + return c.ListGroupsOlderThanOrderingIdPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListGroupsOlderThanOrderingIdPagesWithContext same as ListGroupsOlderThanOrderingIdPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kendra) ListGroupsOlderThanOrderingIdPagesWithContext(ctx aws.Context, input *ListGroupsOlderThanOrderingIdInput, fn func(*ListGroupsOlderThanOrderingIdOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListGroupsOlderThanOrderingIdInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListGroupsOlderThanOrderingIdRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListGroupsOlderThanOrderingIdOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListIndices = "ListIndices" // ListIndicesRequest generates a "aws/request.Request" representing the @@ -4019,6 +4135,12 @@ func (c *Kendra) ListQuerySuggestionsBlockListsRequest(input *ListQuerySuggestio Name: opListQuerySuggestionsBlockLists, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -4080,6 +4202,58 @@ func (c *Kendra) ListQuerySuggestionsBlockListsWithContext(ctx aws.Context, inpu return out, req.Send() } +// ListQuerySuggestionsBlockListsPages iterates over the pages of a ListQuerySuggestionsBlockLists operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListQuerySuggestionsBlockLists method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListQuerySuggestionsBlockLists operation. +// pageNum := 0 +// err := client.ListQuerySuggestionsBlockListsPages(params, +// func(page *kendra.ListQuerySuggestionsBlockListsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Kendra) ListQuerySuggestionsBlockListsPages(input *ListQuerySuggestionsBlockListsInput, fn func(*ListQuerySuggestionsBlockListsOutput, bool) bool) error { + return c.ListQuerySuggestionsBlockListsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListQuerySuggestionsBlockListsPagesWithContext same as ListQuerySuggestionsBlockListsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kendra) ListQuerySuggestionsBlockListsPagesWithContext(ctx aws.Context, input *ListQuerySuggestionsBlockListsInput, fn func(*ListQuerySuggestionsBlockListsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListQuerySuggestionsBlockListsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListQuerySuggestionsBlockListsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListQuerySuggestionsBlockListsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the @@ -4198,6 +4372,12 @@ func (c *Kendra) ListThesauriRequest(input *ListThesauriInput) (req *request.Req Name: opListThesauri, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -4253,6 +4433,58 @@ func (c *Kendra) ListThesauriWithContext(ctx aws.Context, input *ListThesauriInp return out, req.Send() } +// ListThesauriPages iterates over the pages of a ListThesauri operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListThesauri method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListThesauri operation. +// pageNum := 0 +// err := client.ListThesauriPages(params, +// func(page *kendra.ListThesauriOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Kendra) ListThesauriPages(input *ListThesauriInput, fn func(*ListThesauriOutput, bool) bool) error { + return c.ListThesauriPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListThesauriPagesWithContext same as ListThesauriPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kendra) ListThesauriPagesWithContext(ctx aws.Context, input *ListThesauriInput, fn func(*ListThesauriOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListThesauriInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListThesauriRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListThesauriOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opPutPrincipalMapping = "PutPrincipalMapping" // PutPrincipalMappingRequest generates a "aws/request.Request" representing the @@ -13475,10 +13707,8 @@ func (s *Document) SetTitle(v string) *Document { return s } -// A custom attribute value assigned to a document. -// -// For more information on how to create custom document attributes, see Custom -// Attributes (https://docs.aws.amazon.com/kendra/latest/dg/custom-attributes.html). +// A document attribute or metadata field. To create custom document attributes, +// see Custom attributes (https://docs.aws.amazon.com/kendra/latest/dg/custom-attributes.html). type DocumentAttribute struct { _ struct{} `type:"structure"` @@ -13740,8 +13970,8 @@ func (s *DocumentAttributeTarget) SetTargetDocumentAttributeValueDeletion(v bool return s } -// The value of a custom document attribute. You can only provide one value -// for a custom attribute. +// The value of a document attribute. You can only provide one value for a document +// attribute. type DocumentAttributeValue struct { _ struct{} `type:"structure"` @@ -13827,8 +14057,20 @@ type DocumentAttributeValueCountPair struct { // the key. Count *int64 `type:"integer"` - // The value of the attribute. For example, "HR." + // The value of the attribute. For example, "HR". DocumentAttributeValue *DocumentAttributeValue `type:"structure"` + + // Contains the results of a document attribute that is a nested facet. A FacetResult + // contains the counts for each facet nested within a facet. + // + // For example, the document attribute or facet "Department" includes a value + // called "Engineering". In addition, the document attribute or facet "SubDepartment" + // includes the values "Frontend" and "Backend" for documents assigned to "Engineering". + // You can display nested facets in the search results so that documents can + // be searched not only by department but also by a sub department within a + // department. The counts for documents that belong to "Frontend" and "Backend" + // within "Engineering" are returned for a query. + FacetResults []*FacetResult `type:"list"` } // String returns the string representation. @@ -13861,6 +14103,12 @@ func (s *DocumentAttributeValueCountPair) SetDocumentAttributeValue(v *DocumentA return s } +// SetFacetResults sets the FacetResults field's value. +func (s *DocumentAttributeValueCountPair) SetFacetResults(v []*FacetResult) *DocumentAttributeValueCountPair { + s.FacetResults = v + return s +} + // Identifies a document for which to retrieve status information type DocumentInfo struct { _ struct{} `type:"structure"` @@ -14618,12 +14866,38 @@ func (s *ExperiencesSummary) SetStatus(v string) *ExperiencesSummary { return s } -// Information about a document attribute +// Information about a document attribute. You can use document attributes as +// facets. +// +// For example, the document attribute or facet "Department" includes the values +// "HR", "Engineering", and "Accounting". You can display these values in the +// search results so that documents can be searched by department. +// +// You can display up to 10 facet values per facet for a query. If you want +// to increase this limit, contact Support (http://aws.amazon.com/contact-us/). type Facet struct { _ struct{} `type:"structure"` // The unique key for the document attribute. DocumentAttributeKey *string `min:"1" type:"string"` + + // An array of document attributes that are nested facets within a facet. + // + // For example, the document attribute or facet "Department" includes a value + // called "Engineering". In addition, the document attribute or facet "SubDepartment" + // includes the values "Frontend" and "Backend" for documents assigned to "Engineering". + // You can display nested facets in the search results so that documents can + // be searched not only by department but also by a sub department within a + // department. This helps your users further narrow their search. + // + // You can only have one nested facet within a facet. If you want to increase + // this limit, contact Support (http://aws.amazon.com/contact-us/). + Facets []*Facet `type:"list"` + + // Maximum number of facet values per facet. The default is 10. You can use + // this to limit the number of facet values to less than 10. If you want to + // increase the default, contact Support (http://aws.amazon.com/contact-us/). + MaxResults *int64 `type:"integer"` } // String returns the string representation. @@ -14650,6 +14924,16 @@ func (s *Facet) Validate() error { if s.DocumentAttributeKey != nil && len(*s.DocumentAttributeKey) < 1 { invalidParams.Add(request.NewErrParamMinLen("DocumentAttributeKey", 1)) } + if s.Facets != nil { + for i, v := range s.Facets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Facets", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -14663,6 +14947,18 @@ func (s *Facet) SetDocumentAttributeKey(v string) *Facet { return s } +// SetFacets sets the Facets field's value. +func (s *Facet) SetFacets(v []*Facet) *Facet { + s.Facets = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *Facet) SetMaxResults(v int64) *Facet { + s.MaxResults = &v + return s +} + // The facet values for the documents in the response. type FacetResult struct { _ struct{} `type:"structure"` @@ -18573,8 +18869,7 @@ type QueryInput struct { DocumentRelevanceOverrideConfigurations []*DocumentRelevanceConfiguration `type:"list"` // An array of documents attributes. Amazon Kendra returns a count for each - // attribute key specified. You can use this information to help narrow the - // search for your user. + // attribute key specified. This helps your users narrow their search. Facets []*Facet `type:"list"` // The unique identifier of the index to search. The identifier is returned @@ -18599,9 +18894,9 @@ type QueryInput struct { // The text to search for. QueryText *string `min:"1" type:"string"` - // An array of document attributes to include in the response. No other document - // attributes are included in the response. By default all document attributes - // are included in the response. + // An array of document attributes to include in the response. You can limit + // the response to include certain document attributes. By default all document + // attributes are included in the response. RequestedDocumentAttributes []*string `min:"1" type:"list"` // Provides information that determines how the results of the query are sorted. @@ -18882,8 +19177,8 @@ type QueryResultItem struct { // One or more additional attributes associated with the query result. AdditionalAttributes []*AdditionalResultAttribute `type:"list"` - // An array of document attributes for the document that the query result maps - // to. For example, the document author (Author) or the source URI (SourceUri) + // An array of document attributes assigned to a document in the search results. + // For example, the document author (_author) or the source URI (_source_uri) // of the document. DocumentAttributes []*DocumentAttribute `type:"list"` @@ -19089,22 +19384,26 @@ func (s *QuerySuggestionsBlockListSummary) SetUpdatedAt(v time.Time) *QuerySugge type QuipConfiguration struct { _ struct{} `type:"structure"` - // A list of field mappings to apply when indexing Quip attachments. + // A list of DataSourceToIndexFieldMapping objects that map attributes or field + // names of Quip attachments to Amazon Kendra index field names. To create custom + // fields, use the UpdateIndex API before you map to Quip fields. For more information, + // see Mapping data source fields (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). + // The Quip field names must exist in your Quip custom metadata. AttachmentFieldMappings []*DataSourceToIndexFieldMapping `min:"1" type:"list"` - // Specify whether to crawl attachments in your Quip data source. You can specify - // one or more of these options. + // Specify whether to crawl attachments in Quip. You can specify one or more + // of these options. CrawlAttachments *bool `type:"boolean"` - // Specify whether to crawl chat rooms in your Quip data source. You can specify - // one or more of these options. + // Specify whether to crawl chat rooms in Quip. You can specify one or more + // of these options. CrawlChatRooms *bool `type:"boolean"` - // Specify whether to crawl file comments in your Quip data source. You can - // specify one or more of these options. + // Specify whether to crawl file comments in Quip. You can specify one or more + // of these options. CrawlFileComments *bool `type:"boolean"` - // The configuration information to connect to your Quip data source domain. + // The Quip site domain. // // Domain is a required field Domain *string `min:"1" type:"string" required:"true"` @@ -19126,30 +19425,32 @@ type QuipConfiguration struct { // takes precedence, and the file isn't included in the index. InclusionPatterns []*string `type:"list"` - // A list of field mappings to apply when indexing Quip messages. + // A list of DataSourceToIndexFieldMapping objects that map attributes or field + // names of Quip messages to Amazon Kendra index field names. To create custom + // fields, use the UpdateIndex API before you map to Quip fields. For more information, + // see Mapping data source fields (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). + // The Quip field names must exist in your Quip custom metadata. MessageFieldMappings []*DataSourceToIndexFieldMapping `min:"1" type:"list"` // The Amazon Resource Name (ARN) of an Secrets Manager secret that contains - // the key-value pairs that are required to connect to your Quip file system. - // Windows is currently the only supported type. The secret must contain a JSON - // structure with the following keys: + // the key-value pairs that are required to connect to your Quip. The secret + // must contain a JSON structure with the following keys: // - // * username—The Active Directory user name, along with the Domain Name - // System (DNS) domain name. For example, user@corp.example.com. The Active - // Directory user account must have read and mounting access to the Quip - // file system for Windows. - // - // * password—The password of the Active Directory user account with read - // and mounting access to the Quip Windows file system. + // * accessToken—The token created in Quip. For more information, see Authentication + // for a Quip data source (https://docs.aws.amazon.com/kendra/latest/dg/data-source-slack.html#quip-authentication). // // SecretArn is a required field SecretArn *string `min:"1" type:"string" required:"true"` - // A list of field mappings to apply when indexing Quip threads. + // A list of DataSourceToIndexFieldMapping objects that map attributes or field + // names of Quip threads to Amazon Kendra index field names. To create custom + // fields, use the UpdateIndex API before you map to Quip fields. For more information, + // see Mapping data source fields (https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). + // The Quip field names must exist in your Quip custom metadata. ThreadFieldMappings []*DataSourceToIndexFieldMapping `min:"1" type:"list"` - // Configuration information for connecting to an Amazon Virtual Private Cloud - // (VPC) for your Quip. Your Quip instance must reside inside your VPC. + // Configuration information for an Amazon Virtual Private Cloud (VPC) to connect + // to your Quip. For more information, see Configuring a VPC (https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html). VpcConfiguration *DataSourceVpcConfiguration `type:"structure"` } diff --git a/service/kendra/kendraiface/interface.go b/service/kendra/kendraiface/interface.go index bd5682e2821..a1550624ce5 100644 --- a/service/kendra/kendraiface/interface.go +++ b/service/kendra/kendraiface/interface.go @@ -226,10 +226,16 @@ type KendraAPI interface { ListFaqsWithContext(aws.Context, *kendra.ListFaqsInput, ...request.Option) (*kendra.ListFaqsOutput, error) ListFaqsRequest(*kendra.ListFaqsInput) (*request.Request, *kendra.ListFaqsOutput) + ListFaqsPages(*kendra.ListFaqsInput, func(*kendra.ListFaqsOutput, bool) bool) error + ListFaqsPagesWithContext(aws.Context, *kendra.ListFaqsInput, func(*kendra.ListFaqsOutput, bool) bool, ...request.Option) error + ListGroupsOlderThanOrderingId(*kendra.ListGroupsOlderThanOrderingIdInput) (*kendra.ListGroupsOlderThanOrderingIdOutput, error) ListGroupsOlderThanOrderingIdWithContext(aws.Context, *kendra.ListGroupsOlderThanOrderingIdInput, ...request.Option) (*kendra.ListGroupsOlderThanOrderingIdOutput, error) ListGroupsOlderThanOrderingIdRequest(*kendra.ListGroupsOlderThanOrderingIdInput) (*request.Request, *kendra.ListGroupsOlderThanOrderingIdOutput) + ListGroupsOlderThanOrderingIdPages(*kendra.ListGroupsOlderThanOrderingIdInput, func(*kendra.ListGroupsOlderThanOrderingIdOutput, bool) bool) error + ListGroupsOlderThanOrderingIdPagesWithContext(aws.Context, *kendra.ListGroupsOlderThanOrderingIdInput, func(*kendra.ListGroupsOlderThanOrderingIdOutput, bool) bool, ...request.Option) error + ListIndices(*kendra.ListIndicesInput) (*kendra.ListIndicesOutput, error) ListIndicesWithContext(aws.Context, *kendra.ListIndicesInput, ...request.Option) (*kendra.ListIndicesOutput, error) ListIndicesRequest(*kendra.ListIndicesInput) (*request.Request, *kendra.ListIndicesOutput) @@ -241,6 +247,9 @@ type KendraAPI interface { ListQuerySuggestionsBlockListsWithContext(aws.Context, *kendra.ListQuerySuggestionsBlockListsInput, ...request.Option) (*kendra.ListQuerySuggestionsBlockListsOutput, error) ListQuerySuggestionsBlockListsRequest(*kendra.ListQuerySuggestionsBlockListsInput) (*request.Request, *kendra.ListQuerySuggestionsBlockListsOutput) + ListQuerySuggestionsBlockListsPages(*kendra.ListQuerySuggestionsBlockListsInput, func(*kendra.ListQuerySuggestionsBlockListsOutput, bool) bool) error + ListQuerySuggestionsBlockListsPagesWithContext(aws.Context, *kendra.ListQuerySuggestionsBlockListsInput, func(*kendra.ListQuerySuggestionsBlockListsOutput, bool) bool, ...request.Option) error + ListTagsForResource(*kendra.ListTagsForResourceInput) (*kendra.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *kendra.ListTagsForResourceInput, ...request.Option) (*kendra.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*kendra.ListTagsForResourceInput) (*request.Request, *kendra.ListTagsForResourceOutput) @@ -249,6 +258,9 @@ type KendraAPI interface { ListThesauriWithContext(aws.Context, *kendra.ListThesauriInput, ...request.Option) (*kendra.ListThesauriOutput, error) ListThesauriRequest(*kendra.ListThesauriInput) (*request.Request, *kendra.ListThesauriOutput) + ListThesauriPages(*kendra.ListThesauriInput, func(*kendra.ListThesauriOutput, bool) bool) error + ListThesauriPagesWithContext(aws.Context, *kendra.ListThesauriInput, func(*kendra.ListThesauriOutput, bool) bool, ...request.Option) error + PutPrincipalMapping(*kendra.PutPrincipalMappingInput) (*kendra.PutPrincipalMappingOutput, error) PutPrincipalMappingWithContext(aws.Context, *kendra.PutPrincipalMappingInput, ...request.Option) (*kendra.PutPrincipalMappingOutput, error) PutPrincipalMappingRequest(*kendra.PutPrincipalMappingInput) (*request.Request, *kendra.PutPrincipalMappingOutput)