diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a63a0621ad..5eedb4da859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +Release v1.51.19 (2024-04-10) +=== + +### Service Client Updates +* `service/cleanrooms`: Updates service API and documentation +* `service/connect`: Updates service API and documentation +* `service/networkmonitor`: Updates service documentation +* `service/qconnect`: Updates service API and documentation +* `service/rekognition`: Updates service API and documentation + * Added support for ContentType to content moderation detections. +* `service/supplychain`: Updates service API, documentation, and examples +* `service/workspaces-thin-client`: Updates service API and documentation + Release v1.51.18 (2024-04-09) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index dce59e4695a..6e388725038 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -4801,6 +4801,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-1", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-2", + }: endpoint{}, endpointKey{ Region: "bedrock-ap-northeast-1", }: endpoint{ @@ -4817,6 +4820,14 @@ var awsPartition = partition{ Region: "ap-southeast-1", }, }, + endpointKey{ + Region: "bedrock-ap-southeast-2", + }: endpoint{ + Hostname: "bedrock.ap-southeast-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ap-southeast-2", + }, + }, endpointKey{ Region: "bedrock-eu-central-1", }: endpoint{ @@ -4865,6 +4876,14 @@ var awsPartition = partition{ Region: "ap-southeast-1", }, }, + endpointKey{ + Region: "bedrock-runtime-ap-southeast-2", + }: endpoint{ + Hostname: "bedrock-runtime.ap-southeast-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ap-southeast-2", + }, + }, endpointKey{ Region: "bedrock-runtime-eu-central-1", }: endpoint{ diff --git a/aws/version.go b/aws/version.go index 05d4b65fd2a..ce5cc870115 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.51.18" +const SDKVersion = "1.51.19" diff --git a/models/apis/cleanrooms/2022-02-17/api-2.json b/models/apis/cleanrooms/2022-02-17/api-2.json index 4049422cd26..5763bfaa18a 100644 --- a/models/apis/cleanrooms/2022-02-17/api-2.json +++ b/models/apis/cleanrooms/2022-02-17/api-2.json @@ -1376,7 +1376,8 @@ "schema":{"shape":"AnalysisSchema"}, "format":{"shape":"AnalysisFormat"}, "source":{"shape":"AnalysisSource"}, - "analysisParameters":{"shape":"AnalysisParameterList"} + "analysisParameters":{"shape":"AnalysisParameterList"}, + "validations":{"shape":"AnalysisTemplateValidationStatusDetailList"} } }, "AnalysisTemplateArn":{ @@ -1438,6 +1439,45 @@ "max":90000, "min":0 }, + "AnalysisTemplateValidationStatus":{ + "type":"string", + "enum":[ + "VALID", + "INVALID", + "UNABLE_TO_VALIDATE" + ] + }, + "AnalysisTemplateValidationStatusDetail":{ + "type":"structure", + "required":[ + "type", + "status" + ], + "members":{ + "type":{"shape":"AnalysisTemplateValidationType"}, + "status":{"shape":"AnalysisTemplateValidationStatus"}, + "reasons":{"shape":"AnalysisTemplateValidationStatusReasonList"} + } + }, + "AnalysisTemplateValidationStatusDetailList":{ + "type":"list", + "member":{"shape":"AnalysisTemplateValidationStatusDetail"} + }, + "AnalysisTemplateValidationStatusReason":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + } + }, + "AnalysisTemplateValidationStatusReasonList":{ + "type":"list", + "member":{"shape":"AnalysisTemplateValidationStatusReason"} + }, + "AnalysisTemplateValidationType":{ + "type":"string", + "enum":["DIFFERENTIAL_PRIVACY"] + }, "BatchGetCollaborationAnalysisTemplateError":{ "type":"structure", "required":[ @@ -1642,7 +1682,8 @@ "schema":{"shape":"AnalysisSchema"}, "format":{"shape":"AnalysisFormat"}, "source":{"shape":"AnalysisSource"}, - "analysisParameters":{"shape":"AnalysisParameterList"} + "analysisParameters":{"shape":"AnalysisParameterList"}, + "validations":{"shape":"AnalysisTemplateValidationStatusDetailList"} } }, "CollaborationAnalysisTemplateList":{ diff --git a/models/apis/cleanrooms/2022-02-17/docs-2.json b/models/apis/cleanrooms/2022-02-17/docs-2.json index e99c4f042eb..68807bd0536 100644 --- a/models/apis/cleanrooms/2022-02-17/docs-2.json +++ b/models/apis/cleanrooms/2022-02-17/docs-2.json @@ -359,6 +359,43 @@ "AnalysisSource$text": "
The query text.
" } }, + "AnalysisTemplateValidationStatus": { + "base": null, + "refs": { + "AnalysisTemplateValidationStatusDetail$status": "The status of the validation.
" + } + }, + "AnalysisTemplateValidationStatusDetail": { + "base": "The status details of the analysis template validation. Clean Rooms Differential Privacy uses a general-purpose query structure to support complex SQL queries and validates whether an analysis template fits that general-purpose query structure. Validation is performed when analysis templates are created and fetched. Because analysis templates are immutable by design, we recommend that you create analysis templates after you associate the configured tables with their analysis rule to your collaboration.
For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy.
", + "refs": { + "AnalysisTemplateValidationStatusDetailList$member": null + } + }, + "AnalysisTemplateValidationStatusDetailList": { + "base": null, + "refs": { + "AnalysisTemplate$validations": "Information about the validations performed on the analysis template.
", + "CollaborationAnalysisTemplate$validations": "The validations that were performed.
" + } + }, + "AnalysisTemplateValidationStatusReason": { + "base": "The reasons for the validation results.
", + "refs": { + "AnalysisTemplateValidationStatusReasonList$member": null + } + }, + "AnalysisTemplateValidationStatusReasonList": { + "base": null, + "refs": { + "AnalysisTemplateValidationStatusDetail$reasons": "The reasons for the validation results.
" + } + }, + "AnalysisTemplateValidationType": { + "base": null, + "refs": { + "AnalysisTemplateValidationStatusDetail$type": "The type of validation that was performed.
" + } + }, "BatchGetCollaborationAnalysisTemplateError": { "base": "Details of errors thrown by the call to retrieve multiple analysis templates within a collaboration by their identifiers.
", "refs": { @@ -2247,6 +2284,7 @@ "base": null, "refs": { "AccessDeniedException$message": null, + "AnalysisTemplateValidationStatusReason$message": "The validation message.
", "BatchGetCollaborationAnalysisTemplateError$code": "An error code for the error.
", "BatchGetCollaborationAnalysisTemplateError$message": "A description of why the call failed.
", "BatchGetSchemaAnalysisRuleError$code": "An error code for the error.
", diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 2b47824cee5..2e67b6c762d 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -3985,7 +3985,8 @@ "SEND_NOTIFICATION", "CREATE_CASE", "UPDATE_CASE", - "END_ASSOCIATED_TASKS" + "END_ASSOCIATED_TASKS", + "SUBMIT_AUTO_EVALUATION" ] }, "ActivateEvaluationFormRequest":{ @@ -7747,6 +7748,11 @@ "max":1024, "min":0 }, + "EvaluationFormId":{ + "type":"string", + "max":256, + "min":1 + }, "EvaluationFormItem":{ "type":"structure", "members":{ @@ -12647,7 +12653,8 @@ "SendNotificationAction":{"shape":"SendNotificationActionDefinition"}, "CreateCaseAction":{"shape":"CreateCaseActionDefinition"}, "UpdateCaseAction":{"shape":"UpdateCaseActionDefinition"}, - "EndAssociatedTasksAction":{"shape":"EndAssociatedTasksActionDefinition"} + "EndAssociatedTasksAction":{"shape":"EndAssociatedTasksActionDefinition"}, + "SubmitAutoEvaluationAction":{"shape":"SubmitAutoEvaluationActionDefinition"} } }, "RuleActions":{ @@ -13678,6 +13685,13 @@ "max":200, "min":1 }, + "SubmitAutoEvaluationActionDefinition":{ + "type":"structure", + "required":["EvaluationFormId"], + "members":{ + "EvaluationFormId":{"shape":"EvaluationFormId"} + } + }, "SubmitContactEvaluationRequest":{ "type":"structure", "required":[ diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index ad07a466b09..8eb446b7684 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -665,9 +665,9 @@ "Applications": { "base": null, "refs": { - "CreateSecurityProfileRequest$Applications": "This API is in preview release for Amazon Connect and is subject to change.
A list of third-party applications that the security profile will give access to.
", - "ListSecurityProfileApplicationsResponse$Applications": "This API is in preview release for Amazon Connect and is subject to change.
A list of the third-party application's metadata.
", - "UpdateSecurityProfileRequest$Applications": "This API is in preview release for Amazon Connect and is subject to change.
A list of the third-party application's metadata.
" + "CreateSecurityProfileRequest$Applications": "A list of third-party applications that the security profile will give access to.
", + "ListSecurityProfileApplicationsResponse$Applications": "A list of the third-party application's metadata.
", + "UpdateSecurityProfileRequest$Applications": "A list of the third-party application's metadata.
" } }, "ApproximateTotalCount": { @@ -2688,6 +2688,12 @@ "UpdateEvaluationFormRequest$Description": "The description of the evaluation form.
" } }, + "EvaluationFormId": { + "base": null, + "refs": { + "SubmitAutoEvaluationActionDefinition$EvaluationFormId": "The identifier of the auto-evaluation enabled form.
" + } + }, "EvaluationFormItem": { "base": "Information about an item from an evaluation form. The item must be either a section or a question.
", "refs": { @@ -7184,6 +7190,12 @@ "SendNotificationActionDefinition$Subject": "The subject of the email if the delivery method is EMAIL
. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
Information about the submit automated evaluation action.
", + "refs": { + "RuleAction$SubmitAutoEvaluationAction": "Information about the submit automated evaluation action.
" + } + }, "SubmitContactEvaluationRequest": { "base": null, "refs": { diff --git a/models/apis/networkmonitor/2023-08-01/docs-2.json b/models/apis/networkmonitor/2023-08-01/docs-2.json index 8622af638d5..84e367b65e4 100644 --- a/models/apis/networkmonitor/2023-08-01/docs-2.json +++ b/models/apis/networkmonitor/2023-08-01/docs-2.json @@ -1,19 +1,19 @@ { "version": "2.0", - "service": "Amazon CloudWatch Network Monitor is an Amazon Web Services active network monitoring service that identifies if a network issues exists within the Amazon Web Services network or your own company network. Within Network Monitor you'll choose the source VPCs and subnets from the Amazon Web Services network in which you operate and then you'll choose the destination IP addresses from your on-premises network. From these sources and destinations, Network Monitor creates a monitor containing all the possible source and destination combinations, each of which is called a probe, within a single monitor. These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.
For more information, see Using Amazon CloudWatch Network Monitor in the Amazon CloudWatch User Guide.
", + "service": "Amazon CloudWatch Network Monitor is an Amazon Web Services active network monitoring service that identifies if a network issues exists within the Amazon Web Services network or your own company network. Within Network Monitor you'll choose the source VPCs and subnets from the Amazon Web Services network in which you operate and then you'll choose the destination IP addresses from your on-premises network. From these sources and destinations, Network Monitor creates a monitor containing all the possible source and destination combinations, each of which is called a probe, within a single monitor. These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.
Before you begin, ensure the Amazon Web Services CLI is configured in the Amazon Web Services Account where you will create the Network Monitor resource. Network Monitor doesn’t support creation on cross-account resources, but you can create a Network Monitor in any subnet belonging to a VPC owned by your Account.
For more information, see Using Amazon CloudWatch Network Monitor in the Amazon CloudWatch User Guide.
", "operations": { - "CreateMonitor": "Creates a monitor between a source subnet and destination IP address. Within a monitor you'll create one or more probes that monitor network traffic between your source Amazon Web Services VPC subnets and your destination IP addresses. Each probe then aggregates and sends metrics to Amazon CloudWatch.
", - "CreateProbe": "Create a probe within a monitor. Once you create a probe, and it begins monitoring your network traffic, you'll incur billing charges for that probe.
", - "DeleteMonitor": "Deletes a specified monitor.
", - "DeleteProbe": "Deletes the specified monitor. Once a probe is deleted you'll no longer incur any billing fees for that probe.
", - "GetMonitor": "Returns details about a specific monitor.
", - "GetProbe": "Returns the details about a probe. You'll need both the monitorName
and probeId
.
Creates a monitor between a source subnet and destination IP address. Within a monitor you'll create one or more probes that monitor network traffic between your source Amazon Web Services VPC subnets and your destination IP addresses. Each probe then aggregates and sends metrics to Amazon CloudWatch.
You can also create a monitor with probes using this command. For each probe, you define the following:
source
—The subnet IDs where the probes will be created.
destination
— The target destination IP address for the probe.
destinationPort
—Required only if the protocol is TCP
.
protocol
—The communication protocol between the source and destination. This will be either TCP
or ICMP
.
packetSize
—The size of the packets. This must be a number between 56
and 8500
.
(Optional) tags
—Key-value pairs created and assigned to the probe.
Create a probe within a monitor. Once you create a probe, and it begins monitoring your network traffic, you'll incur billing charges for that probe. This action requires the monitorName
parameter. Run ListMonitors
to get a list of monitor names. Note the name of the monitorName
you want to create the probe for.
Deletes a specified monitor.
This action requires the monitorName
parameter. Run ListMonitors
to get a list of monitor names.
Deletes the specified probe. Once a probe is deleted you'll no longer incur any billing fees for that probe.
This action requires both the monitorName
and probeId
parameters. Run ListMonitors
to get a list of monitor names. Run GetMonitor
to get a list of probes and probe IDs. You can only delete a single probe at a time using this action.
Returns details about a specific monitor.
This action requires the monitorName
parameter. Run ListMonitors
to get a list of monitor names.
Returns the details about a probe. This action requires both the monitorName
and probeId
parameters. Run ListMonitors
to get a list of monitor names. Run GetMonitor
to get a list of probes and probe IDs.
Returns a list of all of your monitors.
", "ListTagsForResource": "Lists the tags assigned to this resource.
", "TagResource": "Adds key-value pairs to a monitor or probe.
", "UntagResource": "Removes a key-value pair from a monitor or probe.
", - "UpdateMonitor": "Updates the aggregationPeriod
for a monitor. Monitors support an aggregationPeriod
of either 30
or 60
seconds.
Updates a monitor probe. This action requires both the monitorName
and probeId
parameters. Run ListMonitors
to get a list of monitor names. Run GetMonitor
to get a list of probes and probe IDs.
Updates the aggregationPeriod
for a monitor. Monitors support an aggregationPeriod
of either 30
or 60
seconds. This action requires the monitorName
and probeId
parameter. Run ListMonitors
to get a list of monitor names.
Updates a monitor probe. This action requires both the monitorName
and probeId
parameters. Run ListMonitors
to get a list of monitor names. Run GetMonitor
to get a list of probes and probe IDs.
You can update the following para create a monitor with probes using this command. For each probe, you define the following:
state
—The state of the probe.
destination
— The target destination IP address for the probe.
destinationPort
—Required only if the protocol is TCP
.
protocol
—The communication protocol between the source and destination. This will be either TCP
or ICMP
.
packetSize
—The size of the packets. This must be a number between 56
and 8500
.
(Optional) tags
—Key-value pairs created and assigned to the probe.
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30
or 60
.
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. This must be either 30
or 60
.
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30
or 60
. 60
is the default if no period is chosen.
The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. This will be either 30
or 60
.
The aggregation period for the specified monitor.
", "MonitorSummary$aggregationPeriod": "The time, in seconds, that metrics are collected and sent to Amazon CloudWatch. Valid values are either 30
or 60
.
The aggregation time, in seconds, to change to. This must be either 30
or 60
.
The state of the monitor.
", - "GetMonitorOutput$state": "Returns a list of the state of each monitor.
", + "GetMonitorOutput$state": "Lists the status of the state
of each monitor.
The state of the monitor.
", "UpdateMonitorOutput$state": "The state of the updated monitor.
" } @@ -255,7 +255,7 @@ } }, "Probe": { - "base": "Describes information about a monitor probe.
", + "base": "Describes information about a network monitor probe.
", "refs": { "ProbeList$member": null } @@ -264,11 +264,11 @@ "base": null, "refs": { "CreateProbeOutput$probeId": "The ID of the probe for which details are returned.
", - "DeleteProbeInput$probeId": "The ID of the probe to delete. Run GetMonitor
to get a lst of all probes and probe IDs associated with the monitor.
The ID of the probe to delete.
", "GetProbeInput$probeId": "The ID of the probe to get information about. Run GetMonitor
action to get a list of probes and probe IDs for the monitor.
The ID of the probe for which details are returned.
", "Probe$probeId": "The ID of the probe.
", - "UpdateProbeInput$probeId": "Run GetMonitor
to get a list of probes and probe IDs.
The ID of the probe to update.
", "UpdateProbeOutput$probeId": "The updated ID of the probe.
" } }, @@ -311,14 +311,14 @@ "refs": { "CreateMonitorInput$monitorName": "The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
", "CreateMonitorOutput$monitorName": "The name of the monitor.
", - "CreateProbeInput$monitorName": "The name of the monitor to associated with the probe. To get a list of available monitors, use ListMonitors
.
The name of the monitor to delete. Use the ListMonitors
action to get a list of your current monitors.
The name of the monitor to delete. For a list of the available monitors, use the ListMonitors
action.
The name of the monitor to associated with the probe.
", + "DeleteMonitorInput$monitorName": "The name of the monitor to delete.
", + "DeleteProbeInput$monitorName": "The name of the monitor to delete.
", "GetMonitorInput$monitorName": "The name of the monitor that details are returned for.
", - "GetMonitorOutput$monitorName": "The name of the monitor. To get a list of the current monitors and their names, use the ListMonitors
action.
The name of the monitor.
", "GetProbeInput$monitorName": "The name of the monitor associated with the probe. Run ListMonitors
to get a list of monitor names.
The name of the monitor.
", - "UpdateMonitorInput$monitorName": "The name of the monitor to update. Run ListMonitors
to get a list of monitor names.
The name of the monitor to update.
", "UpdateMonitorOutput$monitorName": "The name of the monitor that was updated.
", "UpdateProbeInput$monitorName": "The name of the monitor that the probe was updated for.
" } diff --git a/models/apis/qconnect/2020-10-19/api-2.json b/models/apis/qconnect/2020-10-19/api-2.json index 534bf68c63a..ab1f62e8338 100644 --- a/models/apis/qconnect/2020-10-19/api-2.json +++ b/models/apis/qconnect/2020-10-19/api-2.json @@ -112,6 +112,7 @@ "errors":[ {"shape":"ConflictException"}, {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"} ], "idempotent":true @@ -671,6 +672,21 @@ {"shape":"PreconditionFailedException"}, {"shape":"ResourceNotFoundException"} ] + }, + "UpdateSession":{ + "name":"UpdateSession", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/sessions/{sessionId}", + "responseCode":200 + }, + "input":{"shape":"UpdateSessionRequest"}, + "output":{"shape":"UpdateSessionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ] } }, "shapes":{ @@ -685,6 +701,10 @@ }, "exception":true }, + "AndConditions":{ + "type":"list", + "member":{"shape":"TagCondition"} + }, "AppIntegrationsConfiguration":{ "type":"structure", "required":["appIntegrationArn"], @@ -1179,6 +1199,7 @@ }, "description":{"shape":"Description"}, "name":{"shape":"Name"}, + "tagFilter":{"shape":"TagFilter"}, "tags":{"shape":"Tags"} } }, @@ -2110,6 +2131,18 @@ "max":100, "min":1 }, + "OrCondition":{ + "type":"structure", + "members":{ + "andConditions":{"shape":"AndConditions"}, + "tagCondition":{"shape":"TagCondition"} + }, + "union":true + }, + "OrConditions":{ + "type":"list", + "member":{"shape":"OrCondition"} + }, "Order":{ "type":"string", "enum":[ @@ -2814,6 +2847,7 @@ "name":{"shape":"Name"}, "sessionArn":{"shape":"Arn"}, "sessionId":{"shape":"Uuid"}, + "tagFilter":{"shape":"TagFilter"}, "tags":{"shape":"Tags"} } }, @@ -2938,6 +2972,23 @@ "type":"timestamp", "timestampFormat":"unixTimestamp" }, + "TagCondition":{ + "type":"structure", + "required":["key"], + "members":{ + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + } + }, + "TagFilter":{ + "type":"structure", + "members":{ + "andConditions":{"shape":"AndConditions"}, + "orConditions":{"shape":"OrConditions"}, + "tagCondition":{"shape":"TagCondition"} + }, + "union":true + }, "TagKey":{ "type":"string", "max":128, @@ -3125,6 +3176,33 @@ "quickResponse":{"shape":"QuickResponseData"} } }, + "UpdateSessionRequest":{ + "type":"structure", + "required":[ + "assistantId", + "sessionId" + ], + "members":{ + "assistantId":{ + "shape":"UuidOrArn", + "location":"uri", + "locationName":"assistantId" + }, + "description":{"shape":"Description"}, + "sessionId":{ + "shape":"UuidOrArn", + "location":"uri", + "locationName":"sessionId" + }, + "tagFilter":{"shape":"TagFilter"} + } + }, + "UpdateSessionResponse":{ + "type":"structure", + "members":{ + "session":{"shape":"SessionData"} + } + }, "UploadId":{ "type":"string", "max":1200, diff --git a/models/apis/qconnect/2020-10-19/docs-2.json b/models/apis/qconnect/2020-10-19/docs-2.json index c7092115882..2a708b85100 100644 --- a/models/apis/qconnect/2020-10-19/docs-2.json +++ b/models/apis/qconnect/2020-10-19/docs-2.json @@ -1,13 +1,13 @@ { "version": "2.0", - "service": "Powered by Amazon Bedrock: Amazon Web Services implements automated abuse detection. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of artificial intelligence (AI).
Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact center agents resolve customer issues quickly and accurately.
Amazon Q automatically detects customer intent during calls and chats using conversational analytics and natural language understanding (NLU). It then provides agents with immediate, real-time generative responses and suggested actions, and links to relevant documents and articles. Agents can also query Amazon Q directly using natural language or keywords to answer customer requests.
Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.
For more information, see Use Amazon Q in Connect for generative AI powered agent assistance in real-time in the Amazon Connect Administrator Guide.
", + "service": "Powered by Amazon Bedrock: Amazon Web Services implements automated abuse detection. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of artificial intelligence (AI).
Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact center agents resolve customer issues quickly and accurately.
Amazon Q in Connect automatically detects customer intent during calls and chats using conversational analytics and natural language understanding (NLU). It then provides agents with immediate, real-time generative responses and suggested actions, and links to relevant documents and articles. Agents can also query Amazon Q in Connect directly using natural language or keywords to answer customer requests.
Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.
For more information, see Use Amazon Q in Connect for generative AI powered agent assistance in real-time in the Amazon Connect Administrator Guide.
", "operations": { "CreateAssistant": "Creates an Amazon Q in Connect assistant.
", "CreateAssistantAssociation": "Creates an association between an Amazon Q in Connect assistant and another resource. Currently, the only supported association is with a knowledge base. An assistant can have only a single association.
", - "CreateContent": "Creates Amazon Q content. Before to calling this API, use StartContentUpload to upload an asset.
", + "CreateContent": "Creates Amazon Q in Connect content. Before to calling this API, use StartContentUpload to upload an asset.
", "CreateKnowledgeBase": "Creates a knowledge base.
When using this API, you cannot reuse Amazon AppIntegrations DataIntegrations with external knowledge bases such as Salesforce and ServiceNow. If you do, you'll get an InvalidRequestException
error.
For example, you're programmatically managing your external knowledge base, and you want to add or remove one of the fields that is being ingested from Salesforce. Do the following:
Call DeleteKnowledgeBase.
Call DeleteDataIntegration.
Call CreateDataIntegration to recreate the DataIntegration or a create different one.
Call CreateKnowledgeBase.
Creates an Amazon Q quick response.
", - "CreateSession": "Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Amazon Q session for each contact on which Amazon Q is enabled.
", + "CreateQuickResponse": "Creates an Amazon Q in Connect quick response.
", + "CreateSession": "Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.
", "DeleteAssistant": "Deletes an assistant.
", "DeleteAssistantAssociation": "Deletes an assistant association.
", "DeleteContent": "Deletes the content.
", @@ -21,7 +21,7 @@ "GetImportJob": "Retrieves the started import job.
", "GetKnowledgeBase": "Retrieves information about the knowledge base.
", "GetQuickResponse": "Retrieves the quick response.
", - "GetRecommendations": "Retrieves recommendations for the specified session. To avoid retrieving the same recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the waitTimeSeconds
parameter. Short poll is the default behavior and only returns recommendations already available. To perform a manual query against an assistant, use QueryAssistant.
This API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024, you will need to create a new Assistant in the Amazon Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications.
Retrieves recommendations for the specified session. To avoid retrieving the same recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the waitTimeSeconds
parameter. Short poll is the default behavior and only returns recommendations already available. To perform a manual query against an assistant, use QueryAssistant.
Retrieves information for a specified session.
", "ListAssistantAssociations": "Lists information about assistant associations.
", "ListAssistants": "Lists information about assistants.
", @@ -32,18 +32,19 @@ "ListTagsForResource": "Lists the tags for the specified resource.
", "NotifyRecommendationsReceived": "Removes the specified recommendations from the specified assistant's queue of newly available recommendations. You can use this API in conjunction with GetRecommendations and a waitTimeSeconds
input for long-polling behavior and avoiding duplicate recommendations.
Provides feedback against the specified assistant for the specified target. This API only supports generative targets.
", - "QueryAssistant": "Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.
", + "QueryAssistant": "This API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024, you will need to create a new Assistant in the Amazon Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications.
Performs a manual search against the specified assistant. To retrieve recommendations for an assistant, use GetRecommendations.
", "RemoveKnowledgeBaseTemplateUri": "Removes a URI template from a knowledge base.
", "SearchContent": "Searches for content in a specified knowledge base. Can be used to get a specific content resource by its name.
", - "SearchQuickResponses": "Searches existing Amazon Q quick responses in an Amazon Q knowledge base.
", + "SearchQuickResponses": "Searches existing Amazon Q in Connect quick responses in an Amazon Q in Connect knowledge base.
", "SearchSessions": "Searches for sessions.
", "StartContentUpload": "Get a URL to upload content to a knowledge base. To upload content, first make a PUT request to the returned URL with your file, making sure to include the required headers. Then use CreateContent to finalize the content creation process or UpdateContent to modify an existing resource. You can only upload content to a knowledge base of type CUSTOM.
", - "StartImportJob": "Start an asynchronous job to import Amazon Q resources from an uploaded source file. Before calling this API, use StartContentUpload to upload an asset that contains the resource data.
For importing Amazon Q quick responses, you need to upload a csv file including the quick responses. For information about how to format the csv file for importing quick responses, see Import quick responses.
Start an asynchronous job to import Amazon Q in Connect resources from an uploaded source file. Before calling this API, use StartContentUpload to upload an asset that contains the resource data.
For importing Amazon Q in Connect quick responses, you need to upload a csv file including the quick responses. For information about how to format the csv file for importing quick responses, see Import quick responses.
Adds the specified tags to the specified resource.
", "UntagResource": "Removes the specified tags from the specified resource.
", "UpdateContent": "Updates information about the content.
", - "UpdateKnowledgeBaseTemplateUri": "Updates the template URI of a knowledge base. This is only supported for knowledge bases of type EXTERNAL. Include a single variable in ${variable}
format; this interpolated by Amazon Q using ingested content. For example, if you ingest a Salesforce article, it has an Id
value, and you can set the template URI to https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*/view
.
Updates an existing Amazon Q quick response.
" + "UpdateKnowledgeBaseTemplateUri": "Updates the template URI of a knowledge base. This is only supported for knowledge bases of type EXTERNAL. Include a single variable in ${variable}
format; this interpolated by Amazon Q in Connect using ingested content. For example, if you ingest a Salesforce article, it has an Id
value, and you can set the template URI to https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*/view
.
Updates an existing Amazon Q in Connect quick response.
", + "UpdateSession": "Updates a session. A session is a contextual container used for generating recommendations. Amazon Connect updates the existing Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.
" }, "shapes": { "AccessDeniedException": { @@ -51,6 +52,13 @@ "refs": { } }, + "AndConditions": { + "base": null, + "refs": { + "OrCondition$andConditions": "A list of conditions which would be applied together with an AND
condition.
A list of conditions which would be applied together with an AND
condition.
Configuration information for Amazon AppIntegrations to automatically ingest content.
", "refs": { @@ -60,12 +68,12 @@ "Arn": { "base": null, "refs": { - "AssistantAssociationData$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q assistant.
", + "AssistantAssociationData$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
", "AssistantAssociationData$assistantAssociationArn": "The Amazon Resource Name (ARN) of the assistant association.
", - "AssistantAssociationSummary$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q assistant.
", + "AssistantAssociationSummary$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
", "AssistantAssociationSummary$assistantAssociationArn": "The Amazon Resource Name (ARN) of the assistant association.
", - "AssistantData$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q assistant.
", - "AssistantSummary$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q assistant.
", + "AssistantData$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
", + "AssistantSummary$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
", "ContentData$contentArn": "The Amazon Resource Name (ARN) of the content.
", "ContentData$knowledgeBaseArn": "The Amazon Resource Name (ARN) of the knowledge base.
", "ContentReference$contentArn": "The Amazon Resource Name (ARN) of the content.
", @@ -85,7 +93,7 @@ "QuickResponseSummary$knowledgeBaseArn": "The Amazon Resource Name (ARN) of the knowledge base.
", "QuickResponseSummary$quickResponseArn": "The Amazon Resource Name (ARN) of the quick response.
", "SessionData$sessionArn": "The Amazon Resource Name (ARN) of the session.
", - "SessionSummary$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q assistant.
", + "SessionSummary$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
", "SessionSummary$sessionArn": "The Amazon Resource Name (ARN) of the session.
", "TagResourceRequest$resourceArn": "The Amazon Resource Name (ARN) of the resource.
", "UntagResourceRequest$resourceArn": "The Amazon Resource Name (ARN) of the resource.
" @@ -99,7 +107,7 @@ } }, "AssistantAssociationInputData": { - "base": "The data that is input into Amazon Q as a result of the assistant association.
", + "base": "The data that is input into Amazon Q in Connect as a result of the assistant association.
", "refs": { "CreateAssistantAssociationRequest$association": "The identifier of the associated resource.
" } @@ -124,16 +132,16 @@ } }, "AssistantCapabilityConfiguration": { - "base": "The capability configuration for an Amazon Q assistant.
", + "base": "The capability configuration for an Amazon Q in Connect assistant.
", "refs": { - "AssistantData$capabilityConfiguration": "The configuration information for the Amazon Q assistant capability.
", - "AssistantSummary$capabilityConfiguration": "The configuration information for the Amazon Q assistant capability.
" + "AssistantData$capabilityConfiguration": "The configuration information for the Amazon Q in Connect assistant capability.
", + "AssistantSummary$capabilityConfiguration": "The configuration information for the Amazon Q in Connect assistant capability.
" } }, "AssistantCapabilityType": { "base": null, "refs": { - "AssistantCapabilityConfiguration$type": "The type of Amazon Q assistant capability.
" + "AssistantCapabilityConfiguration$type": "The type of Amazon Q in Connect assistant capability.
" } }, "AssistantData": { @@ -144,10 +152,10 @@ } }, "AssistantIntegrationConfiguration": { - "base": "The configuration information for the Amazon Q assistant integration.
", + "base": "The configuration information for the Amazon Q in Connect assistant integration.
", "refs": { - "AssistantData$integrationConfiguration": "The configuration information for the Amazon Q assistant integration.
", - "AssistantSummary$integrationConfiguration": "The configuration information for the Amazon Q assistant integration.
" + "AssistantData$integrationConfiguration": "The configuration information for the Amazon Q in Connect assistant integration.
", + "AssistantSummary$integrationConfiguration": "The configuration information for the Amazon Q in Connect assistant integration.
" } }, "AssistantList": { @@ -292,13 +300,13 @@ "ContentMetadata": { "base": null, "refs": { - "ContentData$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q, you can store an external version identifier as metadata to utilize for determining drift.
", - "ContentSummary$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q, you can store an external version identifier as metadata to utilize for determining drift.
", - "CreateContentRequest$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q, you can store an external version identifier as metadata to utilize for determining drift.
", - "ImportJobData$metadata": "The metadata fields of the imported Amazon Q resources.
", - "ImportJobSummary$metadata": "The metadata fields of the imported Amazon Q resources.
", - "StartImportJobRequest$metadata": "The metadata fields of the imported Amazon Q resources.
", - "UpdateContentRequest$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q, you can store an external version identifier as metadata to utilize for determining drift.
" + "ContentData$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.
", + "ContentSummary$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.
", + "CreateContentRequest$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.
", + "ImportJobData$metadata": "The metadata fields of the imported Amazon Q in Connect resources.
", + "ImportJobSummary$metadata": "The metadata fields of the imported Amazon Q in Connect resources.
", + "StartImportJobRequest$metadata": "The metadata fields of the imported Amazon Q in Connect resources.
", + "UpdateContentRequest$metadata": "A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.
" } }, "ContentReference": { @@ -502,7 +510,8 @@ "CreateSessionRequest$description": "The description.
", "KnowledgeBaseData$description": "The description.
", "KnowledgeBaseSummary$description": "The description of the knowledge base.
", - "SessionData$description": "The description of the session.
" + "SessionData$description": "The description of the session.
", + "UpdateSessionRequest$description": "The description.
" } }, "Document": { @@ -679,7 +688,7 @@ } }, "GroupingConfiguration": { - "base": "The configuration information of the grouping of Amazon Q users.
", + "base": "The configuration information of the grouping of Amazon Q in Connect users.
", "refs": { "CreateQuickResponseRequest$groupingConfiguration": "The configuration information of the user groups that the quick response is accessible to.
", "QuickResponseData$groupingConfiguration": "The configuration information of the user groups that the quick response is accessible to.
", @@ -690,7 +699,7 @@ "GroupingCriteria": { "base": null, "refs": { - "GroupingConfiguration$criteria": "The criteria used for grouping Amazon Q users.
The following is the list of supported criteria values.
RoutingProfileArn
: Grouping the users by their Amazon Connect routing profile ARN. User should have SearchRoutingProfile and DescribeRoutingProfile permissions when setting criteria to this value.
The criteria used for grouping Amazon Q in Connect users.
The following is the list of supported criteria values.
RoutingProfileArn
: Grouping the users by their Amazon Connect routing profile ARN. User should have SearchRoutingProfile and DescribeRoutingProfile permissions when setting criteria to this value.
The list of values that define different groups of Amazon Q users.
When setting criteria
to RoutingProfileArn
, you need to provide a list of ARNs of Amazon Connect routing profiles as values of this parameter.
The list of values that define different groups of Amazon Q in Connect users.
When setting criteria
to RoutingProfileArn
, you need to provide a list of ARNs of Amazon Connect routing profiles as values of this parameter.
The name of the attribute to query the quick responses by.
", "SearchQuickResponsesRequest$nextToken": "The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
", "SearchQuickResponsesResponse$nextToken": "The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
", - "ServerSideEncryptionConfiguration$kmsKeyId": "The customer managed key used for encryption. For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance. For information about valid ID values, see Key identifiers (KeyId).
", + "ServerSideEncryptionConfiguration$kmsKeyId": "The customer managed key used for encryption. For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance. For information about valid ID values, see Key identifiers (KeyId).
", "StartImportJobRequest$clientToken": "The tags used to organize, track, or control access for this resource.
", "UpdateContentRequest$revisionId": "The revisionId
of the content resource to update, taken from an earlier call to GetContent
, GetContentSummary
, SearchContent
, or ListContents
. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException
.
The fields from the source that are made available to your agents in Amazon Q. Optional if ObjectConfiguration is included in the provided DataIntegration.
For Salesforce, you must include at least Id
, ArticleNumber
, VersionNumber
, Title
, PublishStatus
, and IsDeleted
.
For ServiceNow, you must include at least number
, short_description
, sys_mod_count
, workflow_state
, and active
.
For Zendesk, you must include at least id
, title
, updated_at
, and draft
.
Make sure to include additional fields. These fields are indexed and used to source recommendations.
" + "AppIntegrationsConfiguration$objectFields": "The fields from the source that are made available to your agents in Amazon Q in Connect. Optional if ObjectConfiguration is included in the provided DataIntegration.
For Salesforce, you must include at least Id
, ArticleNumber
, VersionNumber
, Title
, PublishStatus
, and IsDeleted
.
For ServiceNow, you must include at least number
, short_description
, sys_mod_count
, workflow_state
, and active
.
For Zendesk, you must include at least id
, title
, updated_at
, and draft
.
Make sure to include additional fields. These fields are indexed and used to source recommendations.
" + } + }, + "OrCondition": { + "base": "A list of conditions which would be applied together with an OR
condition.
A list of conditions which would be applied together with an OR
condition.
The configuration information for the customer managed key used for encryption.
", "refs": { - "AssistantData$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q. To use Amazon Q with chat, the key policy must also allow kms:Decrypt
, kms:GenerateDataKey*
, and kms:DescribeKey
permissions to the connect.amazonaws.com
service principal.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
", - "AssistantSummary$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q. To use Amazon Q with chat, the key policy must also allow kms:Decrypt
, kms:GenerateDataKey*
, and kms:DescribeKey
permissions to the connect.amazonaws.com
service principal.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
", - "CreateAssistantRequest$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
The customer managed key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q. To use Amazon Q with chat, the key policy must also allow kms:Decrypt
, kms:GenerateDataKey*
, and kms:DescribeKey
permissions to the connect.amazonaws.com
service principal.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
", - "CreateKnowledgeBaseRequest$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
", - "KnowledgeBaseData$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
", - "KnowledgeBaseSummary$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
" + "AssistantData$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, the key policy must also allow kms:Decrypt
, kms:GenerateDataKey*
, and kms:DescribeKey
permissions to the connect.amazonaws.com
service principal.
For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
", + "AssistantSummary$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, the key policy must also allow kms:Decrypt
, kms:GenerateDataKey*
, and kms:DescribeKey
permissions to the connect.amazonaws.com
service principal.
For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
", + "CreateAssistantRequest$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
The customer managed key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, the key policy must also allow kms:Decrypt
, kms:GenerateDataKey*
, and kms:DescribeKey
permissions to the connect.amazonaws.com
service principal.
For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
", + "CreateKnowledgeBaseRequest$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect.
For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
", + "KnowledgeBaseData$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect.
For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
", + "KnowledgeBaseSummary$serverSideEncryptionConfiguration": "The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect.
For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
" } }, "ServiceQuotaExceededException": { @@ -1458,7 +1479,8 @@ "base": "Information about the session.
", "refs": { "CreateSessionResponse$session": "The session.
", - "GetSessionResponse$session": "The session.
" + "GetSessionResponse$session": "The session.
", + "UpdateSessionResponse$session": null } }, "SessionIntegrationConfiguration": { @@ -1562,9 +1584,26 @@ "StartContentUploadResponse$urlExpiry": "The expiration time of the URL as an epoch timestamp.
" } }, + "TagCondition": { + "base": "A leaf node condition which can be used to specify a tag condition.
", + "refs": { + "AndConditions$member": null, + "OrCondition$tagCondition": "A leaf node condition which can be used to specify a tag condition.
", + "TagFilter$tagCondition": "A leaf node condition which can be used to specify a tag condition.
" + } + }, + "TagFilter": { + "base": "An object that can be used to specify Tag conditions.
", + "refs": { + "CreateSessionRequest$tagFilter": "An object that can be used to specify Tag conditions.
", + "SessionData$tagFilter": "An object that can be used to specify Tag conditions.
", + "UpdateSessionRequest$tagFilter": "An object that can be used to specify Tag conditions.
" + } + }, "TagKey": { "base": null, "refs": { + "TagCondition$key": "The tag key in the tag condition.
", "TagKeyList$member": null, "Tags$key": null } @@ -1588,6 +1627,7 @@ "TagValue": { "base": null, "refs": { + "TagCondition$value": "The tag value in the tag condition.
", "Tags$value": null } }, @@ -1681,6 +1721,16 @@ "refs": { } }, + "UpdateSessionRequest": { + "base": null, + "refs": { + } + }, + "UpdateSessionResponse": { + "base": null, + "refs": { + } + }, "UploadId": { "base": null, "refs": { @@ -1715,41 +1765,41 @@ "base": null, "refs": { "AssistantAssociationData$assistantAssociationId": "The identifier of the assistant association.
", - "AssistantAssociationData$assistantId": "The identifier of the Amazon Q assistant.
", - "AssistantAssociationInputData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "AssistantAssociationData$assistantId": "The identifier of the Amazon Q in Connect assistant.
", + "AssistantAssociationInputData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base.
", "AssistantAssociationSummary$assistantAssociationId": "The identifier of the assistant association.
", - "AssistantAssociationSummary$assistantId": "The identifier of the Amazon Q assistant.
", - "AssistantData$assistantId": "The identifier of the Amazon Q assistant.
", - "AssistantSummary$assistantId": "The identifier of the Amazon Q assistant.
", + "AssistantAssociationSummary$assistantId": "The identifier of the Amazon Q in Connect assistant.
", + "AssistantData$assistantId": "The identifier of the Amazon Q in Connect assistant.
", + "AssistantSummary$assistantId": "The identifier of the Amazon Q in Connect assistant.
", "ContentData$contentId": "The identifier of the content.
", - "ContentData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "ContentData$knowledgeBaseId": "The identifier of the knowledge base.
", "ContentReference$contentId": "The identifier of the content.
", - "ContentReference$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "ContentReference$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base.
", "ContentSummary$contentId": "The identifier of the content.
", - "ContentSummary$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "ContentSummary$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base.
", "DeleteImportJobRequest$importJobId": "The identifier of the import job to be deleted.
", "GenerativeReference$generationId": "The identifier of the LLM model.
", "GetImportJobRequest$importJobId": "The identifier of the import job to retrieve.
", "ImportJobData$importJobId": "The identifier of the import job.
", - "ImportJobData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "ImportJobData$knowledgeBaseId": "The identifier of the knowledge base.
", "ImportJobSummary$importJobId": "The identifier of the import job.
", - "ImportJobSummary$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", - "KnowledgeBaseAssociationData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", - "KnowledgeBaseData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", - "KnowledgeBaseSummary$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "ImportJobSummary$knowledgeBaseId": "The identifier of the knowledge base.
", + "KnowledgeBaseAssociationData$knowledgeBaseId": "The identifier of the knowledge base.
", + "KnowledgeBaseData$knowledgeBaseId": "The identifier of the knowledge base.
", + "KnowledgeBaseSummary$knowledgeBaseId": "The identifier of the knowledge base.
", "PutFeedbackRequest$targetId": "The identifier of the feedback target.
", - "PutFeedbackResponse$assistantId": "The identifier of the Amazon Q assistant.
", + "PutFeedbackResponse$assistantId": "The identifier of the Amazon Q in Connect assistant.
", "PutFeedbackResponse$targetId": "The identifier of the feedback target.
", - "QuickResponseData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "QuickResponseData$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "QuickResponseData$quickResponseId": "The identifier of the quick response.
", - "QuickResponseSearchResultData$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "QuickResponseSearchResultData$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "QuickResponseSearchResultData$quickResponseId": "The identifier of the quick response.
", - "QuickResponseSummary$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "QuickResponseSummary$knowledgeBaseId": "The identifier of the knowledge base.
", "QuickResponseSummary$quickResponseId": "The identifier of the quick response.
", "RecommendationTrigger$id": "The identifier of the recommendation trigger.
", "ResultData$resultId": "The identifier of the result data.
", "SessionData$sessionId": "The identifier of the session.
", - "SessionSummary$assistantId": "The identifier of the Amazon Q assistant.
", + "SessionSummary$assistantId": "The identifier of the Amazon Q in Connect assistant.
", "SessionSummary$sessionId": "The identifier of the session.
", "SourceContentDataDetails$id": "The identifier of the source content.
" } @@ -1757,55 +1807,57 @@ "UuidOrArn": { "base": null, "refs": { - "CreateAssistantAssociationRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "CreateContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "CreateQuickResponseRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "CreateSessionRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "CreateAssistantAssociationRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "CreateContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "CreateQuickResponseRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "CreateSessionRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "DeleteAssistantAssociationRequest$assistantAssociationId": "The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "DeleteAssistantAssociationRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "DeleteAssistantRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "DeleteAssistantAssociationRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "DeleteAssistantRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "DeleteContentRequest$contentId": "The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "DeleteContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "DeleteImportJobRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "DeleteContentRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "DeleteImportJobRequest$knowledgeBaseId": "The identifier of the knowledge base.
", "DeleteKnowledgeBaseRequest$knowledgeBaseId": "The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "DeleteQuickResponseRequest$knowledgeBaseId": "The knowledge base from which the quick response is deleted. The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
", + "DeleteQuickResponseRequest$knowledgeBaseId": "The knowledge base from which the quick response is deleted. The identifier of the knowledge base.
", "DeleteQuickResponseRequest$quickResponseId": "The identifier of the quick response to delete.
", "GetAssistantAssociationRequest$assistantAssociationId": "The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "GetAssistantAssociationRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "GetAssistantRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "GetAssistantAssociationRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "GetAssistantRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "GetContentRequest$contentId": "The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "GetContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "GetContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "GetContentSummaryRequest$contentId": "The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "GetContentSummaryRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "GetContentSummaryRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "GetImportJobRequest$knowledgeBaseId": "The identifier of the knowledge base that the import job belongs to.
", - "GetKnowledgeBaseRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "GetKnowledgeBaseRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "GetQuickResponseRequest$knowledgeBaseId": "The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base.
", "GetQuickResponseRequest$quickResponseId": "The identifier of the quick response.
", - "GetRecommendationsRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "GetRecommendationsRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "GetRecommendationsRequest$sessionId": "The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "GetSessionRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "GetSessionRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "GetSessionRequest$sessionId": "The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "ListAssistantAssociationsRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "ListContentsRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "ListImportJobsRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "ListQuickResponsesRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "NotifyRecommendationsReceivedRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "ListAssistantAssociationsRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "ListContentsRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "ListImportJobsRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "ListQuickResponsesRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "NotifyRecommendationsReceivedRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "NotifyRecommendationsReceivedRequest$sessionId": "The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "PutFeedbackRequest$assistantId": "The identifier of the Amazon Q assistant.
", - "PutFeedbackResponse$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q assistant.
", - "QueryAssistantRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "QueryAssistantRequest$sessionId": "The identifier of the Amazon Q session. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "RemoveKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "SearchContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "PutFeedbackRequest$assistantId": "The identifier of the Amazon Q in Connect assistant.
", + "PutFeedbackResponse$assistantArn": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
", + "QueryAssistantRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "QueryAssistantRequest$sessionId": "The identifier of the Amazon Q in Connect session. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "RemoveKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "SearchContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", "SearchQuickResponsesRequest$knowledgeBaseId": "The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "SearchSessionsRequest$assistantId": "The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "StartContentUploadRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "StartImportJobRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
For importing Amazon Q quick responses, this should be a QUICK_RESPONSES
type knowledge base.
The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "StartContentUploadRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "StartImportJobRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
For importing Amazon Q in Connect quick responses, this should be a QUICK_RESPONSES
type knowledge base.
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "UpdateContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN
", - "UpdateKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "UpdateQuickResponseRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.
", - "UpdateQuickResponseRequest$quickResponseId": "The identifier of the quick response.
" + "UpdateContentRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN
", + "UpdateKnowledgeBaseTemplateUriRequest$knowledgeBaseId": "The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "UpdateQuickResponseRequest$knowledgeBaseId": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "UpdateQuickResponseRequest$quickResponseId": "The identifier of the quick response.
", + "UpdateSessionRequest$assistantId": "The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
", + "UpdateSessionRequest$sessionId": "The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
" } }, "ValidationException": { diff --git a/models/apis/rekognition/2016-06-27/api-2.json b/models/apis/rekognition/2016-06-27/api-2.json index 28fe66077b9..c426ba6bdd7 100644 --- a/models/apis/rekognition/2016-06-27/api-2.json +++ b/models/apis/rekognition/2016-06-27/api-2.json @@ -1761,7 +1761,8 @@ "ModerationLabel":{"shape":"ModerationLabel"}, "StartTimestampMillis":{"shape":"ULong"}, "EndTimestampMillis":{"shape":"ULong"}, - "DurationMillis":{"shape":"ULong"} + "DurationMillis":{"shape":"ULong"}, + "ContentTypes":{"shape":"ContentTypes"} } }, "ContentModerationDetections":{ diff --git a/models/apis/rekognition/2016-06-27/docs-2.json b/models/apis/rekognition/2016-06-27/docs-2.json index efbcc7d7584..257df81cfd8 100644 --- a/models/apis/rekognition/2016-06-27/docs-2.json +++ b/models/apis/rekognition/2016-06-27/docs-2.json @@ -450,6 +450,7 @@ "ContentTypes": { "base": null, "refs": { + "ContentModerationDetection$ContentTypes": "A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.
", "DetectModerationLabelsResponse$ContentTypes": "A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.
" } }, @@ -1992,7 +1993,7 @@ "LivenessSessionId": { "base": null, "refs": { - "CreateFaceLivenessSessionResponse$SessionId": "A unique 128-bit UUID identifying a Face Liveness session.
", + "CreateFaceLivenessSessionResponse$SessionId": "A unique 128-bit UUID identifying a Face Liveness session. A new sessionID must be used for every Face Liveness check. If a given sessionID is used for subsequent Face Liveness checks, the checks will fail. Additionally, a SessionId expires 3 minutes after it's sent, making all Liveness data associated with the session (e.g., sessionID, reference image, audit images, etc.) unavailable.
", "GetFaceLivenessSessionResultsRequest$SessionId": "A unique 128-bit UUID. This is used to uniquely identify the session and also acts as an idempotency token for all operations associated with the session.
", "GetFaceLivenessSessionResultsResponse$SessionId": "The sessionId for which this request was called.
" } diff --git a/models/apis/supplychain/2024-01-01/api-2.json b/models/apis/supplychain/2024-01-01/api-2.json index c18aa693d53..6d460a9fe47 100644 --- a/models/apis/supplychain/2024-01-01/api-2.json +++ b/models/apis/supplychain/2024-01-01/api-2.json @@ -50,6 +50,26 @@ {"shape":"InternalServerException"}, {"shape":"ConflictException"} ] + }, + "SendDataIntegrationEvent":{ + "name":"SendDataIntegrationEvent", + "http":{ + "method":"POST", + "requestUri":"/api-data/data-integration/instance/{instanceId}/data-integration-events", + "responseCode":200 + }, + "input":{"shape":"SendDataIntegrationEventRequest"}, + "output":{"shape":"SendDataIntegrationEventResponse"}, + "errors":[ + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ConflictException"} + ], + "idempotent":true } }, "shapes":{ @@ -137,6 +157,37 @@ "jobId":{"shape":"UUID"} } }, + "DataIntegrationEventData":{ + "type":"string", + "max":1048576, + "min":1, + "sensitive":true + }, + "DataIntegrationEventGroupId":{ + "type":"string", + "max":255, + "min":1 + }, + "DataIntegrationEventType":{ + "type":"string", + "enum":[ + "scn.data.forecast", + "scn.data.inventorylevel", + "scn.data.inboundorder", + "scn.data.inboundorderline", + "scn.data.inboundorderlineschedule", + "scn.data.outboundorderline", + "scn.data.outboundshipment", + "scn.data.processheader", + "scn.data.processoperation", + "scn.data.processproduct", + "scn.data.reservation", + "scn.data.shipment", + "scn.data.shipmentstop", + "scn.data.shipmentstoporder", + "scn.data.supplyplan" + ] + }, "GetBillOfMaterialsImportJobRequest":{ "type":"structure", "required":[ @@ -184,6 +235,37 @@ }, "exception":true }, + "SendDataIntegrationEventRequest":{ + "type":"structure", + "required":[ + "instanceId", + "eventType", + "data", + "eventGroupId" + ], + "members":{ + "instanceId":{ + "shape":"UUID", + "location":"uri", + "locationName":"instanceId" + }, + "eventType":{"shape":"DataIntegrationEventType"}, + "data":{"shape":"DataIntegrationEventData"}, + "eventGroupId":{"shape":"DataIntegrationEventGroupId"}, + "eventTimestamp":{"shape":"SyntheticTimestamp_epoch_seconds"}, + "clientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "SendDataIntegrationEventResponse":{ + "type":"structure", + "required":["eventId"], + "members":{ + "eventId":{"shape":"UUID"} + } + }, "ServiceQuotaExceededException":{ "type":"structure", "members":{ @@ -196,6 +278,10 @@ "exception":true }, "String":{"type":"string"}, + "SyntheticTimestamp_epoch_seconds":{ + "type":"timestamp", + "timestampFormat":"unixTimestamp" + }, "ThrottlingException":{ "type":"structure", "members":{ diff --git a/models/apis/supplychain/2024-01-01/docs-2.json b/models/apis/supplychain/2024-01-01/docs-2.json index 208754a9ca3..5ab7935d369 100644 --- a/models/apis/supplychain/2024-01-01/docs-2.json +++ b/models/apis/supplychain/2024-01-01/docs-2.json @@ -3,7 +3,8 @@ "service": "AWS Supply Chain is a cloud-based application that works with your enterprise resource planning (ERP) and supply chain management systems. Using AWS Supply Chain, you can connect and extract your inventory, supply, and demand related data from existing ERP or supply chain systems into a single data model.
The AWS Supply Chain API supports configuration data import for Supply Planning.
All AWS Supply chain API operations are Amazon-authenticated and certificate-signed. They not only require the use of the AWS SDK, but also allow for the exclusive use of AWS Identity and Access Management users and roles to help facilitate access, trust, and permission policies.
", "operations": { "CreateBillOfMaterialsImportJob": "CreateBillOfMaterialsImportJob creates an import job for the Product Bill Of Materials (BOM) entity. For information on the product_bom entity, see the AWS Supply Chain User Guide.
The CSV file must be located in an Amazon S3 location accessible to AWS Supply Chain. It is recommended to use the same Amazon S3 bucket created during your AWS Supply Chain instance creation.
", - "GetBillOfMaterialsImportJob": "Get status and details of a BillOfMaterialsImportJob.
" + "GetBillOfMaterialsImportJob": "Get status and details of a BillOfMaterialsImportJob.
", + "SendDataIntegrationEvent": "Send transactional data events with real-time data for analysis or monitoring.
" }, "shapes": { "AccessDeniedException": { @@ -20,7 +21,8 @@ "ClientToken": { "base": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
", "refs": { - "CreateBillOfMaterialsImportJobRequest$clientToken": "An idempotency token.
" + "CreateBillOfMaterialsImportJobRequest$clientToken": "An idempotency token.
", + "SendDataIntegrationEventRequest$clientToken": "The idempotent client token.
" } }, "ConfigurationJobStatus": { @@ -51,6 +53,24 @@ "refs": { } }, + "DataIntegrationEventData": { + "base": null, + "refs": { + "SendDataIntegrationEventRequest$data": "The data payload of the event.
" + } + }, + "DataIntegrationEventGroupId": { + "base": null, + "refs": { + "SendDataIntegrationEventRequest$eventGroupId": "Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning.
" + } + }, + "DataIntegrationEventType": { + "base": null, + "refs": { + "SendDataIntegrationEventRequest$eventType": "The data event type.
" + } + }, "GetBillOfMaterialsImportJobRequest": { "base": "The request parameters for GetBillOfMaterialsImportJob.
", "refs": { @@ -71,6 +91,16 @@ "refs": { } }, + "SendDataIntegrationEventRequest": { + "base": "The request parameters for SendDataIntegrationEvent.
", + "refs": { + } + }, + "SendDataIntegrationEventResponse": { + "base": "The response parameters for SendDataIntegrationEvent.
", + "refs": { + } + }, "ServiceQuotaExceededException": { "base": "Request would cause a service quota to be exceeded.
", "refs": { @@ -89,6 +119,12 @@ "ValidationException$message": null } }, + "SyntheticTimestamp_epoch_seconds": { + "base": null, + "refs": { + "SendDataIntegrationEventRequest$eventTimestamp": "The event timestamp (in epoch seconds).
" + } + }, "ThrottlingException": { "base": "Request was denied due to request throttling.
", "refs": { @@ -102,7 +138,9 @@ "CreateBillOfMaterialsImportJobRequest$instanceId": "The AWS Supply Chain instance identifier.
", "CreateBillOfMaterialsImportJobResponse$jobId": "The new BillOfMaterialsImportJob identifier.
", "GetBillOfMaterialsImportJobRequest$instanceId": "The AWS Supply Chain instance identifier.
", - "GetBillOfMaterialsImportJobRequest$jobId": "The BillOfMaterialsImportJob identifier.
" + "GetBillOfMaterialsImportJobRequest$jobId": "The BillOfMaterialsImportJob identifier.
", + "SendDataIntegrationEventRequest$instanceId": "The AWS Supply Chain instance identifier.
", + "SendDataIntegrationEventResponse$eventId": "The unique event identifier.
" } }, "ValidationException": { diff --git a/models/apis/supplychain/2024-01-01/examples-1.json b/models/apis/supplychain/2024-01-01/examples-1.json index 0ea7e3b0bbe..4fe63ad9e80 100644 --- a/models/apis/supplychain/2024-01-01/examples-1.json +++ b/models/apis/supplychain/2024-01-01/examples-1.json @@ -1,5 +1,266 @@ { "version": "1.0", "examples": { + "CreateBillOfMaterialsImportJob": [ + { + "input": { + "clientToken": "550e8400-e29b-41d4-a716-446655440000", + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "s3uri": "s3://mybucketname/pathelemene/file.csv" + }, + "output": { + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4" + }, + "id": "example-1", + "title": "Invoke CreateBillOfMaterialsImportJob" + } + ], + "GetBillOfMaterialsImportJob": [ + { + "input": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4" + }, + "output": { + "job": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4", + "message": "Import job completed successfully.", + "s3uri": "s3://mybucketname/pathelemene/file.csv", + "status": "SUCCESS" + } + }, + "id": "example-1", + "title": "Invoke GetBillOfMaterialsImportJob for a successful job" + }, + { + "input": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4" + }, + "output": { + "job": { + "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243", + "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4", + "s3uri": "s3://mybucketname/pathelemene/file.csv", + "status": "IN_PROGRESS" + } + }, + "id": "example-2", + "title": "Invoke GetBillOfMaterialsImportJob for an in-progress job" + } + ], + "SendDataIntegrationEvent": [ + { + "input": { + "data": "{\"id\": \"inbound-order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\" }", + "eventGroupId": "inboundOrderId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.inboundorder", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "c4132c1d-8f60-44a2-9932-f723c4f7b8a7" + }, + "id": "example-1", + "title": "Successful SendDataIntegrationEvent for inboundorder event type" + }, + { + "input": { + "data": "{\"id\": \"inbound-order-line-id-test-123\", \"order_id\": \"order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\", \"product_id\": \"product-id-test-123\", \"quantity_submitted\": \"100.0\" }", + "eventGroupId": "inboundOrderLineId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.inboundorderline", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "45d95db2-d106-40e0-aa98-f1204230a691" + }, + "id": "example-2", + "title": "Successful SendDataIntegrationEvent for inboundorderline event type" + }, + { + "input": { + "data": "{\"id\": \"inbound-order-line-schedule-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"product_id\": \"product-id-test-123\"}", + "eventGroupId": "inboundOrderLineScheduleId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.inboundorderlineschedule", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "5abba995-7735-4d1e-95c4-7cc93e48cf9f" + }, + "id": "example-3", + "title": "Successful SendDataIntegrationEvent for inboundorderlineschedule event type" + }, + { + "input": { + "data": "{\"snapshot_date\": \"1672470400000\", \"product_id\": \"product-id-test-123\", \"site_id\": \"site-id-test-123\", \"region_id\": \"region-id-test-123\", \"product_group_id\": \"product-group-id-test-123\", \"forecast_start_dttm\": \"1672470400000\", \"forecast_end_dttm\": \"1672470400000\" }", + "eventGroupId": "forecastId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.forecast", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "29312d5b-f499-4dcd-b017-3dab3cd34d61" + }, + "id": "example-4", + "title": "Successful SendDataIntegrationEvent for forecast event type" + }, + { + "input": { + "data": "{\"snapshot_date\": \"1672470400000\", \"site_id\": \"site-id-test-123\", \"product_id\": \"product-id-test-123\", \"on_hand_inventory\": \"100.0\", \"inv_condition\": \"good\", \"lot_number\": \"lot-number-test-123\"}", + "eventGroupId": "inventoryLevelId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.inventorylevel", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "3aa78324-acd8-4fdd-a19e-231ea003c2b3" + }, + "id": "example-5", + "title": "Successful SendDataIntegrationEvent for inventorylevel event type" + }, + { + "input": { + "data": "{\"id\": \"outbound-orderline-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"product_id\": \"product-id-test-123\" }", + "eventGroupId": "outboundOrderLineId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.outboundorderline", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "959b7ef9-5e2d-4795-b1ca-5b16a3eb6b89" + }, + "id": "example-6", + "title": "Successful SendDataIntegrationEvent for outboundorderline event type" + }, + { + "input": { + "data": "{\"id\": \"outbound-shipment-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"cust_order_line_id\": \"cust-order-line-id-test-123\", \"product_id\": \"product-id-test-123\" }", + "eventGroupId": "outboundShipmentId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.outboundshipment", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "59feded3-5e46-4126-81bf-0137ca176ee0" + }, + "id": "example-7", + "title": "Successful SendDataIntegrationEvent for outboundshipment event type" + }, + { + "input": { + "data": "{\"process_id\": \"process-id-test-123\" }", + "eventGroupId": "processHeaderId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.processheader", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "564130eb-2d8a-4550-a768-ddf0daf7b4a9" + }, + "id": "example-8", + "title": "Successful SendDataIntegrationEvent for processheader event type" + }, + { + "input": { + "data": "{\"process_operation_id\": \"process-operation-id-test-123\", \"process_id\": \"process-id-test-123\" }", + "eventGroupId": "processOperationId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.processoperation", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "db5df408-89c7-4b9f-a326-016f6c2b3396" + }, + "id": "example-9", + "title": "Successful SendDataIntegrationEvent for processoperation event type" + }, + { + "input": { + "data": "{\"process_product_id\": \"process-product-id-test-123\", \"process_id\": \"process-id-test-123\" }", + "eventGroupId": "processProductId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.processproduct", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "6929b275-485e-4035-a798-99077ca6d669" + }, + "id": "example-10", + "title": "Successful SendDataIntegrationEvent for processproduct event type" + }, + { + "input": { + "data": "{\"reservation_id\": \"reservation-id-test-123\", \"reservation_detail_id\": \"reservation-detail-id-test-123\" }", + "eventGroupId": "reservationId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.reservation", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "f6c55a8b-fde2-44f6-848a-9b4336c77209" + }, + "id": "example-11", + "title": "Successful SendDataIntegrationEvent for reservation event type" + }, + { + "input": { + "data": "{\"id\": \"shipment-id-test-123\", \"supplier_tpartner_id\": \"supplier-tpartner-id-test-123\", \"product_id\": \"product-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"package_id\": \"package-id-test-123\" }", + "eventGroupId": "shipmentId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.shipment", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "61d079d8-3f56-49bb-b35a-c0271a4e4f0a" + }, + "id": "example-12", + "title": "Successful SendDataIntegrationEvent for shipment event type" + }, + { + "input": { + "data": "{\"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }", + "eventGroupId": "shipmentStopId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.shipmentstop", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "3610992a-fc2f-4da4-9beb-724994622ba1" + }, + "id": "example-13", + "title": "Successful SendDataIntegrationEvent for shipmentstop event type" + }, + { + "input": { + "data": "{\"shipment_stop_order_id\": \"shipment-stop-order-id-test-123\", \"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }", + "eventGroupId": "shipmentStopOrderId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.shipmentstoporder", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "1d550a60-9321-4d25-a132-9dd4b2d9e934" + }, + "id": "example-14", + "title": "Successful SendDataIntegrationEvent for shipmentstoporder event type" + }, + { + "input": { + "data": "{\"supply_plan_id\": \"supply-plan-id-test-123\" }", + "eventGroupId": "supplyPlanId", + "eventTimestamp": 1515531081.123, + "eventType": "scn.data.supplyplan", + "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a" + }, + "output": { + "eventId": "9abaee56-5dc4-4c31-8250-3206a651d8a1" + }, + "id": "example-15", + "title": "Successful SendDataIntegrationEvent for supplyplan event type" + } + ] } } diff --git a/models/apis/workspaces-thin-client/2023-08-22/api-2.json b/models/apis/workspaces-thin-client/2023-08-22/api-2.json index cd0e70b618f..b62e22a50d0 100644 --- a/models/apis/workspaces-thin-client/2023-08-22/api-2.json +++ b/models/apis/workspaces-thin-client/2023-08-22/api-2.json @@ -208,8 +208,10 @@ "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServiceException"} + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} ], "endpoint":{"hostPrefix":"api."} }, @@ -224,8 +226,11 @@ "output":{"shape":"TagResourceResponse"}, "errors":[ {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServiceException"} + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} ], "endpoint":{"hostPrefix":"api."} }, @@ -240,8 +245,11 @@ "output":{"shape":"UntagResourceResponse"}, "errors":[ {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServiceException"} + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} ], "endpoint":{"hostPrefix":"api."}, "idempotent":true @@ -497,7 +505,7 @@ "updatedAt":{"shape":"Timestamp"}, "arn":{"shape":"Arn"}, "kmsKeyArn":{"shape":"KmsKeyArn"}, - "tags":{"shape":"EmbeddedTag"} + "tags":{"shape":"TagsMap"} } }, "DeviceId":{ @@ -547,18 +555,9 @@ "lastPostureAt":{"shape":"Timestamp"}, "createdAt":{"shape":"Timestamp"}, "updatedAt":{"shape":"Timestamp"}, - "arn":{"shape":"Arn"}, - "tags":{"shape":"EmbeddedTag"} + "arn":{"shape":"Arn"} } }, - "EmbeddedTag":{ - "type":"structure", - "members":{ - "resourceArn":{"shape":"String"}, - "internalId":{"shape":"String"} - }, - "sensitive":true - }, "Environment":{ "type":"structure", "members":{ @@ -580,7 +579,7 @@ "updatedAt":{"shape":"Timestamp"}, "arn":{"shape":"Arn"}, "kmsKeyArn":{"shape":"KmsKeyArn"}, - "tags":{"shape":"EmbeddedTag"} + "tags":{"shape":"TagsMap"} } }, "EnvironmentId":{ @@ -620,8 +619,7 @@ "pendingSoftwareSetId":{"shape":"SoftwareSetId"}, "createdAt":{"shape":"Timestamp"}, "updatedAt":{"shape":"Timestamp"}, - "arn":{"shape":"Arn"}, - "tags":{"shape":"EmbeddedTag"} + "arn":{"shape":"Arn"} } }, "ExceptionMessage":{"type":"string"}, @@ -701,20 +699,6 @@ "exception":true, "fault":true }, - "InternalServiceException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"}, - "retryAfterSeconds":{ - "shape":"RetryAfterSeconds", - "location":"header", - "locationName":"Retry-After" - } - }, - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, "KmsKeyArn":{ "type":"string", "max":2048, @@ -897,7 +881,8 @@ "supportedUntil":{"shape":"Timestamp"}, "validationStatus":{"shape":"SoftwareSetValidationStatus"}, "software":{"shape":"SoftwareList"}, - "arn":{"shape":"Arn"} + "arn":{"shape":"Arn"}, + "tags":{"shape":"TagsMap"} } }, "SoftwareSetId":{ diff --git a/models/apis/workspaces-thin-client/2023-08-22/docs-2.json b/models/apis/workspaces-thin-client/2023-08-22/docs-2.json index 38a0345c9a6..05f99ad9acf 100644 --- a/models/apis/workspaces-thin-client/2023-08-22/docs-2.json +++ b/models/apis/workspaces-thin-client/2023-08-22/docs-2.json @@ -186,15 +186,6 @@ "UpdateDeviceResponse$device": "Describes a device.
" } }, - "EmbeddedTag": { - "base": "The resource and internal ID of a resource to tag.
", - "refs": { - "Device$tags": "The tag keys and optional values for the resource.
", - "DeviceSummary$tags": "The tag keys and optional values for the resource.
", - "Environment$tags": "The tag keys and optional values for the resource.
", - "EnvironmentSummary$tags": "The tag keys and optional values for the resource.
" - } - }, "Environment": { "base": "Describes an environment.
", "refs": { @@ -248,7 +239,6 @@ "AccessDeniedException$message": null, "ConflictException$message": null, "InternalServerException$message": null, - "InternalServiceException$message": null, "ResourceNotFoundException$message": null, "ServiceQuotaExceededException$message": null, "ThrottlingException$message": null, @@ -310,11 +300,6 @@ "refs": { } }, - "InternalServiceException": { - "base": "Request processing failed due to some unknown error, exception, or failure.
", - "refs": { - } - }, "KmsKeyArn": { "base": null, "refs": { @@ -436,7 +421,6 @@ "base": null, "refs": { "InternalServerException$retryAfterSeconds": "The number of seconds to wait before retrying the next request.
", - "InternalServiceException$retryAfterSeconds": "The number of seconds to wait before retrying the next request.
", "ThrottlingException$retryAfterSeconds": "The number of seconds to wait before retrying the next request.
" } }, @@ -553,8 +537,6 @@ "Device$pendingSoftwareSetVersion": "The version of the software set that is pending to be installed on the device.
", "DeviceSummary$serialNumber": "The hardware serial number of the device.
", "DeviceSummary$model": "The model number of the device.
", - "EmbeddedTag$resourceArn": "The Amazon Resource Name (ARN) of a resource to tag.
", - "EmbeddedTag$internalId": "The internal ID of a resource to tag.
", "Environment$pendingSoftwareSetVersion": "The version of the software set that is pending to be installed.
", "ListTagsForResourceRequest$resourceArn": "The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.
", "Software$name": "The name of the software component.
", @@ -588,7 +570,10 @@ "base": null, "refs": { "CreateEnvironmentRequest$tags": "A map of the key-value pairs of the tag or tags to assign to the resource.
", + "Device$tags": "The tag keys and optional values for the resource.
", + "Environment$tags": "The tag keys and optional values for the resource.
", "ListTagsForResourceResponse$tags": "A map of the key-value pairs for the tag or tags assigned to the specified resource.
", + "SoftwareSet$tags": "The tag keys and optional values for the resource.
", "TagResourceRequest$tags": "A map of the key-value pairs of the tag or tags to assign to the resource.
" } }, diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 549dad4a1ce..7201fc96511 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -2641,6 +2641,7 @@ "endpoints" : { "ap-northeast-1" : { }, "ap-southeast-1" : { }, + "ap-southeast-2" : { }, "bedrock-ap-northeast-1" : { "credentialScope" : { "region" : "ap-northeast-1" @@ -2653,6 +2654,12 @@ }, "hostname" : "bedrock.ap-southeast-1.amazonaws.com" }, + "bedrock-ap-southeast-2" : { + "credentialScope" : { + "region" : "ap-southeast-2" + }, + "hostname" : "bedrock.ap-southeast-2.amazonaws.com" + }, "bedrock-eu-central-1" : { "credentialScope" : { "region" : "eu-central-1" @@ -2689,6 +2696,12 @@ }, "hostname" : "bedrock-runtime.ap-southeast-1.amazonaws.com" }, + "bedrock-runtime-ap-southeast-2" : { + "credentialScope" : { + "region" : "ap-southeast-2" + }, + "hostname" : "bedrock-runtime.ap-southeast-2.amazonaws.com" + }, "bedrock-runtime-eu-central-1" : { "credentialScope" : { "region" : "eu-central-1" diff --git a/service/cleanrooms/api.go b/service/cleanrooms/api.go index 387a30f56e1..0d9fed78009 100644 --- a/service/cleanrooms/api.go +++ b/service/cleanrooms/api.go @@ -7561,6 +7561,9 @@ type AnalysisTemplate struct { // // UpdateTime is a required field UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` + + // Information about the validations performed on the analysis template. + Validations []*AnalysisTemplateValidationStatusDetail `locationName:"validations" type:"list"` } // String returns the string representation. @@ -7665,6 +7668,12 @@ func (s *AnalysisTemplate) SetUpdateTime(v time.Time) *AnalysisTemplate { return s } +// SetValidations sets the Validations field's value. +func (s *AnalysisTemplate) SetValidations(v []*AnalysisTemplateValidationStatusDetail) *AnalysisTemplate { + s.Validations = v + return s +} + // The metadata of the analysis template. type AnalysisTemplateSummary struct { _ struct{} `type:"structure"` @@ -7797,6 +7806,103 @@ func (s *AnalysisTemplateSummary) SetUpdateTime(v time.Time) *AnalysisTemplateSu return s } +// The status details of the analysis template validation. Clean Rooms Differential +// Privacy uses a general-purpose query structure to support complex SQL queries +// and validates whether an analysis template fits that general-purpose query +// structure. Validation is performed when analysis templates are created and +// fetched. Because analysis templates are immutable by design, we recommend +// that you create analysis templates after you associate the configured tables +// with their analysis rule to your collaboration. +// +// For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy +// (https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy). +type AnalysisTemplateValidationStatusDetail struct { + _ struct{} `type:"structure"` + + // The reasons for the validation results. + Reasons []*AnalysisTemplateValidationStatusReason `locationName:"reasons" type:"list"` + + // The status of the validation. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"AnalysisTemplateValidationStatus"` + + // The type of validation that was performed. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"AnalysisTemplateValidationType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnalysisTemplateValidationStatusDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnalysisTemplateValidationStatusDetail) GoString() string { + return s.String() +} + +// SetReasons sets the Reasons field's value. +func (s *AnalysisTemplateValidationStatusDetail) SetReasons(v []*AnalysisTemplateValidationStatusReason) *AnalysisTemplateValidationStatusDetail { + s.Reasons = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AnalysisTemplateValidationStatusDetail) SetStatus(v string) *AnalysisTemplateValidationStatusDetail { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *AnalysisTemplateValidationStatusDetail) SetType(v string) *AnalysisTemplateValidationStatusDetail { + s.Type = &v + return s +} + +// The reasons for the validation results. +type AnalysisTemplateValidationStatusReason struct { + _ struct{} `type:"structure"` + + // The validation message. + // + // Message is a required field + Message *string `locationName:"message" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnalysisTemplateValidationStatusReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnalysisTemplateValidationStatusReason) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *AnalysisTemplateValidationStatusReason) SetMessage(v string) *AnalysisTemplateValidationStatusReason { + s.Message = &v + return s +} + // Details of errors thrown by the call to retrieve multiple analysis templates // within a collaboration by their identifiers. type BatchGetCollaborationAnalysisTemplateError struct { @@ -8557,6 +8663,9 @@ type CollaborationAnalysisTemplate struct { // // UpdateTime is a required field UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` + + // The validations that were performed. + Validations []*AnalysisTemplateValidationStatusDetail `locationName:"validations" type:"list"` } // String returns the string representation. @@ -8655,6 +8764,12 @@ func (s *CollaborationAnalysisTemplate) SetUpdateTime(v time.Time) *Collaboratio return s } +// SetValidations sets the Validations field's value. +func (s *CollaborationAnalysisTemplate) SetValidations(v []*AnalysisTemplateValidationStatusDetail) *CollaborationAnalysisTemplate { + s.Validations = v + return s +} + // The metadata of the analysis template within a collaboration. type CollaborationAnalysisTemplateSummary struct { _ struct{} `type:"structure"` @@ -21395,6 +21510,38 @@ func AnalysisRuleType_Values() []string { } } +const ( + // AnalysisTemplateValidationStatusValid is a AnalysisTemplateValidationStatus enum value + AnalysisTemplateValidationStatusValid = "VALID" + + // AnalysisTemplateValidationStatusInvalid is a AnalysisTemplateValidationStatus enum value + AnalysisTemplateValidationStatusInvalid = "INVALID" + + // AnalysisTemplateValidationStatusUnableToValidate is a AnalysisTemplateValidationStatus enum value + AnalysisTemplateValidationStatusUnableToValidate = "UNABLE_TO_VALIDATE" +) + +// AnalysisTemplateValidationStatus_Values returns all elements of the AnalysisTemplateValidationStatus enum +func AnalysisTemplateValidationStatus_Values() []string { + return []string{ + AnalysisTemplateValidationStatusValid, + AnalysisTemplateValidationStatusInvalid, + AnalysisTemplateValidationStatusUnableToValidate, + } +} + +const ( + // AnalysisTemplateValidationTypeDifferentialPrivacy is a AnalysisTemplateValidationType enum value + AnalysisTemplateValidationTypeDifferentialPrivacy = "DIFFERENTIAL_PRIVACY" +) + +// AnalysisTemplateValidationType_Values returns all elements of the AnalysisTemplateValidationType enum +func AnalysisTemplateValidationType_Values() []string { + return []string{ + AnalysisTemplateValidationTypeDifferentialPrivacy, + } +} + const ( // CollaborationQueryLogStatusEnabled is a CollaborationQueryLogStatus enum value CollaborationQueryLogStatusEnabled = "ENABLED" diff --git a/service/connect/api.go b/service/connect/api.go index 24143f5dda8..e5e31776fb0 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -34476,8 +34476,6 @@ type CreateSecurityProfileInput struct { // in Amazon Connect. AllowedAccessControlTags map[string]*string `type:"map"` - // This API is in preview release for Amazon Connect and is subject to change. - // // A list of third-party applications that the security profile will give access // to. Applications []*Application `type:"list"` @@ -54918,8 +54916,6 @@ func (s *ListSecurityProfileApplicationsInput) SetSecurityProfileId(v string) *L type ListSecurityProfileApplicationsOutput struct { _ struct{} `type:"structure"` - // This API is in preview release for Amazon Connect and is subject to change. - // // A list of the third-party application's metadata. Applications []*Application `type:"list"` @@ -62395,6 +62391,9 @@ type RuleAction struct { // | OnContactEvaluationSubmit | OnMetricDataUpdate SendNotificationAction *SendNotificationActionDefinition `type:"structure"` + // Information about the submit automated evaluation action. + SubmitAutoEvaluationAction *SubmitAutoEvaluationActionDefinition `type:"structure"` + // Information about the task action. This field is required if TriggerEventSource // is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate // | OnSalesforceCaseCreate @@ -62445,6 +62444,11 @@ func (s *RuleAction) Validate() error { invalidParams.AddNested("SendNotificationAction", err.(request.ErrInvalidParams)) } } + if s.SubmitAutoEvaluationAction != nil { + if err := s.SubmitAutoEvaluationAction.Validate(); err != nil { + invalidParams.AddNested("SubmitAutoEvaluationAction", err.(request.ErrInvalidParams)) + } + } if s.TaskAction != nil { if err := s.TaskAction.Validate(); err != nil { invalidParams.AddNested("TaskAction", err.(request.ErrInvalidParams)) @@ -62498,6 +62502,12 @@ func (s *RuleAction) SetSendNotificationAction(v *SendNotificationActionDefiniti return s } +// SetSubmitAutoEvaluationAction sets the SubmitAutoEvaluationAction field's value. +func (s *RuleAction) SetSubmitAutoEvaluationAction(v *SubmitAutoEvaluationActionDefinition) *RuleAction { + s.SubmitAutoEvaluationAction = v + return s +} + // SetTaskAction sets the TaskAction field's value. func (s *RuleAction) SetTaskAction(v *TaskActionDefinition) *RuleAction { s.TaskAction = v @@ -67781,6 +67791,56 @@ func (s *StringReference) SetValue(v string) *StringReference { return s } +// Information about the submit automated evaluation action. +type SubmitAutoEvaluationActionDefinition struct { + _ struct{} `type:"structure"` + + // The identifier of the auto-evaluation enabled form. + // + // EvaluationFormId is a required field + EvaluationFormId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SubmitAutoEvaluationActionDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SubmitAutoEvaluationActionDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SubmitAutoEvaluationActionDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SubmitAutoEvaluationActionDefinition"} + if s.EvaluationFormId == nil { + invalidParams.Add(request.NewErrParamRequired("EvaluationFormId")) + } + if s.EvaluationFormId != nil && len(*s.EvaluationFormId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EvaluationFormId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEvaluationFormId sets the EvaluationFormId field's value. +func (s *SubmitAutoEvaluationActionDefinition) SetEvaluationFormId(v string) *SubmitAutoEvaluationActionDefinition { + s.EvaluationFormId = &v + return s +} + type SubmitContactEvaluationInput struct { _ struct{} `type:"structure"` @@ -74017,8 +74077,6 @@ type UpdateSecurityProfileInput struct { // in Amazon Connect. AllowedAccessControlTags map[string]*string `type:"map"` - // This API is in preview release for Amazon Connect and is subject to change. - // // A list of the third-party application's metadata. Applications []*Application `type:"list"` @@ -77698,6 +77756,9 @@ const ( // ActionTypeEndAssociatedTasks is a ActionType enum value ActionTypeEndAssociatedTasks = "END_ASSOCIATED_TASKS" + + // ActionTypeSubmitAutoEvaluation is a ActionType enum value + ActionTypeSubmitAutoEvaluation = "SUBMIT_AUTO_EVALUATION" ) // ActionType_Values returns all elements of the ActionType enum @@ -77710,6 +77771,7 @@ func ActionType_Values() []string { ActionTypeCreateCase, ActionTypeUpdateCase, ActionTypeEndAssociatedTasks, + ActionTypeSubmitAutoEvaluation, } } diff --git a/service/networkmonitor/api.go b/service/networkmonitor/api.go index 9432a7722ac..0623c36bae6 100644 --- a/service/networkmonitor/api.go +++ b/service/networkmonitor/api.go @@ -61,6 +61,23 @@ func (c *NetworkMonitor) CreateMonitorRequest(input *CreateMonitorInput) (req *r // your source Amazon Web Services VPC subnets and your destination IP addresses. // Each probe then aggregates and sends metrics to Amazon CloudWatch. // +// You can also create a monitor with probes using this command. For each probe, +// you define the following: +// +// - source—The subnet IDs where the probes will be created. +// +// - destination— The target destination IP address for the probe. +// +// - destinationPort—Required only if the protocol is TCP. +// +// - protocol—The communication protocol between the source and destination. +// This will be either TCP or ICMP. +// +// - packetSize—The size of the packets. This must be a number between +// 56 and 8500. +// +// - (Optional) tags —Key-value pairs created and assigned to the probe. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -155,7 +172,9 @@ func (c *NetworkMonitor) CreateProbeRequest(input *CreateProbeInput) (req *reque // CreateProbe API operation for Amazon CloudWatch Network Monitor. // // Create a probe within a monitor. Once you create a probe, and it begins monitoring -// your network traffic, you'll incur billing charges for that probe. +// your network traffic, you'll incur billing charges for that probe. This action +// requires the monitorName parameter. Run ListMonitors to get a list of monitor +// names. Note the name of the monitorName you want to create the probe for. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -253,6 +272,9 @@ func (c *NetworkMonitor) DeleteMonitorRequest(input *DeleteMonitorInput) (req *r // // Deletes a specified monitor. // +// This action requires the monitorName parameter. Run ListMonitors to get a +// list of monitor names. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -344,9 +366,13 @@ func (c *NetworkMonitor) DeleteProbeRequest(input *DeleteProbeInput) (req *reque // DeleteProbe API operation for Amazon CloudWatch Network Monitor. // -// Deletes the specified monitor. Once a probe is deleted you'll no longer incur +// Deletes the specified probe. Once a probe is deleted you'll no longer incur // any billing fees for that probe. // +// This action requires both the monitorName and probeId parameters. Run ListMonitors +// to get a list of monitor names. Run GetMonitor to get a list of probes and +// probe IDs. You can only delete a single probe at a time using this action. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -442,6 +468,9 @@ func (c *NetworkMonitor) GetMonitorRequest(input *GetMonitorInput) (req *request // // Returns details about a specific monitor. // +// This action requires the monitorName parameter. Run ListMonitors to get a +// list of monitor names. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -532,7 +561,9 @@ func (c *NetworkMonitor) GetProbeRequest(input *GetProbeInput) (req *request.Req // GetProbe API operation for Amazon CloudWatch Network Monitor. // -// Returns the details about a probe. You'll need both the monitorName and probeId. +// Returns the details about a probe. This action requires both the monitorName +// and probeId parameters. Run ListMonitors to get a list of monitor names. +// Run GetMonitor to get a list of probes and probe IDs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1058,7 +1089,8 @@ func (c *NetworkMonitor) UpdateMonitorRequest(input *UpdateMonitorInput) (req *r // UpdateMonitor API operation for Amazon CloudWatch Network Monitor. // // Updates the aggregationPeriod for a monitor. Monitors support an aggregationPeriod -// of either 30 or 60 seconds. +// of either 30 or 60 seconds. This action requires the monitorName and probeId +// parameter. Run ListMonitors to get a list of monitor names. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1157,6 +1189,23 @@ func (c *NetworkMonitor) UpdateProbeRequest(input *UpdateProbeInput) (req *reque // parameters. Run ListMonitors to get a list of monitor names. Run GetMonitor // to get a list of probes and probe IDs. // +// You can update the following para create a monitor with probes using this +// command. For each probe, you define the following: +// +// - state—The state of the probe. +// +// - destination— The target destination IP address for the probe. +// +// - destinationPort—Required only if the protocol is TCP. +// +// - protocol—The communication protocol between the source and destination. +// This will be either TCP or ICMP. +// +// - packetSize—The size of the packets. This must be a number between +// 56 and 8500. +// +// - (Optional) tags —Key-value pairs created and assigned to the probe. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1339,7 +1388,7 @@ type CreateMonitorInput struct { _ struct{} `type:"structure"` // The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. - // Valid values are either 30 or 60. + // Valid values are either 30 or 60. 60 is the default if no period is chosen. AggregationPeriod *int64 `locationName:"aggregationPeriod" min:"30" type:"long"` // Unique, case-sensitive identifier to ensure the idempotency of the request. @@ -1440,7 +1489,7 @@ type CreateMonitorOutput struct { _ struct{} `type:"structure"` // The number of seconds that metrics are aggregated by and sent to Amazon CloudWatch. - // This must be either 30 or 60. + // This will be either 30 or 60. AggregationPeriod *int64 `locationName:"aggregationPeriod" min:"30" type:"long"` // The ARN of the monitor. @@ -1631,8 +1680,7 @@ type CreateProbeInput struct { // Only returned if a client token was provided in the request. ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` - // The name of the monitor to associated with the probe. To get a list of available - // monitors, use ListMonitors. + // The name of the monitor to associated with the probe. // // MonitorName is a required field MonitorName *string `location:"uri" locationName:"monitorName" min:"1" type:"string" required:"true"` @@ -1864,8 +1912,7 @@ func (s *CreateProbeOutput) SetVpcId(v string) *CreateProbeOutput { type DeleteMonitorInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The name of the monitor to delete. Use the ListMonitors action to get a list - // of your current monitors. + // The name of the monitor to delete. // // MonitorName is a required field MonitorName *string `location:"uri" locationName:"monitorName" min:"1" type:"string" required:"true"` @@ -1936,14 +1983,12 @@ func (s DeleteMonitorOutput) GoString() string { type DeleteProbeInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The name of the monitor to delete. For a list of the available monitors, - // use the ListMonitors action. + // The name of the monitor to delete. // // MonitorName is a required field MonitorName *string `location:"uri" locationName:"monitorName" min:"1" type:"string" required:"true"` - // The ID of the probe to delete. Run GetMonitor to get a lst of all probes - // and probe IDs associated with the monitor. + // The ID of the probe to delete. // // ProbeId is a required field ProbeId *string `location:"uri" locationName:"probeId" type:"string" required:"true"` @@ -2095,8 +2140,7 @@ type GetMonitorOutput struct { // MonitorArn is a required field MonitorArn *string `locationName:"monitorArn" min:"20" type:"string" required:"true"` - // The name of the monitor. To get a list of the current monitors and their - // names, use the ListMonitors action. + // The name of the monitor. // // MonitorName is a required field MonitorName *string `locationName:"monitorName" min:"1" type:"string" required:"true"` @@ -2104,7 +2148,7 @@ type GetMonitorOutput struct { // The details about each probe associated with that monitor. Probes []*Probe `locationName:"probes" type:"list"` - // Returns a list of the state of each monitor. + // Lists the status of the state of each monitor. // // State is a required field State *string `locationName:"state" type:"string" required:"true" enum:"MonitorState"` @@ -2723,7 +2767,7 @@ func (s *MonitorSummary) SetTags(v map[string]*string) *MonitorSummary { return s } -// Describes information about a monitor probe. +// Describes information about a network monitor probe. type Probe struct { _ struct{} `type:"structure"` @@ -3357,8 +3401,7 @@ type UpdateMonitorInput struct { // AggregationPeriod is a required field AggregationPeriod *int64 `locationName:"aggregationPeriod" min:"30" type:"long" required:"true"` - // The name of the monitor to update. Run ListMonitors to get a list of monitor - // names. + // The name of the monitor to update. // // MonitorName is a required field MonitorName *string `location:"uri" locationName:"monitorName" min:"1" type:"string" required:"true"` @@ -3509,7 +3552,7 @@ type UpdateProbeInput struct { // This must be a number between 56 and 8500. PacketSize *int64 `locationName:"packetSize" min:"56" type:"integer"` - // Run GetMonitor to get a list of probes and probe IDs. + // The ID of the probe to update. // // ProbeId is a required field ProbeId *string `location:"uri" locationName:"probeId" type:"string" required:"true"` diff --git a/service/networkmonitor/doc.go b/service/networkmonitor/doc.go index 624eaa4c8e5..4cf607d644c 100644 --- a/service/networkmonitor/doc.go +++ b/service/networkmonitor/doc.go @@ -14,6 +14,12 @@ // probes then monitor network traffic to help you identify where network issues // might be affecting your traffic. // +// Before you begin, ensure the Amazon Web Services CLI is configured in the +// Amazon Web Services Account where you will create the Network Monitor resource. +// Network Monitor doesn’t support creation on cross-account resources, but +// you can create a Network Monitor in any subnet belonging to a VPC owned by +// your Account. +// // For more information, see Using Amazon CloudWatch Network Monitor (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/what-is-network-monitor.html) // in the Amazon CloudWatch User Guide. // diff --git a/service/qconnect/api.go b/service/qconnect/api.go index 896551c1bb5..d28c8692122 100644 --- a/service/qconnect/api.go +++ b/service/qconnect/api.go @@ -247,7 +247,7 @@ func (c *QConnect) CreateContentRequest(input *CreateContentInput) (req *request // CreateContent API operation for Amazon Q Connect. // -// Creates Amazon Q content. Before to calling this API, use StartContentUpload +// Creates Amazon Q in Connect content. Before to calling this API, use StartContentUpload // (https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_StartContentUpload.html) // to upload an asset. // @@ -455,7 +455,7 @@ func (c *QConnect) CreateQuickResponseRequest(input *CreateQuickResponseInput) ( // CreateQuickResponse API operation for Amazon Q Connect. // -// Creates an Amazon Q quick response. +// Creates an Amazon Q in Connect quick response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -552,8 +552,8 @@ func (c *QConnect) CreateSessionRequest(input *CreateSessionInput) (req *request // CreateSession API operation for Amazon Q Connect. // // Creates a session. A session is a contextual container used for generating -// recommendations. Amazon Connect creates a new Amazon Q session for each contact -// on which Amazon Q is enabled. +// recommendations. Amazon Connect creates a new Amazon Q in Connect session +// for each contact on which Amazon Q in Connect is enabled. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -573,6 +573,9 @@ func (c *QConnect) CreateSessionRequest(input *CreateSessionInput) (req *request // - ValidationException // The input fails to satisfy the constraints specified by a service. // +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// // - ResourceNotFoundException // The specified resource does not exist. // @@ -1777,6 +1780,11 @@ func (c *QConnect) GetRecommendationsRequest(input *GetRecommendationsInput) (re // GetRecommendations API operation for Amazon Q Connect. // +// This API will be discontinued starting June 1, 2024. To receive generative +// responses after March 1, 2024, you will need to create a new Assistant in +// the Amazon Connect console and integrate the Amazon Q in Connect JavaScript +// library (amazon-q-connectjs) into your applications. +// // Retrieves recommendations for the specified session. To avoid retrieving // the same recommendations in subsequent calls, use NotifyRecommendationsReceived // (https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_NotifyRecommendationsReceived.html). @@ -3064,6 +3072,11 @@ func (c *QConnect) QueryAssistantRequest(input *QueryAssistantInput) (req *reque // QueryAssistant API operation for Amazon Q Connect. // +// This API will be discontinued starting June 1, 2024. To receive generative +// responses after March 1, 2024, you will need to create a new Assistant in +// the Amazon Connect console and integrate the Amazon Q in Connect JavaScript +// library (amazon-q-connectjs) into your applications. +// // Performs a manual search against the specified assistant. To retrieve recommendations // for an assistant, use GetRecommendations (https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_GetRecommendations.html). // @@ -3450,7 +3463,8 @@ func (c *QConnect) SearchQuickResponsesRequest(input *SearchQuickResponsesInput) // SearchQuickResponses API operation for Amazon Q Connect. // -// Searches existing Amazon Q quick responses in an Amazon Q knowledge base. +// Searches existing Amazon Q in Connect quick responses in an Amazon Q in Connect +// knowledge base. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3824,13 +3838,14 @@ func (c *QConnect) StartImportJobRequest(input *StartImportJobInput) (req *reque // StartImportJob API operation for Amazon Q Connect. // -// Start an asynchronous job to import Amazon Q resources from an uploaded source -// file. Before calling this API, use StartContentUpload (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html) +// Start an asynchronous job to import Amazon Q in Connect resources from an +// uploaded source file. Before calling this API, use StartContentUpload (https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html) // to upload an asset that contains the resource data. // -// - For importing Amazon Q quick responses, you need to upload a csv file -// including the quick responses. For information about how to format the -// csv file for importing quick responses, see Import quick responses (https://docs.aws.amazon.com/console/connect/quick-responses/add-data). +// - For importing Amazon Q in Connect quick responses, you need to upload +// a csv file including the quick responses. For information about how to +// format the csv file for importing quick responses, see Import quick responses +// (https://docs.aws.amazon.com/console/connect/quick-responses/add-data). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4180,9 +4195,9 @@ func (c *QConnect) UpdateKnowledgeBaseTemplateUriRequest(input *UpdateKnowledgeB // // Updates the template URI of a knowledge base. This is only supported for // knowledge bases of type EXTERNAL. Include a single variable in ${variable} -// format; this interpolated by Amazon Q using ingested content. For example, -// if you ingest a Salesforce article, it has an Id value, and you can set the -// template URI to https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*/view. +// format; this interpolated by Amazon Q in Connect using ingested content. +// For example, if you ingest a Salesforce article, it has an Id value, and +// you can set the template URI to https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*/view. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4267,7 +4282,7 @@ func (c *QConnect) UpdateQuickResponseRequest(input *UpdateQuickResponseInput) ( // UpdateQuickResponse API operation for Amazon Q Connect. // -// Updates an existing Amazon Q quick response. +// Updates an existing Amazon Q in Connect quick response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4319,6 +4334,93 @@ func (c *QConnect) UpdateQuickResponseWithContext(ctx aws.Context, input *Update return out, req.Send() } +const opUpdateSession = "UpdateSession" + +// UpdateSessionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSession operation. The "output" return +// value will be populated with the request's response once the request completes +// 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. +// +// See UpdateSession for more information on using the UpdateSession +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateSessionRequest method. +// req, resp := client.UpdateSessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/UpdateSession +func (c *QConnect) UpdateSessionRequest(input *UpdateSessionInput) (req *request.Request, output *UpdateSessionOutput) { + op := &request.Operation{ + Name: opUpdateSession, + HTTPMethod: "POST", + HTTPPath: "/assistants/{assistantId}/sessions/{sessionId}", + } + + if input == nil { + input = &UpdateSessionInput{} + } + + output = &UpdateSessionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSession API operation for Amazon Q Connect. +// +// Updates a session. A session is a contextual container used for generating +// recommendations. Amazon Connect updates the existing Amazon Q in Connect +// session for each contact on which Amazon Q in Connect is enabled. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Q Connect's +// API operation UpdateSession for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The input fails to satisfy the constraints specified by a service. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ResourceNotFoundException +// The specified resource does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/UpdateSession +func (c *QConnect) UpdateSession(input *UpdateSessionInput) (*UpdateSessionOutput, error) { + req, out := c.UpdateSessionRequest(input) + return out, req.Send() +} + +// UpdateSessionWithContext is the same as UpdateSession with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSession for details on how to use this API operation. +// +// 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 *QConnect) UpdateSessionWithContext(ctx aws.Context, input *UpdateSessionInput, opts ...request.Option) (*UpdateSessionOutput, error) { + req, out := c.UpdateSessionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // You do not have sufficient access to perform this action. type AccessDeniedException struct { _ struct{} `type:"structure"` @@ -4422,7 +4524,8 @@ type AppIntegrationsConfiguration struct { AppIntegrationArn *string `locationName:"appIntegrationArn" min:"1" type:"string" required:"true"` // The fields from the source that are made available to your agents in Amazon - // Q. Optional if ObjectConfiguration is included in the provided DataIntegration. + // Q in Connect. Optional if ObjectConfiguration is included in the provided + // DataIntegration. // // * For Salesforce (https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/sforce_api_objects_knowledge__kav.htm), // you must include at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, @@ -4493,7 +4596,7 @@ func (s *AppIntegrationsConfiguration) SetObjectFields(v []*string) *AppIntegrat type AssistantAssociationData struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Q assistant. + // The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` @@ -4508,7 +4611,7 @@ type AssistantAssociationData struct { // AssistantAssociationId is a required field AssistantAssociationId *string `locationName:"assistantAssociationId" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. + // The identifier of the Amazon Q in Connect assistant. // // AssistantId is a required field AssistantId *string `locationName:"assistantId" type:"string" required:"true"` @@ -4587,12 +4690,13 @@ func (s *AssistantAssociationData) SetTags(v map[string]*string) *AssistantAssoc return s } -// The data that is input into Amazon Q as a result of the assistant association. +// The data that is input into Amazon Q in Connect as a result of the assistant +// association. type AssistantAssociationInputData struct { _ struct{} `type:"structure"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // type knowledge base. KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"` } @@ -4656,7 +4760,7 @@ func (s *AssistantAssociationOutputData) SetKnowledgeBaseAssociation(v *Knowledg type AssistantAssociationSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Q assistant. + // The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` @@ -4671,7 +4775,7 @@ type AssistantAssociationSummary struct { // AssistantAssociationId is a required field AssistantAssociationId *string `locationName:"assistantAssociationId" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. + // The identifier of the Amazon Q in Connect assistant. // // AssistantId is a required field AssistantId *string `locationName:"assistantId" type:"string" required:"true"` @@ -4750,11 +4854,11 @@ func (s *AssistantAssociationSummary) SetTags(v map[string]*string) *AssistantAs return s } -// The capability configuration for an Amazon Q assistant. +// The capability configuration for an Amazon Q in Connect assistant. type AssistantCapabilityConfiguration struct { _ struct{} `type:"structure"` - // The type of Amazon Q assistant capability. + // The type of Amazon Q in Connect assistant capability. Type *string `locationName:"type" type:"string" enum:"AssistantCapabilityType"` } @@ -4786,23 +4890,23 @@ func (s *AssistantCapabilityConfiguration) SetType(v string) *AssistantCapabilit type AssistantData struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Q assistant. + // The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. + // The identifier of the Amazon Q in Connect assistant. // // AssistantId is a required field AssistantId *string `locationName:"assistantId" type:"string" required:"true"` - // The configuration information for the Amazon Q assistant capability. + // The configuration information for the Amazon Q in Connect assistant capability. CapabilityConfiguration *AssistantCapabilityConfiguration `locationName:"capabilityConfiguration" type:"structure"` // The description. Description *string `locationName:"description" min:"1" type:"string"` - // The configuration information for the Amazon Q assistant integration. + // The configuration information for the Amazon Q in Connect assistant integration. IntegrationConfiguration *AssistantIntegrationConfiguration `locationName:"integrationConfiguration" type:"structure"` // The name. @@ -4814,12 +4918,12 @@ type AssistantData struct { // // This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, // kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using - // the key to invoke Amazon Q. To use Amazon Q with chat, the key policy must - // also allow kms:Decrypt, kms:GenerateDataKey*, and kms:DescribeKey permissions - // to the connect.amazonaws.com service principal. + // the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, + // the key policy must also allow kms:Decrypt, kms:GenerateDataKey*, and kms:DescribeKey + // permissions to the connect.amazonaws.com service principal. // - // For more information about setting up a customer managed key for Amazon Q, - // see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). + // For more information about setting up a customer managed key for Amazon Q + // in Connect, see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"` // The status of the assistant. @@ -4914,7 +5018,7 @@ func (s *AssistantData) SetType(v string) *AssistantData { return s } -// The configuration information for the Amazon Q assistant integration. +// The configuration information for the Amazon Q in Connect assistant integration. type AssistantIntegrationConfiguration struct { _ struct{} `type:"structure"` @@ -4951,23 +5055,23 @@ func (s *AssistantIntegrationConfiguration) SetTopicIntegrationArn(v string) *As type AssistantSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Q assistant. + // The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. + // The identifier of the Amazon Q in Connect assistant. // // AssistantId is a required field AssistantId *string `locationName:"assistantId" type:"string" required:"true"` - // The configuration information for the Amazon Q assistant capability. + // The configuration information for the Amazon Q in Connect assistant capability. CapabilityConfiguration *AssistantCapabilityConfiguration `locationName:"capabilityConfiguration" type:"structure"` // The description of the assistant. Description *string `locationName:"description" min:"1" type:"string"` - // The configuration information for the Amazon Q assistant integration. + // The configuration information for the Amazon Q in Connect assistant integration. IntegrationConfiguration *AssistantIntegrationConfiguration `locationName:"integrationConfiguration" type:"structure"` // The name of the assistant. @@ -4979,12 +5083,12 @@ type AssistantSummary struct { // // This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, // kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using - // the key to invoke Amazon Q. To use Amazon Q with chat, the key policy must - // also allow kms:Decrypt, kms:GenerateDataKey*, and kms:DescribeKey permissions - // to the connect.amazonaws.com service principal. + // the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, + // the key policy must also allow kms:Decrypt, kms:GenerateDataKey*, and kms:DescribeKey + // permissions to the connect.amazonaws.com service principal. // - // For more information about setting up a customer managed key for Amazon Q, - // see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). + // For more information about setting up a customer managed key for Amazon Q + // in Connect, see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"` // The status of the assistant. @@ -5263,8 +5367,7 @@ type ContentData struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -5274,8 +5377,8 @@ type ContentData struct { // A key/value map to store attributes without affecting tagging or recommendations. // For example, when synchronizing data between an external system and Amazon - // Q, you can store an external version identifier as metadata to utilize for - // determining drift. + // Q in Connect, you can store an external version identifier as metadata to + // utilize for determining drift. // // Metadata is a required field Metadata map[string]*string `locationName:"metadata" type:"map" required:"true"` @@ -5526,7 +5629,7 @@ type ContentReference struct { KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // type knowledge base. KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"` } @@ -5597,15 +5700,15 @@ type ContentSummary struct { KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // type knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` // A key/value map to store attributes without affecting tagging or recommendations. // For example, when synchronizing data between an external system and Amazon - // Q, you can store an external version identifier as metadata to utilize for - // determining drift. + // Q in Connect, you can store an external version identifier as metadata to + // utilize for determining drift. // // Metadata is a required field Metadata map[string]*string `locationName:"metadata" type:"map" required:"true"` @@ -5721,8 +5824,8 @@ func (s *ContentSummary) SetTitle(v string) *ContentSummary { type CreateAssistantAssociationInput struct { _ struct{} `type:"structure"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -5872,12 +5975,12 @@ type CreateAssistantInput struct { // // The customer managed key must have a policy that allows kms:CreateGrant, // kms:DescribeKey, kms:Decrypt, and kms:GenerateDataKey* permissions to the - // IAM identity using the key to invoke Amazon Q. To use Amazon Q with chat, - // the key policy must also allow kms:Decrypt, kms:GenerateDataKey*, and kms:DescribeKey - // permissions to the connect.amazonaws.com service principal. + // IAM identity using the key to invoke Amazon Q in Connect. To use Amazon Q + // in Connect with chat, the key policy must also allow kms:Decrypt, kms:GenerateDataKey*, + // and kms:DescribeKey permissions to the connect.amazonaws.com service principal. // - // For more information about setting up a customer managed key for Amazon Q, - // see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). + // For more information about setting up a customer managed key for Amazon Q + // in Connect, see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"` // The tags used to organize, track, or control access for this resource. @@ -6014,16 +6117,16 @@ type CreateContentInput struct { ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // type knowledge base. Can be either the ID or the ARN. URLs cannot contain + // the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` // A key/value map to store attributes without affecting tagging or recommendations. // For example, when synchronizing data between an external system and Amazon - // Q, you can store an external version identifier as metadata to utilize for - // determining drift. + // Q in Connect, you can store an external version identifier as metadata to + // utilize for determining drift. Metadata map[string]*string `locationName:"metadata" type:"map"` // The name of the content. Each piece of content in a knowledge base must have @@ -6216,10 +6319,10 @@ type CreateKnowledgeBaseInput struct { // // This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, // kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using - // the key to invoke Amazon Q. + // the key to invoke Amazon Q in Connect. // - // For more information about setting up a customer managed key for Amazon Q, - // see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). + // For more information about setting up a customer managed key for Amazon Q + // in Connect, see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"` // The source of the knowledge base content. Only set this argument for EXTERNAL @@ -6403,9 +6506,8 @@ type CreateQuickResponseInput struct { // Whether the quick response is active. IsActive *bool `locationName:"isActive" type:"boolean"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -6599,8 +6701,8 @@ func (s *CreateQuickResponseOutput) SetQuickResponse(v *QuickResponseData) *Crea type CreateSessionInput struct { _ struct{} `type:"structure"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -6619,6 +6721,9 @@ type CreateSessionInput struct { // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // An object that can be used to specify Tag conditions. + TagFilter *TagFilter `locationName:"tagFilter" type:"structure"` + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `locationName:"tags" type:"map"` } @@ -6662,6 +6767,11 @@ func (s *CreateSessionInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.TagFilter != nil { + if err := s.TagFilter.Validate(); err != nil { + invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -6693,6 +6803,12 @@ func (s *CreateSessionInput) SetName(v string) *CreateSessionInput { return s } +// SetTagFilter sets the TagFilter field's value. +func (s *CreateSessionInput) SetTagFilter(v *TagFilter) *CreateSessionInput { + s.TagFilter = v + return s +} + // SetTags sets the Tags field's value. func (s *CreateSessionInput) SetTags(v map[string]*string) *CreateSessionInput { s.Tags = v @@ -6875,8 +6991,8 @@ type DeleteAssistantAssociationInput struct { // AssistantAssociationId is a required field AssistantAssociationId *string `location:"uri" locationName:"assistantAssociationId" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -6959,8 +7075,8 @@ func (s DeleteAssistantAssociationOutput) GoString() string { type DeleteAssistantInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -7037,9 +7153,8 @@ type DeleteContentInput struct { // ContentId is a required field ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -7127,8 +7242,7 @@ type DeleteImportJobInput struct { // ImportJobId is a required field ImportJobId *string `location:"uri" locationName:"importJobId" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -7284,8 +7398,7 @@ type DeleteQuickResponseInput struct { _ struct{} `type:"structure" nopayload:"true"` // The knowledge base from which the quick response is deleted. The identifier - // of the knowledge base. This should not be a QUICK_RESPONSES type knowledge - // base if you're storing Amazon Q Content resource to it. + // of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -7768,8 +7881,8 @@ type GetAssistantAssociationInput struct { // AssistantAssociationId is a required field AssistantAssociationId *string `location:"uri" locationName:"assistantAssociationId" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -7861,8 +7974,8 @@ func (s *GetAssistantAssociationOutput) SetAssistantAssociation(v *AssistantAsso type GetAssistantInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -7949,8 +8062,8 @@ type GetContentInput struct { ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // type knowledge base. Can be either the ID or the ARN. URLs cannot contain + // the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8048,9 +8161,8 @@ type GetContentSummaryInput struct { // ContentId is a required field ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8239,9 +8351,8 @@ func (s *GetImportJobOutput) SetImportJob(v *ImportJobData) *GetImportJobOutput type GetKnowledgeBaseInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8419,8 +8530,8 @@ func (s *GetQuickResponseOutput) SetQuickResponse(v *QuickResponseData) *GetQuic type GetRecommendationsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -8553,8 +8664,8 @@ func (s *GetRecommendationsOutput) SetTriggers(v []*RecommendationTrigger) *GetR type GetSessionInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -8649,11 +8760,11 @@ func (s *GetSessionOutput) SetSession(v *SessionData) *GetSessionOutput { return s } -// The configuration information of the grouping of Amazon Q users. +// The configuration information of the grouping of Amazon Q in Connect users. type GroupingConfiguration struct { _ struct{} `type:"structure"` - // The criteria used for grouping Amazon Q users. + // The criteria used for grouping Amazon Q in Connect users. // // The following is the list of supported criteria values. // @@ -8668,7 +8779,7 @@ type GroupingConfiguration struct { // String and GoString methods. Criteria *string `locationName:"criteria" min:"1" type:"string" sensitive:"true"` - // The list of values that define different groups of Amazon Q users. + // The list of values that define different groups of Amazon Q in Connect users. // // * When setting criteria to RoutingProfileArn, you need to provide a list // of ARNs of Amazon Connect routing profiles (https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html) @@ -8795,8 +8906,7 @@ type ImportJobData struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8806,7 +8916,7 @@ type ImportJobData struct { // LastModifiedTime is a required field LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"unixTimestamp" required:"true"` - // The metadata fields of the imported Amazon Q resources. + // The metadata fields of the imported Amazon Q in Connect resources. Metadata map[string]*string `locationName:"metadata" type:"map"` // The status of the import job. @@ -8959,8 +9069,7 @@ type ImportJobSummary struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -8970,7 +9079,7 @@ type ImportJobSummary struct { // LastModifiedTime is a required field LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"unixTimestamp" required:"true"` - // The metadata fields of the imported Amazon Q resources. + // The metadata fields of the imported Amazon Q in Connect resources. Metadata map[string]*string `locationName:"metadata" type:"map"` // The status of the import job. @@ -9070,8 +9179,7 @@ type KnowledgeBaseAssociationData struct { // The Amazon Resource Name (ARN) of the knowledge base. KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string"` } @@ -9117,8 +9225,7 @@ type KnowledgeBaseData struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -9145,10 +9252,10 @@ type KnowledgeBaseData struct { // // This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, // kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using - // the key to invoke Amazon Q. + // the key to invoke Amazon Q in Connect. // - // For more information about setting up a customer managed key for Amazon Q, - // see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). + // For more information about setting up a customer managed key for Amazon Q + // in Connect, see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"` // Source configuration information about the knowledge base. @@ -9259,8 +9366,7 @@ type KnowledgeBaseSummary struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -9282,10 +9388,10 @@ type KnowledgeBaseSummary struct { // // This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, // kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using - // the key to invoke Amazon Q. + // the key to invoke Amazon Q in Connect. // - // For more information about setting up a customer managed key for Amazon Q, - // see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). + // For more information about setting up a customer managed key for Amazon Q + // in Connect, see Enable Amazon Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `locationName:"serverSideEncryptionConfiguration" type:"structure"` // Configuration information about the external data source. @@ -9381,8 +9487,8 @@ func (s *KnowledgeBaseSummary) SetTags(v map[string]*string) *KnowledgeBaseSumma type ListAssistantAssociationsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -9598,8 +9704,8 @@ type ListContentsInput struct { _ struct{} `type:"structure" nopayload:"true"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // type knowledge base. Can be either the ID or the ARN. URLs cannot contain + // the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -9715,9 +9821,8 @@ func (s *ListContentsOutput) SetNextToken(v string) *ListContentsOutput { type ListImportJobsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -9933,9 +10038,8 @@ func (s *ListKnowledgeBasesOutput) SetNextToken(v string) *ListKnowledgeBasesOut type ListQuickResponsesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -10173,8 +10277,8 @@ func (s *NotifyRecommendationsReceivedError) SetRecommendationId(v string) *Noti type NotifyRecommendationsReceivedInput struct { _ struct{} `type:"structure"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -10292,6 +10396,72 @@ func (s *NotifyRecommendationsReceivedOutput) SetRecommendationIds(v []*string) return s } +// A list of conditions which would be applied together with an OR condition. +type OrCondition struct { + _ struct{} `type:"structure"` + + // A list of conditions which would be applied together with an AND condition. + AndConditions []*TagCondition `locationName:"andConditions" type:"list"` + + // A leaf node condition which can be used to specify a tag condition. + TagCondition *TagCondition `locationName:"tagCondition" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OrCondition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OrCondition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OrCondition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OrCondition"} + if s.AndConditions != nil { + for i, v := range s.AndConditions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AndConditions", i), err.(request.ErrInvalidParams)) + } + } + } + if s.TagCondition != nil { + if err := s.TagCondition.Validate(); err != nil { + invalidParams.AddNested("TagCondition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAndConditions sets the AndConditions field's value. +func (s *OrCondition) SetAndConditions(v []*TagCondition) *OrCondition { + s.AndConditions = v + return s +} + +// SetTagCondition sets the TagCondition field's value. +func (s *OrCondition) SetTagCondition(v *TagCondition) *OrCondition { + s.TagCondition = v + return s +} + // The provided revisionId does not match, indicating the content has been modified // since it was last read. type PreconditionFailedException struct { @@ -10360,7 +10530,7 @@ func (s *PreconditionFailedException) RequestID() string { type PutFeedbackInput struct { _ struct{} `type:"structure"` - // The identifier of the Amazon Q assistant. + // The identifier of the Amazon Q in Connect assistant. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -10456,12 +10626,12 @@ func (s *PutFeedbackInput) SetTargetType(v string) *PutFeedbackInput { type PutFeedbackOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Q assistant. + // The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. + // The identifier of the Amazon Q in Connect assistant. // // AssistantId is a required field AssistantId *string `locationName:"assistantId" type:"string" required:"true"` @@ -10533,8 +10703,8 @@ func (s *PutFeedbackOutput) SetTargetType(v string) *PutFeedbackOutput { type QueryAssistantInput struct { _ struct{} `type:"structure"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -10558,8 +10728,8 @@ type QueryAssistantInput struct { // QueryText is a required field QueryText *string `locationName:"queryText" type:"string" required:"true" sensitive:"true"` - // The identifier of the Amazon Q session. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect session. Can be either the ID or + // the ARN. URLs cannot contain the ARN. SessionId *string `locationName:"sessionId" type:"string"` } @@ -10974,9 +11144,8 @@ type QuickResponseData struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -11651,9 +11820,8 @@ type QuickResponseSearchResultData struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -11871,8 +12039,7 @@ type QuickResponseSummary struct { // KnowledgeBaseArn is a required field KnowledgeBaseArn *string `locationName:"knowledgeBaseArn" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. + // The identifier of the knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -12253,9 +12420,8 @@ func (s *RecommendationTriggerData) SetQuery(v *QueryRecommendationTriggerData) type RemoveKnowledgeBaseTemplateUriInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -12589,8 +12755,8 @@ type SearchContentInput struct { _ struct{} `type:"structure"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // type knowledge base. Can be either the ID or the ARN. URLs cannot contain + // the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -12934,8 +13100,8 @@ func (s *SearchQuickResponsesOutput) SetResults(v []*QuickResponseSearchResultDa type SearchSessionsInput struct { _ struct{} `type:"structure"` - // The identifier of the Amazon Q assistant. Can be either the ID or the ARN. - // URLs cannot contain the ARN. + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. // // AssistantId is a required field AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` @@ -13072,8 +13238,8 @@ type ServerSideEncryptionConfiguration struct { _ struct{} `type:"structure"` // The customer managed key used for encryption. For more information about - // setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect - // for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). + // setting up a customer managed key for Amazon Q in Connect, see Enable Amazon + // Q in Connect for your instance (https://docs.aws.amazon.com/connect/latest/adminguide/enable-q.html). // For information about valid ID values, see Key identifiers (KeyId) (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id). KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"` } @@ -13206,6 +13372,9 @@ type SessionData struct { // SessionId is a required field SessionId *string `locationName:"sessionId" type:"string" required:"true"` + // An object that can be used to specify Tag conditions. + TagFilter *TagFilter `locationName:"tagFilter" type:"structure"` + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `locationName:"tags" type:"map"` } @@ -13258,6 +13427,12 @@ func (s *SessionData) SetSessionId(v string) *SessionData { return s } +// SetTagFilter sets the TagFilter field's value. +func (s *SessionData) SetTagFilter(v *TagFilter) *SessionData { + s.TagFilter = v + return s +} + // SetTags sets the Tags field's value. func (s *SessionData) SetTags(v map[string]*string) *SessionData { s.Tags = v @@ -13301,12 +13476,12 @@ func (s *SessionIntegrationConfiguration) SetTopicIntegrationArn(v string) *Sess type SessionSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Q assistant. + // The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. // // AssistantArn is a required field AssistantArn *string `locationName:"assistantArn" type:"string" required:"true"` - // The identifier of the Amazon Q assistant. + // The identifier of the Amazon Q in Connect assistant. // // AssistantId is a required field AssistantId *string `locationName:"assistantId" type:"string" required:"true"` @@ -13487,9 +13662,8 @@ type StartContentUploadInput struct { // ContentType is a required field ContentType *string `locationName:"contentType" type:"string" required:"true"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -13644,17 +13818,16 @@ type StartImportJobInput struct { // ImportJobType is a required field ImportJobType *string `locationName:"importJobType" type:"string" required:"true" enum:"ImportJobType"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // - // * For importing Amazon Q quick responses, this should be a QUICK_RESPONSES - // type knowledge base. + // * For importing Amazon Q in Connect quick responses, this should be a + // QUICK_RESPONSES type knowledge base. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` - // The metadata fields of the imported Amazon Q resources. + // The metadata fields of the imported Amazon Q in Connect resources. Metadata map[string]*string `locationName:"metadata" type:"map"` // A pointer to the uploaded asset. This value is returned by StartContentUpload @@ -13782,6 +13955,153 @@ func (s *StartImportJobOutput) SetImportJob(v *ImportJobData) *StartImportJobOut return s } +// A leaf node condition which can be used to specify a tag condition. +type TagCondition struct { + _ struct{} `type:"structure"` + + // The tag key in the tag condition. + // + // Key is a required field + Key *string `locationName:"key" min:"1" type:"string" required:"true"` + + // The tag value in the tag condition. + Value *string `locationName:"value" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagCondition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagCondition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagCondition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagCondition"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *TagCondition) SetKey(v string) *TagCondition { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagCondition) SetValue(v string) *TagCondition { + s.Value = &v + return s +} + +// An object that can be used to specify Tag conditions. +type TagFilter struct { + _ struct{} `type:"structure"` + + // A list of conditions which would be applied together with an AND condition. + AndConditions []*TagCondition `locationName:"andConditions" type:"list"` + + // A list of conditions which would be applied together with an OR condition. + OrConditions []*OrCondition `locationName:"orConditions" type:"list"` + + // A leaf node condition which can be used to specify a tag condition. + TagCondition *TagCondition `locationName:"tagCondition" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagFilter"} + if s.AndConditions != nil { + for i, v := range s.AndConditions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AndConditions", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OrConditions != nil { + for i, v := range s.OrConditions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrConditions", i), err.(request.ErrInvalidParams)) + } + } + } + if s.TagCondition != nil { + if err := s.TagCondition.Validate(); err != nil { + invalidParams.AddNested("TagCondition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAndConditions sets the AndConditions field's value. +func (s *TagFilter) SetAndConditions(v []*TagCondition) *TagFilter { + s.AndConditions = v + return s +} + +// SetOrConditions sets the OrConditions field's value. +func (s *TagFilter) SetOrConditions(v []*OrCondition) *TagFilter { + s.OrConditions = v + return s +} + +// SetTagCondition sets the TagCondition field's value. +func (s *TagFilter) SetTagCondition(v *TagCondition) *TagFilter { + s.TagCondition = v + return s +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -14074,16 +14394,15 @@ type UpdateContentInput struct { ContentId *string `location:"uri" locationName:"contentId" type:"string" required:"true"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN + // type knowledge base. Can be either the ID or the ARN // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` // A key/value map to store attributes without affecting tagging or recommendations. // For example, when synchronizing data between an external system and Amazon - // Q, you can store an external version identifier as metadata to utilize for - // determining drift. + // Q in Connect, you can store an external version identifier as metadata to + // utilize for determining drift. Metadata map[string]*string `locationName:"metadata" type:"map"` // The URI for the article. If the knowledge base has a templateUri, setting @@ -14244,8 +14563,8 @@ type UpdateKnowledgeBaseTemplateUriInput struct { _ struct{} `type:"structure"` // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // type knowledge base. Can be either the ID or the ARN. URLs cannot contain + // the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -14367,9 +14686,8 @@ type UpdateQuickResponseInput struct { // Whether the quick response is active. IsActive *bool `locationName:"isActive" type:"boolean"` - // The identifier of the knowledge base. This should not be a QUICK_RESPONSES - // type knowledge base if you're storing Amazon Q Content resource to it. Can - // be either the ID or the ARN. URLs cannot contain the ARN. + // The identifier of the knowledge base. Can be either the ID or the ARN. URLs + // cannot contain the ARN. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` @@ -14578,6 +14896,131 @@ func (s *UpdateQuickResponseOutput) SetQuickResponse(v *QuickResponseData) *Upda return s } +type UpdateSessionInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Amazon Q in Connect assistant. Can be either the ID + // or the ARN. URLs cannot contain the ARN. + // + // AssistantId is a required field + AssistantId *string `location:"uri" locationName:"assistantId" type:"string" required:"true"` + + // The description. + Description *string `locationName:"description" min:"1" type:"string"` + + // The identifier of the session. Can be either the ID or the ARN. URLs cannot + // contain the ARN. + // + // SessionId is a required field + SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"` + + // An object that can be used to specify Tag conditions. + TagFilter *TagFilter `locationName:"tagFilter" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSessionInput"} + if s.AssistantId == nil { + invalidParams.Add(request.NewErrParamRequired("AssistantId")) + } + if s.AssistantId != nil && len(*s.AssistantId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssistantId", 1)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.SessionId == nil { + invalidParams.Add(request.NewErrParamRequired("SessionId")) + } + if s.SessionId != nil && len(*s.SessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SessionId", 1)) + } + if s.TagFilter != nil { + if err := s.TagFilter.Validate(); err != nil { + invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssistantId sets the AssistantId field's value. +func (s *UpdateSessionInput) SetAssistantId(v string) *UpdateSessionInput { + s.AssistantId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateSessionInput) SetDescription(v string) *UpdateSessionInput { + s.Description = &v + return s +} + +// SetSessionId sets the SessionId field's value. +func (s *UpdateSessionInput) SetSessionId(v string) *UpdateSessionInput { + s.SessionId = &v + return s +} + +// SetTagFilter sets the TagFilter field's value. +func (s *UpdateSessionInput) SetTagFilter(v *TagFilter) *UpdateSessionInput { + s.TagFilter = v + return s +} + +type UpdateSessionOutput struct { + _ struct{} `type:"structure"` + + // Information about the session. + Session *SessionData `locationName:"session" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSessionOutput) GoString() string { + return s.String() +} + +// SetSession sets the Session field's value. +func (s *UpdateSessionOutput) SetSession(v *SessionData) *UpdateSessionOutput { + s.Session = v + return s +} + // The input fails to satisfy the constraints specified by a service. type ValidationException struct { _ struct{} `type:"structure"` diff --git a/service/qconnect/doc.go b/service/qconnect/doc.go index 6b7dc38332d..4e81a95b2b3 100644 --- a/service/qconnect/doc.go +++ b/service/qconnect/doc.go @@ -14,11 +14,12 @@ // recommendations to help contact center agents resolve customer issues quickly // and accurately. // -// Amazon Q automatically detects customer intent during calls and chats using -// conversational analytics and natural language understanding (NLU). It then -// provides agents with immediate, real-time generative responses and suggested -// actions, and links to relevant documents and articles. Agents can also query -// Amazon Q directly using natural language or keywords to answer customer requests. +// Amazon Q in Connect automatically detects customer intent during calls and +// chats using conversational analytics and natural language understanding (NLU). +// It then provides agents with immediate, real-time generative responses and +// suggested actions, and links to relevant documents and articles. Agents can +// also query Amazon Q in Connect directly using natural language or keywords +// to answer customer requests. // // Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, // for example, or manage content by uploading custom files. diff --git a/service/qconnect/qconnectiface/interface.go b/service/qconnect/qconnectiface/interface.go index 297e10718bb..4863249157e 100644 --- a/service/qconnect/qconnectiface/interface.go +++ b/service/qconnect/qconnectiface/interface.go @@ -257,6 +257,10 @@ type QConnectAPI interface { UpdateQuickResponse(*qconnect.UpdateQuickResponseInput) (*qconnect.UpdateQuickResponseOutput, error) UpdateQuickResponseWithContext(aws.Context, *qconnect.UpdateQuickResponseInput, ...request.Option) (*qconnect.UpdateQuickResponseOutput, error) UpdateQuickResponseRequest(*qconnect.UpdateQuickResponseInput) (*request.Request, *qconnect.UpdateQuickResponseOutput) + + UpdateSession(*qconnect.UpdateSessionInput) (*qconnect.UpdateSessionOutput, error) + UpdateSessionWithContext(aws.Context, *qconnect.UpdateSessionInput, ...request.Option) (*qconnect.UpdateSessionOutput, error) + UpdateSessionRequest(*qconnect.UpdateSessionInput) (*request.Request, *qconnect.UpdateSessionOutput) } var _ QConnectAPI = (*qconnect.QConnect)(nil) diff --git a/service/rekognition/api.go b/service/rekognition/api.go index fb85ef32fab..6e837a9ee8f 100644 --- a/service/rekognition/api.go +++ b/service/rekognition/api.go @@ -11427,6 +11427,10 @@ func (s *ConnectedHomeSettingsForUpdate) SetMinConfidence(v float64) *ConnectedH type ContentModerationDetection struct { _ struct{} `type:"structure"` + // A list of predicted results for the type of content an image contains. For + // example, the image content might be from animation, sports, or a video game. + ContentTypes []*ContentType `type:"list"` + // The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis // to EndTimestampMillis. DurationMillis *int64 `type:"long"` @@ -11466,6 +11470,12 @@ func (s ContentModerationDetection) GoString() string { return s.String() } +// SetContentTypes sets the ContentTypes field's value. +func (s *ContentModerationDetection) SetContentTypes(v []*ContentType) *ContentModerationDetection { + s.ContentTypes = v + return s +} + // SetDurationMillis sets the DurationMillis field's value. func (s *ContentModerationDetection) SetDurationMillis(v int64) *ContentModerationDetection { s.DurationMillis = &v @@ -12072,7 +12082,11 @@ func (s *CreateFaceLivenessSessionInput) SetSettings(v *CreateFaceLivenessSessio type CreateFaceLivenessSessionOutput struct { _ struct{} `type:"structure"` - // A unique 128-bit UUID identifying a Face Liveness session. + // A unique 128-bit UUID identifying a Face Liveness session. A new sessionID + // must be used for every Face Liveness check. If a given sessionID is used + // for subsequent Face Liveness checks, the checks will fail. Additionally, + // a SessionId expires 3 minutes after it's sent, making all Liveness data associated + // with the session (e.g., sessionID, reference image, audit images, etc.) unavailable. // // SessionId is a required field SessionId *string `min:"36" type:"string" required:"true"` diff --git a/service/supplychain/api.go b/service/supplychain/api.go index c1165f55314..c493965a0c0 100644 --- a/service/supplychain/api.go +++ b/service/supplychain/api.go @@ -4,6 +4,7 @@ package supplychain import ( "fmt" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -211,6 +212,103 @@ func (c *SupplyChain) GetBillOfMaterialsImportJobWithContext(ctx aws.Context, in return out, req.Send() } +const opSendDataIntegrationEvent = "SendDataIntegrationEvent" + +// SendDataIntegrationEventRequest generates a "aws/request.Request" representing the +// client's request for the SendDataIntegrationEvent operation. The "output" return +// value will be populated with the request's response once the request completes +// 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. +// +// See SendDataIntegrationEvent for more information on using the SendDataIntegrationEvent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the SendDataIntegrationEventRequest method. +// req, resp := client.SendDataIntegrationEventRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/SendDataIntegrationEvent +func (c *SupplyChain) SendDataIntegrationEventRequest(input *SendDataIntegrationEventInput) (req *request.Request, output *SendDataIntegrationEventOutput) { + op := &request.Operation{ + Name: opSendDataIntegrationEvent, + HTTPMethod: "POST", + HTTPPath: "/api-data/data-integration/instance/{instanceId}/data-integration-events", + } + + if input == nil { + input = &SendDataIntegrationEventInput{} + } + + output = &SendDataIntegrationEventOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendDataIntegrationEvent API operation for AWS Supply Chain. +// +// Send transactional data events with real-time data for analysis or monitoring. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Supply Chain's +// API operation SendDataIntegrationEvent for usage and error information. +// +// Returned Error Types: +// +// - ServiceQuotaExceededException +// Request would cause a service quota to be exceeded. +// +// - ResourceNotFoundException +// Request references a resource which does not exist. +// +// - ThrottlingException +// Request was denied due to request throttling. +// +// - AccessDeniedException +// You do not have the required privileges to perform this action. +// +// - ValidationException +// The input does not satisfy the constraints specified by an AWS service. +// +// - InternalServerException +// Unexpected error during processing of request. +// +// - ConflictException +// Updating or deleting a resource can cause an inconsistent state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/SendDataIntegrationEvent +func (c *SupplyChain) SendDataIntegrationEvent(input *SendDataIntegrationEventInput) (*SendDataIntegrationEventOutput, error) { + req, out := c.SendDataIntegrationEventRequest(input) + return out, req.Send() +} + +// SendDataIntegrationEventWithContext is the same as SendDataIntegrationEvent with the addition of +// the ability to pass a context and additional request options. +// +// See SendDataIntegrationEvent for details on how to use this API operation. +// +// 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 *SupplyChain) SendDataIntegrationEventWithContext(ctx aws.Context, input *SendDataIntegrationEventInput, opts ...request.Option) (*SendDataIntegrationEventOutput, error) { + req, out := c.SendDataIntegrationEventRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // You do not have the required privileges to perform this action. type AccessDeniedException struct { _ struct{} `type:"structure"` @@ -759,6 +857,164 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } +// The request parameters for SendDataIntegrationEvent. +type SendDataIntegrationEventInput struct { + _ struct{} `type:"structure"` + + // The idempotent client token. + ClientToken *string `locationName:"clientToken" min:"33" type:"string" idempotencyToken:"true"` + + // The data payload of the event. + // + // Data is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SendDataIntegrationEventInput's + // String and GoString methods. + // + // Data is a required field + Data *string `locationName:"data" min:"1" type:"string" required:"true" sensitive:"true"` + + // Event identifier (for example, orderId for InboundOrder) used for data sharing + // or partitioning. + // + // EventGroupId is a required field + EventGroupId *string `locationName:"eventGroupId" min:"1" type:"string" required:"true"` + + // The event timestamp (in epoch seconds). + EventTimestamp *time.Time `locationName:"eventTimestamp" type:"timestamp" timestampFormat:"unixTimestamp"` + + // The data event type. + // + // EventType is a required field + EventType *string `locationName:"eventType" type:"string" required:"true" enum:"DataIntegrationEventType"` + + // The AWS Supply Chain instance identifier. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"instanceId" min:"36" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SendDataIntegrationEventInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SendDataIntegrationEventInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendDataIntegrationEventInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendDataIntegrationEventInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 33 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 33)) + } + if s.Data == nil { + invalidParams.Add(request.NewErrParamRequired("Data")) + } + if s.Data != nil && len(*s.Data) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Data", 1)) + } + if s.EventGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("EventGroupId")) + } + if s.EventGroupId != nil && len(*s.EventGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventGroupId", 1)) + } + if s.EventType == nil { + invalidParams.Add(request.NewErrParamRequired("EventType")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *SendDataIntegrationEventInput) SetClientToken(v string) *SendDataIntegrationEventInput { + s.ClientToken = &v + return s +} + +// SetData sets the Data field's value. +func (s *SendDataIntegrationEventInput) SetData(v string) *SendDataIntegrationEventInput { + s.Data = &v + return s +} + +// SetEventGroupId sets the EventGroupId field's value. +func (s *SendDataIntegrationEventInput) SetEventGroupId(v string) *SendDataIntegrationEventInput { + s.EventGroupId = &v + return s +} + +// SetEventTimestamp sets the EventTimestamp field's value. +func (s *SendDataIntegrationEventInput) SetEventTimestamp(v time.Time) *SendDataIntegrationEventInput { + s.EventTimestamp = &v + return s +} + +// SetEventType sets the EventType field's value. +func (s *SendDataIntegrationEventInput) SetEventType(v string) *SendDataIntegrationEventInput { + s.EventType = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *SendDataIntegrationEventInput) SetInstanceId(v string) *SendDataIntegrationEventInput { + s.InstanceId = &v + return s +} + +// The response parameters for SendDataIntegrationEvent. +type SendDataIntegrationEventOutput struct { + _ struct{} `type:"structure"` + + // The unique event identifier. + // + // EventId is a required field + EventId *string `locationName:"eventId" min:"36" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SendDataIntegrationEventOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SendDataIntegrationEventOutput) GoString() string { + return s.String() +} + +// SetEventId sets the EventId field's value. +func (s *SendDataIntegrationEventOutput) SetEventId(v string) *SendDataIntegrationEventOutput { + s.EventId = &v + return s +} + // Request would cause a service quota to be exceeded. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` @@ -979,3 +1235,71 @@ func ConfigurationJobStatus_Values() []string { ConfigurationJobStatusSuccess, } } + +const ( + // DataIntegrationEventTypeScnDataForecast is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataForecast = "scn.data.forecast" + + // DataIntegrationEventTypeScnDataInventorylevel is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataInventorylevel = "scn.data.inventorylevel" + + // DataIntegrationEventTypeScnDataInboundorder is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataInboundorder = "scn.data.inboundorder" + + // DataIntegrationEventTypeScnDataInboundorderline is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataInboundorderline = "scn.data.inboundorderline" + + // DataIntegrationEventTypeScnDataInboundorderlineschedule is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataInboundorderlineschedule = "scn.data.inboundorderlineschedule" + + // DataIntegrationEventTypeScnDataOutboundorderline is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataOutboundorderline = "scn.data.outboundorderline" + + // DataIntegrationEventTypeScnDataOutboundshipment is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataOutboundshipment = "scn.data.outboundshipment" + + // DataIntegrationEventTypeScnDataProcessheader is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataProcessheader = "scn.data.processheader" + + // DataIntegrationEventTypeScnDataProcessoperation is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataProcessoperation = "scn.data.processoperation" + + // DataIntegrationEventTypeScnDataProcessproduct is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataProcessproduct = "scn.data.processproduct" + + // DataIntegrationEventTypeScnDataReservation is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataReservation = "scn.data.reservation" + + // DataIntegrationEventTypeScnDataShipment is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataShipment = "scn.data.shipment" + + // DataIntegrationEventTypeScnDataShipmentstop is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataShipmentstop = "scn.data.shipmentstop" + + // DataIntegrationEventTypeScnDataShipmentstoporder is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataShipmentstoporder = "scn.data.shipmentstoporder" + + // DataIntegrationEventTypeScnDataSupplyplan is a DataIntegrationEventType enum value + DataIntegrationEventTypeScnDataSupplyplan = "scn.data.supplyplan" +) + +// DataIntegrationEventType_Values returns all elements of the DataIntegrationEventType enum +func DataIntegrationEventType_Values() []string { + return []string{ + DataIntegrationEventTypeScnDataForecast, + DataIntegrationEventTypeScnDataInventorylevel, + DataIntegrationEventTypeScnDataInboundorder, + DataIntegrationEventTypeScnDataInboundorderline, + DataIntegrationEventTypeScnDataInboundorderlineschedule, + DataIntegrationEventTypeScnDataOutboundorderline, + DataIntegrationEventTypeScnDataOutboundshipment, + DataIntegrationEventTypeScnDataProcessheader, + DataIntegrationEventTypeScnDataProcessoperation, + DataIntegrationEventTypeScnDataProcessproduct, + DataIntegrationEventTypeScnDataReservation, + DataIntegrationEventTypeScnDataShipment, + DataIntegrationEventTypeScnDataShipmentstop, + DataIntegrationEventTypeScnDataShipmentstoporder, + DataIntegrationEventTypeScnDataSupplyplan, + } +} diff --git a/service/supplychain/examples_test.go b/service/supplychain/examples_test.go new file mode 100644 index 00000000000..ac68a87598d --- /dev/null +++ b/service/supplychain/examples_test.go @@ -0,0 +1,828 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package supplychain_test + +import ( + "fmt" + "strings" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/supplychain" +) + +var _ time.Duration +var _ strings.Reader +var _ aws.Config + +func parseTime(layout, value string) *time.Time { + t, err := time.Parse(layout, value) + if err != nil { + panic(err) + } + return &t +} + +// Invoke CreateBillOfMaterialsImportJob +// + +func ExampleSupplyChain_CreateBillOfMaterialsImportJob_shared00() { + svc := supplychain.New(session.New()) + input := &supplychain.CreateBillOfMaterialsImportJobInput{ + ClientToken: aws.String("550e8400-e29b-41d4-a716-446655440000"), + InstanceId: aws.String("60f82bbd-71f7-4fcd-a941-472f574c5243"), + S3uri: aws.String("s3://mybucketname/pathelemene/file.csv"), + } + + result, err := svc.CreateBillOfMaterialsImportJob(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Invoke GetBillOfMaterialsImportJob for a successful job +// + +func ExampleSupplyChain_GetBillOfMaterialsImportJob_shared00() { + svc := supplychain.New(session.New()) + input := &supplychain.GetBillOfMaterialsImportJobInput{ + InstanceId: aws.String("60f82bbd-71f7-4fcd-a941-472f574c5243"), + JobId: aws.String("f79b359b-1515-4436-a3bf-bae7b33e47b4"), + } + + result, err := svc.GetBillOfMaterialsImportJob(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Invoke GetBillOfMaterialsImportJob for an in-progress job +// + +func ExampleSupplyChain_GetBillOfMaterialsImportJob_shared01() { + svc := supplychain.New(session.New()) + input := &supplychain.GetBillOfMaterialsImportJobInput{ + InstanceId: aws.String("60f82bbd-71f7-4fcd-a941-472f574c5243"), + JobId: aws.String("f79b359b-1515-4436-a3bf-bae7b33e47b4"), + } + + result, err := svc.GetBillOfMaterialsImportJob(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for inboundorder event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared00() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"id\": \"inbound-order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\" }"), + EventGroupId: aws.String("inboundOrderId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.inboundorder"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for inboundorderline event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared01() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"id\": \"inbound-order-line-id-test-123\", \"order_id\": \"order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\", \"product_id\": \"product-id-test-123\", \"quantity_submitted\": \"100.0\" }"), + EventGroupId: aws.String("inboundOrderLineId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.inboundorderline"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for inboundorderlineschedule event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared02() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"id\": \"inbound-order-line-schedule-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"product_id\": \"product-id-test-123\"}"), + EventGroupId: aws.String("inboundOrderLineScheduleId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.inboundorderlineschedule"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for forecast event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared03() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"snapshot_date\": \"1672470400000\", \"product_id\": \"product-id-test-123\", \"site_id\": \"site-id-test-123\", \"region_id\": \"region-id-test-123\", \"product_group_id\": \"product-group-id-test-123\", \"forecast_start_dttm\": \"1672470400000\", \"forecast_end_dttm\": \"1672470400000\" }"), + EventGroupId: aws.String("forecastId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.forecast"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for inventorylevel event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared04() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"snapshot_date\": \"1672470400000\", \"site_id\": \"site-id-test-123\", \"product_id\": \"product-id-test-123\", \"on_hand_inventory\": \"100.0\", \"inv_condition\": \"good\", \"lot_number\": \"lot-number-test-123\"}"), + EventGroupId: aws.String("inventoryLevelId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.inventorylevel"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for outboundorderline event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared05() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"id\": \"outbound-orderline-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"product_id\": \"product-id-test-123\" }"), + EventGroupId: aws.String("outboundOrderLineId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.outboundorderline"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for outboundshipment event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared06() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"id\": \"outbound-shipment-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"cust_order_line_id\": \"cust-order-line-id-test-123\", \"product_id\": \"product-id-test-123\" }"), + EventGroupId: aws.String("outboundShipmentId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.outboundshipment"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for processheader event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared07() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"process_id\": \"process-id-test-123\" }"), + EventGroupId: aws.String("processHeaderId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.processheader"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for processoperation event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared08() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"process_operation_id\": \"process-operation-id-test-123\", \"process_id\": \"process-id-test-123\" }"), + EventGroupId: aws.String("processOperationId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.processoperation"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for processproduct event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared09() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"process_product_id\": \"process-product-id-test-123\", \"process_id\": \"process-id-test-123\" }"), + EventGroupId: aws.String("processProductId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.processproduct"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for reservation event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared10() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"reservation_id\": \"reservation-id-test-123\", \"reservation_detail_id\": \"reservation-detail-id-test-123\" }"), + EventGroupId: aws.String("reservationId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.reservation"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for shipment event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared11() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"id\": \"shipment-id-test-123\", \"supplier_tpartner_id\": \"supplier-tpartner-id-test-123\", \"product_id\": \"product-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"package_id\": \"package-id-test-123\" }"), + EventGroupId: aws.String("shipmentId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.shipment"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for shipmentstop event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared12() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }"), + EventGroupId: aws.String("shipmentStopId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.shipmentstop"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for shipmentstoporder event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared13() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"shipment_stop_order_id\": \"shipment-stop-order-id-test-123\", \"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }"), + EventGroupId: aws.String("shipmentStopOrderId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.shipmentstoporder"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// Successful SendDataIntegrationEvent for supplyplan event type +// + +func ExampleSupplyChain_SendDataIntegrationEvent_shared14() { + svc := supplychain.New(session.New()) + input := &supplychain.SendDataIntegrationEventInput{ + Data: aws.String("{\"supply_plan_id\": \"supply-plan-id-test-123\" }"), + EventGroupId: aws.String("supplyPlanId"), + EventTimestamp: parseTime("2006-01-02T15:04:05.999999999Z", "1515531081.123000"), + EventType: aws.String("scn.data.supplyplan"), + InstanceId: aws.String("8928ae12-15e5-4441-825d-ec2184f0a43a"), + } + + result, err := svc.SendDataIntegrationEvent(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case supplychain.ErrCodeServiceQuotaExceededException: + fmt.Println(supplychain.ErrCodeServiceQuotaExceededException, aerr.Error()) + case supplychain.ErrCodeResourceNotFoundException: + fmt.Println(supplychain.ErrCodeResourceNotFoundException, aerr.Error()) + case supplychain.ErrCodeThrottlingException: + fmt.Println(supplychain.ErrCodeThrottlingException, aerr.Error()) + case supplychain.ErrCodeAccessDeniedException: + fmt.Println(supplychain.ErrCodeAccessDeniedException, aerr.Error()) + case supplychain.ErrCodeValidationException: + fmt.Println(supplychain.ErrCodeValidationException, aerr.Error()) + case supplychain.ErrCodeInternalServerException: + fmt.Println(supplychain.ErrCodeInternalServerException, aerr.Error()) + case supplychain.ErrCodeConflictException: + fmt.Println(supplychain.ErrCodeConflictException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} diff --git a/service/supplychain/supplychainiface/interface.go b/service/supplychain/supplychainiface/interface.go index bba0c6fd917..2c33ea80db9 100644 --- a/service/supplychain/supplychainiface/interface.go +++ b/service/supplychain/supplychainiface/interface.go @@ -67,6 +67,10 @@ type SupplyChainAPI interface { GetBillOfMaterialsImportJob(*supplychain.GetBillOfMaterialsImportJobInput) (*supplychain.GetBillOfMaterialsImportJobOutput, error) GetBillOfMaterialsImportJobWithContext(aws.Context, *supplychain.GetBillOfMaterialsImportJobInput, ...request.Option) (*supplychain.GetBillOfMaterialsImportJobOutput, error) GetBillOfMaterialsImportJobRequest(*supplychain.GetBillOfMaterialsImportJobInput) (*request.Request, *supplychain.GetBillOfMaterialsImportJobOutput) + + SendDataIntegrationEvent(*supplychain.SendDataIntegrationEventInput) (*supplychain.SendDataIntegrationEventOutput, error) + SendDataIntegrationEventWithContext(aws.Context, *supplychain.SendDataIntegrationEventInput, ...request.Option) (*supplychain.SendDataIntegrationEventOutput, error) + SendDataIntegrationEventRequest(*supplychain.SendDataIntegrationEventInput) (*request.Request, *supplychain.SendDataIntegrationEventOutput) } var _ SupplyChainAPI = (*supplychain.SupplyChain)(nil) diff --git a/service/workspacesthinclient/api.go b/service/workspacesthinclient/api.go index 123c7fcad3c..817cf2c0e37 100644 --- a/service/workspacesthinclient/api.go +++ b/service/workspacesthinclient/api.go @@ -1190,11 +1190,17 @@ func (c *WorkSpacesThinClient) ListTagsForResourceRequest(input *ListTagsForReso // - ValidationException // The input fails to satisfy the specified constraints. // +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// // - ResourceNotFoundException // The resource specified in the request was not found. // -// - InternalServiceException -// Request processing failed due to some unknown error, exception, or failure. +// - ThrottlingException +// The request was denied due to request throttling. +// +// - InternalServerException +// The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-thin-client-2023-08-22/ListTagsForResource func (c *WorkSpacesThinClient) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -1278,11 +1284,22 @@ func (c *WorkSpacesThinClient) TagResourceRequest(input *TagResourceInput) (req // - ValidationException // The input fails to satisfy the specified constraints. // +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// // - ResourceNotFoundException // The resource specified in the request was not found. // -// - InternalServiceException -// Request processing failed due to some unknown error, exception, or failure. +// - ThrottlingException +// The request was denied due to request throttling. +// +// - ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// - InternalServerException +// The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-thin-client-2023-08-22/TagResource func (c *WorkSpacesThinClient) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -1366,11 +1383,22 @@ func (c *WorkSpacesThinClient) UntagResourceRequest(input *UntagResourceInput) ( // - ValidationException // The input fails to satisfy the specified constraints. // +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// // - ResourceNotFoundException // The resource specified in the request was not found. // -// - InternalServiceException -// Request processing failed due to some unknown error, exception, or failure. +// - ThrottlingException +// The request was denied due to request throttling. +// +// - ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// - InternalServerException +// The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-thin-client-2023-08-22/UntagResource func (c *WorkSpacesThinClient) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -2376,7 +2404,7 @@ type Device struct { // Tags is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Device's // String and GoString methods. - Tags *EmbeddedTag `locationName:"tags" type:"structure" sensitive:"true"` + Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` // The timestamp of when the device was updated. UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"` @@ -2515,7 +2543,7 @@ func (s *Device) SetStatus(v string) *Device { } // SetTags sets the Tags field's value. -func (s *Device) SetTags(v *EmbeddedTag) *Device { +func (s *Device) SetTags(v map[string]*string) *Device { s.Tags = v return s } @@ -2577,13 +2605,6 @@ type DeviceSummary struct { // The status of the device. Status *string `locationName:"status" type:"string" enum:"DeviceStatus"` - // The tag keys and optional values for the resource. - // - // Tags is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by DeviceSummary's - // String and GoString methods. - Tags *EmbeddedTag `locationName:"tags" type:"structure" sensitive:"true"` - // The timestamp of when the device was updated. UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"` } @@ -2690,59 +2711,12 @@ func (s *DeviceSummary) SetStatus(v string) *DeviceSummary { return s } -// SetTags sets the Tags field's value. -func (s *DeviceSummary) SetTags(v *EmbeddedTag) *DeviceSummary { - s.Tags = v - return s -} - // SetUpdatedAt sets the UpdatedAt field's value. func (s *DeviceSummary) SetUpdatedAt(v time.Time) *DeviceSummary { s.UpdatedAt = &v return s } -// The resource and internal ID of a resource to tag. -type EmbeddedTag struct { - _ struct{} `type:"structure" sensitive:"true"` - - // The internal ID of a resource to tag. - InternalId *string `locationName:"internalId" type:"string"` - - // The Amazon Resource Name (ARN) of a resource to tag. - ResourceArn *string `locationName:"resourceArn" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s EmbeddedTag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s EmbeddedTag) GoString() string { - return s.String() -} - -// SetInternalId sets the InternalId field's value. -func (s *EmbeddedTag) SetInternalId(v string) *EmbeddedTag { - s.InternalId = &v - return s -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *EmbeddedTag) SetResourceArn(v string) *EmbeddedTag { - s.ResourceArn = &v - return s -} - // Describes an environment. type Environment struct { _ struct{} `type:"structure"` @@ -2816,7 +2790,7 @@ type Environment struct { // Tags is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Environment's // String and GoString methods. - Tags *EmbeddedTag `locationName:"tags" type:"structure" sensitive:"true"` + Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` // The timestamp of when the device was updated. UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"` @@ -2943,7 +2917,7 @@ func (s *Environment) SetSoftwareSetUpdateSchedule(v string) *Environment { } // SetTags sets the Tags field's value. -func (s *Environment) SetTags(v *EmbeddedTag) *Environment { +func (s *Environment) SetTags(v map[string]*string) *Environment { s.Tags = v return s } @@ -3008,13 +2982,6 @@ type EnvironmentSummary struct { // window. SoftwareSetUpdateSchedule *string `locationName:"softwareSetUpdateSchedule" type:"string" enum:"SoftwareSetUpdateSchedule"` - // The tag keys and optional values for the resource. - // - // Tags is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentSummary's - // String and GoString methods. - Tags *EmbeddedTag `locationName:"tags" type:"structure" sensitive:"true"` - // The timestamp of when the device was updated. UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"` } @@ -3115,12 +3082,6 @@ func (s *EnvironmentSummary) SetSoftwareSetUpdateSchedule(v string) *Environment return s } -// SetTags sets the Tags field's value. -func (s *EnvironmentSummary) SetTags(v *EmbeddedTag) *EnvironmentSummary { - s.Tags = v - return s -} - // SetUpdatedAt sets the UpdatedAt field's value. func (s *EnvironmentSummary) SetUpdatedAt(v time.Time) *EnvironmentSummary { s.UpdatedAt = &v @@ -3434,73 +3395,6 @@ func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } -// Request processing failed due to some unknown error, exception, or failure. -type InternalServiceException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` - - // The number of seconds to wait before retrying the next request. - RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServiceException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServiceException) GoString() string { - return s.String() -} - -func newErrorInternalServiceException(v protocol.ResponseMetadata) error { - return &InternalServiceException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InternalServiceException) Code() string { - return "InternalServiceException" -} - -// Message returns the exception's message. -func (s *InternalServiceException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServiceException) OrigErr() error { - return nil -} - -func (s *InternalServiceException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServiceException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InternalServiceException) RequestID() string { - return s.RespMetadata.RequestID -} - type ListDevicesInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -4208,6 +4102,13 @@ type SoftwareSet struct { // The timestamp of the end of support for the software set. SupportedUntil *time.Time `locationName:"supportedUntil" type:"timestamp"` + // The tag keys and optional values for the resource. + // + // Tags is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SoftwareSet's + // String and GoString methods. + Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + // An option to define if the software set has been validated. ValidationStatus *string `locationName:"validationStatus" type:"string" enum:"SoftwareSetValidationStatus"` @@ -4263,6 +4164,12 @@ func (s *SoftwareSet) SetSupportedUntil(v time.Time) *SoftwareSet { return s } +// SetTags sets the Tags field's value. +func (s *SoftwareSet) SetTags(v map[string]*string) *SoftwareSet { + s.Tags = v + return s +} + // SetValidationStatus sets the ValidationStatus field's value. func (s *SoftwareSet) SetValidationStatus(v string) *SoftwareSet { s.ValidationStatus = &v diff --git a/service/workspacesthinclient/errors.go b/service/workspacesthinclient/errors.go index 4180fb64a6e..67226e66f5b 100644 --- a/service/workspacesthinclient/errors.go +++ b/service/workspacesthinclient/errors.go @@ -28,12 +28,6 @@ const ( // The server encountered an internal error and is unable to complete the request. ErrCodeInternalServerException = "InternalServerException" - // ErrCodeInternalServiceException for service response error code - // "InternalServiceException". - // - // Request processing failed due to some unknown error, exception, or failure. - ErrCodeInternalServiceException = "InternalServiceException" - // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // @@ -63,7 +57,6 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "ConflictException": newErrorConflictException, "InternalServerException": newErrorInternalServerException, - "InternalServiceException": newErrorInternalServiceException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException,