Struct aws_sdk_bedrockagent::types::KnowledgeBase
source · #[non_exhaustive]pub struct KnowledgeBase {
pub knowledge_base_id: String,
pub name: String,
pub knowledge_base_arn: String,
pub description: Option<String>,
pub role_arn: String,
pub knowledge_base_configuration: Option<KnowledgeBaseConfiguration>,
pub storage_configuration: Option<StorageConfiguration>,
pub status: KnowledgeBaseStatus,
pub created_at: DateTime,
pub updated_at: DateTime,
pub failure_reasons: Option<Vec<String>>,
}Expand description
Contains the information of a knowledge base.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.knowledge_base_id: StringIdentifier for a resource.
name: StringName for a resource.
knowledge_base_arn: StringARN of a KnowledgeBase
description: Option<String>Description of the Resource.
role_arn: StringARN of a IAM role.
knowledge_base_configuration: Option<KnowledgeBaseConfiguration>Configures a bedrock knowledge base.
storage_configuration: Option<StorageConfiguration>Configures the physical storage of ingested data in a knowledge base.
status: KnowledgeBaseStatusThe status of a knowledge base.
created_at: DateTimeTime Stamp.
updated_at: DateTimeTime Stamp.
failure_reasons: Option<Vec<String>>Failure Reasons for Error.
Implementations§
source§impl KnowledgeBase
impl KnowledgeBase
sourcepub fn knowledge_base_id(&self) -> &str
pub fn knowledge_base_id(&self) -> &str
Identifier for a resource.
sourcepub fn knowledge_base_arn(&self) -> &str
pub fn knowledge_base_arn(&self) -> &str
ARN of a KnowledgeBase
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Description of the Resource.
sourcepub fn knowledge_base_configuration(
&self
) -> Option<&KnowledgeBaseConfiguration>
pub fn knowledge_base_configuration( &self ) -> Option<&KnowledgeBaseConfiguration>
Configures a bedrock knowledge base.
sourcepub fn storage_configuration(&self) -> Option<&StorageConfiguration>
pub fn storage_configuration(&self) -> Option<&StorageConfiguration>
Configures the physical storage of ingested data in a knowledge base.
sourcepub fn status(&self) -> &KnowledgeBaseStatus
pub fn status(&self) -> &KnowledgeBaseStatus
The status of a knowledge base.
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
Time Stamp.
sourcepub fn updated_at(&self) -> &DateTime
pub fn updated_at(&self) -> &DateTime
Time Stamp.
sourcepub fn failure_reasons(&self) -> &[String]
pub fn failure_reasons(&self) -> &[String]
Failure Reasons for Error.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .failure_reasons.is_none().
source§impl KnowledgeBase
impl KnowledgeBase
sourcepub fn builder() -> KnowledgeBaseBuilder
pub fn builder() -> KnowledgeBaseBuilder
Creates a new builder-style object to manufacture KnowledgeBase.
Trait Implementations§
source§impl Clone for KnowledgeBase
impl Clone for KnowledgeBase
source§fn clone(&self) -> KnowledgeBase
fn clone(&self) -> KnowledgeBase
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KnowledgeBase
impl Debug for KnowledgeBase
source§impl PartialEq for KnowledgeBase
impl PartialEq for KnowledgeBase
source§fn eq(&self, other: &KnowledgeBase) -> bool
fn eq(&self, other: &KnowledgeBase) -> bool
self and other values to be equal, and is used
by ==.