Struct aws_sdk_wisdom::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for Amazon Connect Wisdom Service
Client for invoking operations on Amazon Connect Wisdom Service. Each operation on Amazon Connect Wisdom Service is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_wisdom::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_wisdom::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_wisdom::Client::from_conf(config);Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn create_assistant(&self) -> CreateAssistant
pub fn create_assistant(&self) -> CreateAssistant
Constructs a fluent builder for the CreateAssistant operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
name(impl Into<String>)/set_name(Option<String>):The name of the assistant.
r#type(AssistantType)/set_type(Option<AssistantType>):The type of assistant.
description(impl Into<String>)/set_description(Option<String>):The description of the assistant.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags used to organize, track, or control access for this resource.
server_side_encryption_configuration(ServerSideEncryptionConfiguration)/set_server_side_encryption_configuration(Option<ServerSideEncryptionConfiguration>):The KMS key used for encryption.
- On success, responds with
CreateAssistantOutputwith field(s):assistant(Option<AssistantData>):Information about the assistant.
- On failure, responds with
SdkError<CreateAssistantError>
sourcepub fn create_assistant_association(&self) -> CreateAssistantAssociation
pub fn create_assistant_association(&self) -> CreateAssistantAssociation
Constructs a fluent builder for the CreateAssistantAssociation operation.
- The fluent builder is configurable:
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
association_type(AssociationType)/set_association_type(Option<AssociationType>):The type of association.
association(AssistantAssociationInputData)/set_association(Option<AssistantAssociationInputData>):The identifier of the associated resource.
client_token(impl Into<String>)/set_client_token(Option<String>):A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags used to organize, track, or control access for this resource.
- On success, responds with
CreateAssistantAssociationOutputwith field(s):assistant_association(Option<AssistantAssociationData>):The assistant association.
- On failure, responds with
SdkError<CreateAssistantAssociationError>
sourcepub fn create_content(&self) -> CreateContent
pub fn create_content(&self) -> CreateContent
Constructs a fluent builder for the CreateContent operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
name(impl Into<String>)/set_name(Option<String>):The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
title(impl Into<String>)/set_title(Option<String>):The title of the content. If not set, the title is equal to the name.
override_link_out_uri(impl Into<String>)/set_override_link_out_uri(Option<String>):The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
metadata(HashMap<String, String>)/set_metadata(Option<HashMap<String, String>>):A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
upload_id(impl Into<String>)/set_upload_id(Option<String>):A pointer to the uploaded asset. This value is returned by StartContentUpload.
client_token(impl Into<String>)/set_client_token(Option<String>):A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags used to organize, track, or control access for this resource.
- On success, responds with
CreateContentOutputwith field(s):content(Option<ContentData>):The content.
- On failure, responds with
SdkError<CreateContentError>
sourcepub fn create_knowledge_base(&self) -> CreateKnowledgeBase
pub fn create_knowledge_base(&self) -> CreateKnowledgeBase
Constructs a fluent builder for the CreateKnowledgeBase operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
name(impl Into<String>)/set_name(Option<String>):The name of the knowledge base.
knowledge_base_type(KnowledgeBaseType)/set_knowledge_base_type(Option<KnowledgeBaseType>):The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
source_configuration(SourceConfiguration)/set_source_configuration(Option<SourceConfiguration>):The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
rendering_configuration(RenderingConfiguration)/set_rendering_configuration(Option<RenderingConfiguration>):Information about how to render the content.
server_side_encryption_configuration(ServerSideEncryptionConfiguration)/set_server_side_encryption_configuration(Option<ServerSideEncryptionConfiguration>):The KMS key used for encryption.
description(impl Into<String>)/set_description(Option<String>):The description.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags used to organize, track, or control access for this resource.
- On success, responds with
CreateKnowledgeBaseOutputwith field(s):knowledge_base(Option<KnowledgeBaseData>):The knowledge base.
- On failure, responds with
SdkError<CreateKnowledgeBaseError>
sourcepub fn create_session(&self) -> CreateSession
pub fn create_session(&self) -> CreateSession
Constructs a fluent builder for the CreateSession operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
name(impl Into<String>)/set_name(Option<String>):The name of the session.
description(impl Into<String>)/set_description(Option<String>):The description.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags used to organize, track, or control access for this resource.
- On success, responds with
CreateSessionOutputwith field(s):session(Option<SessionData>):The session.
- On failure, responds with
SdkError<CreateSessionError>
sourcepub fn delete_assistant(&self) -> DeleteAssistant
pub fn delete_assistant(&self) -> DeleteAssistant
Constructs a fluent builder for the DeleteAssistant operation.
- The fluent builder is configurable:
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
DeleteAssistantOutput - On failure, responds with
SdkError<DeleteAssistantError>
sourcepub fn delete_assistant_association(&self) -> DeleteAssistantAssociation
pub fn delete_assistant_association(&self) -> DeleteAssistantAssociation
Constructs a fluent builder for the DeleteAssistantAssociation operation.
- The fluent builder is configurable:
assistant_association_id(impl Into<String>)/set_assistant_association_id(Option<String>):The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
DeleteAssistantAssociationOutput - On failure, responds with
SdkError<DeleteAssistantAssociationError>
sourcepub fn delete_content(&self) -> DeleteContent
pub fn delete_content(&self) -> DeleteContent
Constructs a fluent builder for the DeleteContent operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
content_id(impl Into<String>)/set_content_id(Option<String>):The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
DeleteContentOutput - On failure, responds with
SdkError<DeleteContentError>
sourcepub fn delete_knowledge_base(&self) -> DeleteKnowledgeBase
pub fn delete_knowledge_base(&self) -> DeleteKnowledgeBase
Constructs a fluent builder for the DeleteKnowledgeBase operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
DeleteKnowledgeBaseOutput - On failure, responds with
SdkError<DeleteKnowledgeBaseError>
sourcepub fn get_assistant(&self) -> GetAssistant
pub fn get_assistant(&self) -> GetAssistant
Constructs a fluent builder for the GetAssistant operation.
- The fluent builder is configurable:
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
GetAssistantOutputwith field(s):assistant(Option<AssistantData>):Information about the assistant.
- On failure, responds with
SdkError<GetAssistantError>
sourcepub fn get_assistant_association(&self) -> GetAssistantAssociation
pub fn get_assistant_association(&self) -> GetAssistantAssociation
Constructs a fluent builder for the GetAssistantAssociation operation.
- The fluent builder is configurable:
assistant_association_id(impl Into<String>)/set_assistant_association_id(Option<String>):The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
GetAssistantAssociationOutputwith field(s):assistant_association(Option<AssistantAssociationData>):The assistant association.
- On failure, responds with
SdkError<GetAssistantAssociationError>
sourcepub fn get_content(&self) -> GetContent
pub fn get_content(&self) -> GetContent
Constructs a fluent builder for the GetContent operation.
- The fluent builder is configurable:
content_id(impl Into<String>)/set_content_id(Option<String>):The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
GetContentOutputwith field(s):content(Option<ContentData>):The content.
- On failure, responds with
SdkError<GetContentError>
sourcepub fn get_content_summary(&self) -> GetContentSummary
pub fn get_content_summary(&self) -> GetContentSummary
Constructs a fluent builder for the GetContentSummary operation.
- The fluent builder is configurable:
content_id(impl Into<String>)/set_content_id(Option<String>):The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
GetContentSummaryOutputwith field(s):content_summary(Option<ContentSummary>):The content summary.
- On failure, responds with
SdkError<GetContentSummaryError>
sourcepub fn get_knowledge_base(&self) -> GetKnowledgeBase
pub fn get_knowledge_base(&self) -> GetKnowledgeBase
Constructs a fluent builder for the GetKnowledgeBase operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
GetKnowledgeBaseOutputwith field(s):knowledge_base(Option<KnowledgeBaseData>):The knowledge base.
- On failure, responds with
SdkError<GetKnowledgeBaseError>
sourcepub fn get_recommendations(&self) -> GetRecommendations
pub fn get_recommendations(&self) -> GetRecommendations
Constructs a fluent builder for the GetRecommendations operation.
- The fluent builder is configurable:
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
session_id(impl Into<String>)/set_session_id(Option<String>):The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
wait_time_seconds(i32)/set_wait_time_seconds(i32):The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than
WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list.
- On success, responds with
GetRecommendationsOutputwith field(s):recommendations(Option<Vec<RecommendationData>>):The recommendations.
triggers(Option<Vec<RecommendationTrigger>>):The triggers corresponding to recommendations.
- On failure, responds with
SdkError<GetRecommendationsError>
sourcepub fn get_session(&self) -> GetSession
pub fn get_session(&self) -> GetSession
Constructs a fluent builder for the GetSession operation.
- The fluent builder is configurable:
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
session_id(impl Into<String>)/set_session_id(Option<String>):The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
GetSessionOutputwith field(s):session(Option<SessionData>):The session.
- On failure, responds with
SdkError<GetSessionError>
sourcepub fn list_assistant_associations(&self) -> ListAssistantAssociations
pub fn list_assistant_associations(&self) -> ListAssistantAssociations
Constructs a fluent builder for the ListAssistantAssociations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):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.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
ListAssistantAssociationsOutputwith field(s):assistant_association_summaries(Option<Vec<AssistantAssociationSummary>>):Summary information about assistant associations.
next_token(Option<String>):If there are additional results, this is the token for the next set of results.
- On failure, responds with
SdkError<ListAssistantAssociationsError>
sourcepub fn list_assistants(&self) -> ListAssistants
pub fn list_assistants(&self) -> ListAssistants
Constructs a fluent builder for the ListAssistants operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):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.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
- On success, responds with
ListAssistantsOutputwith field(s):assistant_summaries(Option<Vec<AssistantSummary>>):Information about the assistants.
next_token(Option<String>):If there are additional results, this is the token for the next set of results.
- On failure, responds with
SdkError<ListAssistantsError>
sourcepub fn list_contents(&self) -> ListContents
pub fn list_contents(&self) -> ListContents
Constructs a fluent builder for the ListContents operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):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.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
ListContentsOutputwith field(s):content_summaries(Option<Vec<ContentSummary>>):Information about the content.
next_token(Option<String>):If there are additional results, this is the token for the next set of results.
- On failure, responds with
SdkError<ListContentsError>
sourcepub fn list_knowledge_bases(&self) -> ListKnowledgeBases
pub fn list_knowledge_bases(&self) -> ListKnowledgeBases
Constructs a fluent builder for the ListKnowledgeBases operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):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.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
- On success, responds with
ListKnowledgeBasesOutputwith field(s):knowledge_base_summaries(Option<Vec<KnowledgeBaseSummary>>):Information about the knowledge bases.
next_token(Option<String>):If there are additional results, this is the token for the next set of results.
- On failure, responds with
SdkError<ListKnowledgeBasesError>
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the resource.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap<String, String>>):The tags used to organize, track, or control access for this resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn notify_recommendations_received(&self) -> NotifyRecommendationsReceived
pub fn notify_recommendations_received(&self) -> NotifyRecommendationsReceived
Constructs a fluent builder for the NotifyRecommendationsReceived operation.
- The fluent builder is configurable:
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
session_id(impl Into<String>)/set_session_id(Option<String>):The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
recommendation_ids(Vec<String>)/set_recommendation_ids(Option<Vec<String>>):The identifiers of the recommendations.
- On success, responds with
NotifyRecommendationsReceivedOutputwith field(s):recommendation_ids(Option<Vec<String>>):The identifiers of the recommendations.
errors(Option<Vec<NotifyRecommendationsReceivedError>>):The identifiers of recommendations that are causing errors.
- On failure, responds with
SdkError<NotifyRecommendationsReceivedError>
sourcepub fn query_assistant(&self) -> QueryAssistant
pub fn query_assistant(&self) -> QueryAssistant
Constructs a fluent builder for the QueryAssistant operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
query_text(impl Into<String>)/set_query_text(Option<String>):The text to search for.
next_token(impl Into<String>)/set_next_token(Option<String>):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.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
- On success, responds with
QueryAssistantOutputwith field(s):results(Option<Vec<ResultData>>):The results of the query.
next_token(Option<String>):If there are additional results, this is the token for the next set of results.
- On failure, responds with
SdkError<QueryAssistantError>
sourcepub fn remove_knowledge_base_template_uri(
&self
) -> RemoveKnowledgeBaseTemplateUri
pub fn remove_knowledge_base_template_uri(
&self
) -> RemoveKnowledgeBaseTemplateUri
Constructs a fluent builder for the RemoveKnowledgeBaseTemplateUri operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
- On success, responds with
RemoveKnowledgeBaseTemplateUriOutput - On failure, responds with
SdkError<RemoveKnowledgeBaseTemplateUriError>
sourcepub fn search_content(&self) -> SearchContent
pub fn search_content(&self) -> SearchContent
Constructs a fluent builder for the SearchContent operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):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.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
search_expression(SearchExpression)/set_search_expression(Option<SearchExpression>):The search expression to filter results.
- On success, responds with
SearchContentOutputwith field(s):content_summaries(Option<Vec<ContentSummary>>):Summary information about the content.
next_token(Option<String>):If there are additional results, this is the token for the next set of results.
- On failure, responds with
SdkError<SearchContentError>
sourcepub fn search_sessions(&self) -> SearchSessions
pub fn search_sessions(&self) -> SearchSessions
Constructs a fluent builder for the SearchSessions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):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.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per page.
assistant_id(impl Into<String>)/set_assistant_id(Option<String>):The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
search_expression(SearchExpression)/set_search_expression(Option<SearchExpression>):The search expression to filter results.
- On success, responds with
SearchSessionsOutputwith field(s):session_summaries(Option<Vec<SessionSummary>>):Summary information about the sessions.
next_token(Option<String>):If there are additional results, this is the token for the next set of results.
- On failure, responds with
SdkError<SearchSessionsError>
sourcepub fn start_content_upload(&self) -> StartContentUpload
pub fn start_content_upload(&self) -> StartContentUpload
Constructs a fluent builder for the StartContentUpload operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
content_type(impl Into<String>)/set_content_type(Option<String>):The type of content to upload.
- On success, responds with
StartContentUploadOutputwith field(s):upload_id(Option<String>):The identifier of the upload.
url(Option<String>):The URL of the upload.
url_expiry(Option<DateTime>):The expiration time of the URL as an epoch timestamp.
headers_to_include(Option<HashMap<String, String>>):The headers to include in the upload.
- On failure, responds with
SdkError<StartContentUploadError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the resource.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The tags used to organize, track, or control access for this resource.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the resource.
tag_keys(Vec<String>)/set_tag_keys(Option<Vec<String>>):The tag keys.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_content(&self) -> UpdateContent
pub fn update_content(&self) -> UpdateContent
Constructs a fluent builder for the UpdateContent operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN
content_id(impl Into<String>)/set_content_id(Option<String>):The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
revision_id(impl Into<String>)/set_revision_id(Option<String>):The
revisionIdof the content resource to update, taken from an earlier call toGetContent,GetContentSummary,SearchContent, orListContents. 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 aPreconditionFailedException.title(impl Into<String>)/set_title(Option<String>):The title of the content.
override_link_out_uri(impl Into<String>)/set_override_link_out_uri(Option<String>):The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing
overrideLinkOurUri, exclude this argument and setremoveOverrideLinkOutUrito true.remove_override_link_out_uri(bool)/set_remove_override_link_out_uri(Option<bool>):Unset the existing
overrideLinkOutUriif it exists.metadata(HashMap<String, String>)/set_metadata(Option<HashMap<String, String>>):A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.
upload_id(impl Into<String>)/set_upload_id(Option<String>):A pointer to the uploaded asset. This value is returned by StartContentUpload.
- On success, responds with
UpdateContentOutputwith field(s):content(Option<ContentData>):The content.
- On failure, responds with
SdkError<UpdateContentError>
sourcepub fn update_knowledge_base_template_uri(
&self
) -> UpdateKnowledgeBaseTemplateUri
pub fn update_knowledge_base_template_uri(
&self
) -> UpdateKnowledgeBaseTemplateUri
Constructs a fluent builder for the UpdateKnowledgeBaseTemplateUri operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
template_uri(impl Into<String>)/set_template_uri(Option<String>):The template URI to update.
- On success, responds with
UpdateKnowledgeBaseTemplateUriOutputwith field(s):knowledge_base(Option<KnowledgeBaseData>):The knowledge base to update.
- On failure, responds with
SdkError<UpdateKnowledgeBaseTemplateUriError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more