aws_sdk_qconnect/client/
create_content_association.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateContentAssociation`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
7    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base.</p><br>
8    ///   - [`content_id(impl Into<String>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::content_id) / [`set_content_id(Option<String>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::set_content_id):<br>required: **true**<br><p>The identifier of the content.</p><br>
9    ///   - [`association_type(ContentAssociationType)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::association_type) / [`set_association_type(Option<ContentAssociationType>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::set_association_type):<br>required: **true**<br><p>The type of association.</p><br>
10    ///   - [`association(ContentAssociationContents)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::association) / [`set_association(Option<ContentAssociationContents>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::set_association):<br>required: **true**<br><p>The identifier of the associated resource.</p><br>
11    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource.</p><br>
12    /// - On success, responds with [`CreateContentAssociationOutput`](crate::operation::create_content_association::CreateContentAssociationOutput) with field(s):
13    ///   - [`content_association(Option<ContentAssociationData>)`](crate::operation::create_content_association::CreateContentAssociationOutput::content_association): <p>The association between Amazon Q in Connect content and another resource.</p>
14    /// - On failure, responds with [`SdkError<CreateContentAssociationError>`](crate::operation::create_content_association::CreateContentAssociationError)
15    pub fn create_content_association(&self) -> crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder {
16        crate::operation::create_content_association::builders::CreateContentAssociationFluentBuilder::new(self.handle.clone())
17    }
18}