/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the wisdom-2020-10-19.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.ConnectWisdomService.Model;
using Amazon.ConnectWisdomService.Model.Internal.MarshallTransformations;
using Amazon.ConnectWisdomService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ConnectWisdomService
{
///
/// Implementation for accessing ConnectWisdomService
///
/// Amazon Connect Wisdom delivers agents the information they need to solve customer
/// issues as they're actively speaking with customers. Agents can search across connected
/// repositories from within their agent desktop to find answers quickly. Use Amazon Connect
/// Wisdom to create an assistant and a knowledge base, for example, or manage content
/// by uploading custom files.
///
public partial class AmazonConnectWisdomServiceClient : AmazonServiceClient, IAmazonConnectWisdomService
{
private static IServiceMetadata serviceMetadata = new AmazonConnectWisdomServiceMetadata();
private IConnectWisdomServicePaginatorFactory _paginators;
///
/// Paginators for the service
///
public IConnectWisdomServicePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ConnectWisdomServicePaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonConnectWisdomServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonConnectWisdomServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonConnectWisdomServiceConfig()) { }
///
/// Constructs AmazonConnectWisdomServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonConnectWisdomServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonConnectWisdomServiceConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonConnectWisdomServiceClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonConnectWisdomServiceClient Configuration Object
public AmazonConnectWisdomServiceClient(AmazonConnectWisdomServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Credentials
///
/// AWS Credentials
public AmazonConnectWisdomServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonConnectWisdomServiceConfig())
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonConnectWisdomServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonConnectWisdomServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Credentials and an
/// AmazonConnectWisdomServiceClient Configuration object.
///
/// AWS Credentials
/// The AmazonConnectWisdomServiceClient Configuration Object
public AmazonConnectWisdomServiceClient(AWSCredentials credentials, AmazonConnectWisdomServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonConnectWisdomServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonConnectWisdomServiceConfig())
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonConnectWisdomServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonConnectWisdomServiceConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonConnectWisdomServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonConnectWisdomServiceClient Configuration Object
public AmazonConnectWisdomServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonConnectWisdomServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonConnectWisdomServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonConnectWisdomServiceConfig())
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonConnectWisdomServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonConnectWisdomServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonConnectWisdomServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonConnectWisdomServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonConnectWisdomServiceClient Configuration Object
public AmazonConnectWisdomServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonConnectWisdomServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonConnectWisdomServiceEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateAssistant
///
/// Creates an Amazon Connect Wisdom assistant.
///
/// Container for the necessary parameters to execute the CreateAssistant service method.
///
/// The response from the CreateAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateAssistant Operation
public virtual CreateAssistantResponse CreateAssistant(CreateAssistantRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssistantResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon Connect Wisdom assistant.
///
/// Container for the necessary parameters to execute the CreateAssistant service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateAssistant Operation
public virtual Task CreateAssistantAsync(CreateAssistantRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssistantResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAssistantAssociation
///
/// Creates an association between an Amazon Connect Wisdom assistant and another resource.
/// Currently, the only supported association is with a knowledge base. An assistant can
/// have only a single association.
///
/// Container for the necessary parameters to execute the CreateAssistantAssociation service method.
///
/// The response from the CreateAssistantAssociation service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateAssistantAssociation Operation
public virtual CreateAssistantAssociationResponse CreateAssistantAssociation(CreateAssistantAssociationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssistantAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssistantAssociationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an association between an Amazon Connect Wisdom assistant and another resource.
/// Currently, the only supported association is with a knowledge base. An assistant can
/// have only a single association.
///
/// Container for the necessary parameters to execute the CreateAssistantAssociation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAssistantAssociation service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateAssistantAssociation Operation
public virtual Task CreateAssistantAssociationAsync(CreateAssistantAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssistantAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssistantAssociationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateContent
///
/// Creates Wisdom content. Before to calling this API, use StartContentUpload
/// to upload an asset.
///
/// Container for the necessary parameters to execute the CreateContent service method.
///
/// The response from the CreateContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateContent Operation
public virtual CreateContentResponse CreateContent(CreateContentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates Wisdom content. Before to calling this API, use StartContentUpload
/// to upload an asset.
///
/// Container for the necessary parameters to execute the CreateContent service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateContent Operation
public virtual Task CreateContentAsync(CreateContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateContentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region 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.
///
///
///
/// Container for the necessary parameters to execute the CreateKnowledgeBase service method.
///
/// The response from the CreateKnowledgeBase service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateKnowledgeBase Operation
public virtual CreateKnowledgeBaseResponse CreateKnowledgeBase(CreateKnowledgeBaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateKnowledgeBaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateKnowledgeBaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the CreateKnowledgeBase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateKnowledgeBase service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// You've exceeded your service quota. To perform the requested action, remove some of
/// the relevant resources, or use service quotas to request a service quota increase.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateKnowledgeBase Operation
public virtual Task CreateKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateKnowledgeBaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateKnowledgeBaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateSession
///
/// Creates a session. A session is a contextual container used for generating recommendations.
/// Amazon Connect creates a new Wisdom session for each contact on which Wisdom is enabled.
///
/// Container for the necessary parameters to execute the CreateSession service method.
///
/// The response from the CreateSession service method, as returned by ConnectWisdomService.
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateSession Operation
public virtual CreateSessionResponse CreateSession(CreateSessionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSessionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSessionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a session. A session is a contextual container used for generating recommendations.
/// Amazon Connect creates a new Wisdom session for each contact on which Wisdom is enabled.
///
/// Container for the necessary parameters to execute the CreateSession service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateSession service method, as returned by ConnectWisdomService.
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for CreateSession Operation
public virtual Task CreateSessionAsync(CreateSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSessionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSessionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAssistant
///
/// Deletes an assistant.
///
/// Container for the necessary parameters to execute the DeleteAssistant service method.
///
/// The response from the DeleteAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteAssistant Operation
public virtual DeleteAssistantResponse DeleteAssistant(DeleteAssistantRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssistantResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an assistant.
///
/// Container for the necessary parameters to execute the DeleteAssistant service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteAssistant Operation
public virtual Task DeleteAssistantAsync(DeleteAssistantRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssistantResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAssistantAssociation
///
/// Deletes an assistant association.
///
/// Container for the necessary parameters to execute the DeleteAssistantAssociation service method.
///
/// The response from the DeleteAssistantAssociation service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteAssistantAssociation Operation
public virtual DeleteAssistantAssociationResponse DeleteAssistantAssociation(DeleteAssistantAssociationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssistantAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssistantAssociationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an assistant association.
///
/// Container for the necessary parameters to execute the DeleteAssistantAssociation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAssistantAssociation service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteAssistantAssociation Operation
public virtual Task DeleteAssistantAssociationAsync(DeleteAssistantAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssistantAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssistantAssociationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteContent
///
/// Deletes the content.
///
/// Container for the necessary parameters to execute the DeleteContent service method.
///
/// The response from the DeleteContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteContent Operation
public virtual DeleteContentResponse DeleteContent(DeleteContentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the content.
///
/// Container for the necessary parameters to execute the DeleteContent service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteContent Operation
public virtual Task DeleteContentAsync(DeleteContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteContentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteKnowledgeBase
///
/// Deletes the knowledge base.
///
///
///
/// When you use this API to delete an external knowledge base such as Salesforce or ServiceNow,
/// you must also delete the Amazon
/// AppIntegrations DataIntegration. This is because you can't reuse the DataIntegration
/// after it's been associated with an external knowledge base. However, you can delete
/// and recreate it. See DeleteDataIntegration
/// and CreateDataIntegration
/// in the Amazon AppIntegrations API Reference.
///
///
///
/// Container for the necessary parameters to execute the DeleteKnowledgeBase service method.
///
/// The response from the DeleteKnowledgeBase service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteKnowledgeBase Operation
public virtual DeleteKnowledgeBaseResponse DeleteKnowledgeBase(DeleteKnowledgeBaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKnowledgeBaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKnowledgeBaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the knowledge base.
///
///
///
/// When you use this API to delete an external knowledge base such as Salesforce or ServiceNow,
/// you must also delete the Amazon
/// AppIntegrations DataIntegration. This is because you can't reuse the DataIntegration
/// after it's been associated with an external knowledge base. However, you can delete
/// and recreate it. See DeleteDataIntegration
/// and CreateDataIntegration
/// in the Amazon AppIntegrations API Reference.
///
///
///
/// Container for the necessary parameters to execute the DeleteKnowledgeBase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteKnowledgeBase service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request could not be processed because of conflict in the current state of the
/// resource. For example, if you're using a Create
API (such as CreateAssistant
)
/// that accepts name, a conflicting resource (usually with the same name) is being created
/// or mutated.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for DeleteKnowledgeBase Operation
public virtual Task DeleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteKnowledgeBaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteKnowledgeBaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAssistant
///
/// Retrieves information about an assistant.
///
/// Container for the necessary parameters to execute the GetAssistant service method.
///
/// The response from the GetAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetAssistant Operation
public virtual GetAssistantResponse GetAssistant(GetAssistantRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssistantResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves information about an assistant.
///
/// Container for the necessary parameters to execute the GetAssistant service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetAssistant Operation
public virtual Task GetAssistantAsync(GetAssistantRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssistantResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAssistantAssociation
///
/// Retrieves information about an assistant association.
///
/// Container for the necessary parameters to execute the GetAssistantAssociation service method.
///
/// The response from the GetAssistantAssociation service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetAssistantAssociation Operation
public virtual GetAssistantAssociationResponse GetAssistantAssociation(GetAssistantAssociationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssistantAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssistantAssociationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves information about an assistant association.
///
/// Container for the necessary parameters to execute the GetAssistantAssociation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAssistantAssociation service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetAssistantAssociation Operation
public virtual Task GetAssistantAssociationAsync(GetAssistantAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssistantAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssistantAssociationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContent
///
/// Retrieves content, including a pre-signed URL to download the content.
///
/// Container for the necessary parameters to execute the GetContent service method.
///
/// The response from the GetContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetContent Operation
public virtual GetContentResponse GetContent(GetContentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves content, including a pre-signed URL to download the content.
///
/// Container for the necessary parameters to execute the GetContent service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetContent Operation
public virtual Task GetContentAsync(GetContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetContentSummary
///
/// Retrieves summary information about the content.
///
/// Container for the necessary parameters to execute the GetContentSummary service method.
///
/// The response from the GetContentSummary service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetContentSummary Operation
public virtual GetContentSummaryResponse GetContentSummary(GetContentSummaryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContentSummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContentSummaryResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves summary information about the content.
///
/// Container for the necessary parameters to execute the GetContentSummary service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetContentSummary service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetContentSummary Operation
public virtual Task GetContentSummaryAsync(GetContentSummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContentSummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContentSummaryResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetKnowledgeBase
///
/// Retrieves information about the knowledge base.
///
/// Container for the necessary parameters to execute the GetKnowledgeBase service method.
///
/// The response from the GetKnowledgeBase service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetKnowledgeBase Operation
public virtual GetKnowledgeBaseResponse GetKnowledgeBase(GetKnowledgeBaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetKnowledgeBaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetKnowledgeBaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves information about the knowledge base.
///
/// Container for the necessary parameters to execute the GetKnowledgeBase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetKnowledgeBase service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetKnowledgeBase Operation
public virtual Task GetKnowledgeBaseAsync(GetKnowledgeBaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetKnowledgeBaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetKnowledgeBaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region 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.
///
/// Container for the necessary parameters to execute the GetRecommendations service method.
///
/// The response from the GetRecommendations service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetRecommendations Operation
public virtual GetRecommendationsResponse GetRecommendations(GetRecommendationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRecommendationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRecommendationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the GetRecommendations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetRecommendations service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetRecommendations Operation
public virtual Task GetRecommendationsAsync(GetRecommendationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRecommendationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRecommendationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetSession
///
/// Retrieves information for a specified session.
///
/// Container for the necessary parameters to execute the GetSession service method.
///
/// The response from the GetSession service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetSession Operation
public virtual GetSessionResponse GetSession(GetSessionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSessionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves information for a specified session.
///
/// Container for the necessary parameters to execute the GetSession service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetSession service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for GetSession Operation
public virtual Task GetSessionAsync(GetSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSessionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSessionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAssistantAssociations
///
/// Lists information about assistant associations.
///
/// Container for the necessary parameters to execute the ListAssistantAssociations service method.
///
/// The response from the ListAssistantAssociations service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListAssistantAssociations Operation
public virtual ListAssistantAssociationsResponse ListAssistantAssociations(ListAssistantAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssistantAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssistantAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists information about assistant associations.
///
/// Container for the necessary parameters to execute the ListAssistantAssociations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAssistantAssociations service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListAssistantAssociations Operation
public virtual Task ListAssistantAssociationsAsync(ListAssistantAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssistantAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssistantAssociationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAssistants
///
/// Lists information about assistants.
///
/// Container for the necessary parameters to execute the ListAssistants service method.
///
/// The response from the ListAssistants service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListAssistants Operation
public virtual ListAssistantsResponse ListAssistants(ListAssistantsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssistantsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssistantsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists information about assistants.
///
/// Container for the necessary parameters to execute the ListAssistants service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAssistants service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListAssistants Operation
public virtual Task ListAssistantsAsync(ListAssistantsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssistantsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssistantsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListContents
///
/// Lists the content.
///
/// Container for the necessary parameters to execute the ListContents service method.
///
/// The response from the ListContents service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListContents Operation
public virtual ListContentsResponse ListContents(ListContentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListContentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListContentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the content.
///
/// Container for the necessary parameters to execute the ListContents service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListContents service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListContents Operation
public virtual Task ListContentsAsync(ListContentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListContentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListContentsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListKnowledgeBases
///
/// Lists the knowledge bases.
///
/// Container for the necessary parameters to execute the ListKnowledgeBases service method.
///
/// The response from the ListKnowledgeBases service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListKnowledgeBases Operation
public virtual ListKnowledgeBasesResponse ListKnowledgeBases(ListKnowledgeBasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListKnowledgeBasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListKnowledgeBasesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the knowledge bases.
///
/// Container for the necessary parameters to execute the ListKnowledgeBases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListKnowledgeBases service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for ListKnowledgeBases Operation
public virtual Task ListKnowledgeBasesAsync(ListKnowledgeBasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListKnowledgeBasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListKnowledgeBasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags for the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by ConnectWisdomService.
///
/// The specified resource does not exist.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the tags for the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by ConnectWisdomService.
///
/// The specified resource does not exist.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region 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.
///
/// Container for the necessary parameters to execute the NotifyRecommendationsReceived service method.
///
/// The response from the NotifyRecommendationsReceived service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for NotifyRecommendationsReceived Operation
public virtual NotifyRecommendationsReceivedResponse NotifyRecommendationsReceived(NotifyRecommendationsReceivedRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyRecommendationsReceivedRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyRecommendationsReceivedResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the NotifyRecommendationsReceived service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the NotifyRecommendationsReceived service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for NotifyRecommendationsReceived Operation
public virtual Task NotifyRecommendationsReceivedAsync(NotifyRecommendationsReceivedRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = NotifyRecommendationsReceivedRequestMarshaller.Instance;
options.ResponseUnmarshaller = NotifyRecommendationsReceivedResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region QueryAssistant
///
/// Performs a manual search against the specified assistant. To retrieve recommendations
/// for an assistant, use GetRecommendations.
///
/// Container for the necessary parameters to execute the QueryAssistant service method.
///
/// The response from the QueryAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for QueryAssistant Operation
public virtual QueryAssistantResponse QueryAssistant(QueryAssistantRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = QueryAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = QueryAssistantResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Performs a manual search against the specified assistant. To retrieve recommendations
/// for an assistant, use GetRecommendations.
///
/// Container for the necessary parameters to execute the QueryAssistant service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the QueryAssistant service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for QueryAssistant Operation
public virtual Task QueryAssistantAsync(QueryAssistantRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = QueryAssistantRequestMarshaller.Instance;
options.ResponseUnmarshaller = QueryAssistantResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RemoveKnowledgeBaseTemplateUri
///
/// Removes a URI template from a knowledge base.
///
/// Container for the necessary parameters to execute the RemoveKnowledgeBaseTemplateUri service method.
///
/// The response from the RemoveKnowledgeBaseTemplateUri service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for RemoveKnowledgeBaseTemplateUri Operation
public virtual RemoveKnowledgeBaseTemplateUriResponse RemoveKnowledgeBaseTemplateUri(RemoveKnowledgeBaseTemplateUriRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveKnowledgeBaseTemplateUriRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveKnowledgeBaseTemplateUriResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes a URI template from a knowledge base.
///
/// Container for the necessary parameters to execute the RemoveKnowledgeBaseTemplateUri service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RemoveKnowledgeBaseTemplateUri service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for RemoveKnowledgeBaseTemplateUri Operation
public virtual Task RemoveKnowledgeBaseTemplateUriAsync(RemoveKnowledgeBaseTemplateUriRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveKnowledgeBaseTemplateUriRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveKnowledgeBaseTemplateUriResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SearchContent
///
/// Searches for content in a specified knowledge base. Can be used to get a specific
/// content resource by its name.
///
/// Container for the necessary parameters to execute the SearchContent service method.
///
/// The response from the SearchContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for SearchContent Operation
public virtual SearchContentResponse SearchContent(SearchContentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchContentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Searches for content in a specified knowledge base. Can be used to get a specific
/// content resource by its name.
///
/// Container for the necessary parameters to execute the SearchContent service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SearchContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for SearchContent Operation
public virtual Task SearchContentAsync(SearchContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchContentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SearchSessions
///
/// Searches for sessions.
///
/// Container for the necessary parameters to execute the SearchSessions service method.
///
/// The response from the SearchSessions service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for SearchSessions Operation
public virtual SearchSessionsResponse SearchSessions(SearchSessionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchSessionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchSessionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Searches for sessions.
///
/// Container for the necessary parameters to execute the SearchSessions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SearchSessions service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for SearchSessions Operation
public virtual Task SearchSessionsAsync(SearchSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchSessionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchSessionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region 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.
///
/// Container for the necessary parameters to execute the StartContentUpload service method.
///
/// The response from the StartContentUpload service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for StartContentUpload Operation
public virtual StartContentUploadResponse StartContentUpload(StartContentUploadRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContentUploadRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContentUploadResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the StartContentUpload service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartContentUpload service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for StartContentUpload Operation
public virtual Task StartContentUploadAsync(StartContentUploadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContentUploadRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContentUploadResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Adds the specified tags to the specified resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by ConnectWisdomService.
///
/// The specified resource does not exist.
///
///
/// Amazon Connect Wisdom throws this exception if you have too many tags in your tag
/// set.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds the specified tags to the specified resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by ConnectWisdomService.
///
/// The specified resource does not exist.
///
///
/// Amazon Connect Wisdom throws this exception if you have too many tags in your tag
/// set.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Removes the specified tags from the specified resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by ConnectWisdomService.
///
/// The specified resource does not exist.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes the specified tags from the specified resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by ConnectWisdomService.
///
/// The specified resource does not exist.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateContent
///
/// Updates information about the content.
///
/// Container for the necessary parameters to execute the UpdateContent service method.
///
/// The response from the UpdateContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The provided revisionId
does not match, indicating the content has been
/// modified since it was last read.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for UpdateContent Operation
public virtual UpdateContentResponse UpdateContent(UpdateContentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateContentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates information about the content.
///
/// Container for the necessary parameters to execute the UpdateContent service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateContent service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The provided revisionId
does not match, indicating the content has been
/// modified since it was last read.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for UpdateContent Operation
public virtual Task UpdateContentAsync(UpdateContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateContentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateContentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region 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 Wisdom 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
.
///
/// Container for the necessary parameters to execute the UpdateKnowledgeBaseTemplateUri service method.
///
/// The response from the UpdateKnowledgeBaseTemplateUri service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for UpdateKnowledgeBaseTemplateUri Operation
public virtual UpdateKnowledgeBaseTemplateUriResponse UpdateKnowledgeBaseTemplateUri(UpdateKnowledgeBaseTemplateUriRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateKnowledgeBaseTemplateUriRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateKnowledgeBaseTemplateUriResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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 Wisdom 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
.
///
/// Container for the necessary parameters to execute the UpdateKnowledgeBaseTemplateUri service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateKnowledgeBaseTemplateUri service method, as returned by ConnectWisdomService.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified resource does not exist.
///
///
/// The input fails to satisfy the constraints specified by a service.
///
/// REST API Reference for UpdateKnowledgeBaseTemplateUri Operation
public virtual Task UpdateKnowledgeBaseTemplateUriAsync(UpdateKnowledgeBaseTemplateUriRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateKnowledgeBaseTemplateUriRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateKnowledgeBaseTemplateUriResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}