aws-sdk-bedrockagentcore 1.65.0

AWS SDK for Amazon Bedrock AgentCore
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`IngestData`](crate::operation::ingest_data::builders::IngestDataFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`memory_id(impl Into<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::memory_id) / [`set_memory_id(Option<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_memory_id):<br>required: **true**<br><p>The identifier of the AgentCore Memory resource to ingest content into.</p><br>
    ///   - [`source(ContentSource)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::source) / [`set_source(Option<ContentSource>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_source):<br>required: **true**<br><p>The content to ingest. Only inline content is supported.</p><br>
    ///   - [`content_timestamp(DateTime)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::content_timestamp) / [`set_content_timestamp(Option<DateTime>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_content_timestamp):<br>required: **true**<br><p>The timestamp of when the content occurred.</p><br>
    ///   - [`actor_id(impl Into<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::actor_id) / [`set_actor_id(Option<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_actor_id):<br>required: **true**<br><p>The identifier of the actor associated with this content. An actor represents an entity that participates in sessions and generates content.</p><br>
    ///   - [`session_id(impl Into<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_session_id):<br>required: **false**<br><p>The identifier of the session that the content belongs to. If not provided, a session identifier is generated and returned in the response.</p><br>
    ///   - [`extraction_config(ExtractionConfig)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::extraction_config) / [`set_extraction_config(Option<ExtractionConfig>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_extraction_config):<br>required: **false**<br><p>The extraction configuration for long-term memory records. Use this parameter to specify namespace variable keys and their values for namespace substitution during extraction.</p><br>
    ///   - [`metadata(impl Into<String>, MetadataValue)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::metadata) / [`set_metadata(Option<HashMap::<String, MetadataValue>>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_metadata):<br>required: **false**<br><p>The key-value metadata to attach to the content.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::ingest_data::builders::IngestDataFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, AgentCore ignores the request, but does not return an error.</p><br>
    /// - On success, responds with [`IngestDataOutput`](crate::operation::ingest_data::IngestDataOutput) with field(s):
    ///   - [`session_id(String)`](crate::operation::ingest_data::IngestDataOutput::session_id): <p>The identifier of the session that the service ingested the content into. This value echoes the session identifier from the request, or the identifier that the service generated when you did not provide one.</p>
    /// - On failure, responds with [`SdkError<IngestDataError>`](crate::operation::ingest_data::IngestDataError)
    pub fn ingest_data(&self) -> crate::operation::ingest_data::builders::IngestDataFluentBuilder {
        crate::operation::ingest_data::builders::IngestDataFluentBuilder::new(self.handle.clone())
    }
}