#[non_exhaustive]pub struct LogsArchiveAttributes {
pub destination: Option<LogsArchiveDestination>,
pub include_tags: Option<bool>,
pub name: String,
pub query: String,
pub rehydration_max_scan_size_in_gb: Option<Option<i64>>,
pub rehydration_tags: Option<Vec<String>>,
pub state: Option<LogsArchiveState>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The attributes associated with the archive.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destination: Option<LogsArchiveDestination>
An archive’s destination.
To store the tags in the archive, set the value “true”. If it is set to “false”, the tags will be deleted when the logs are sent to the archive.
name: String
The archive name.
query: String
The archive query/filter. Logs matching this query are included in the archive.
rehydration_max_scan_size_in_gb: Option<Option<i64>>
Maximum scan size for rehydration from this archive.
An array of tags to add to rehydrated logs from an archive.
state: Option<LogsArchiveState>
The state of the archive.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl LogsArchiveAttributes
impl LogsArchiveAttributes
pub fn new( destination: Option<LogsArchiveDestination>, name: String, query: String, ) -> LogsArchiveAttributes
pub fn rehydration_max_scan_size_in_gb(self, value: Option<i64>) -> Self
pub fn state(self, value: LogsArchiveState) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for LogsArchiveAttributes
impl Clone for LogsArchiveAttributes
Source§fn clone(&self) -> LogsArchiveAttributes
fn clone(&self) -> LogsArchiveAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LogsArchiveAttributes
impl Debug for LogsArchiveAttributes
Source§impl<'de> Deserialize<'de> for LogsArchiveAttributes
impl<'de> Deserialize<'de> for LogsArchiveAttributes
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LogsArchiveAttributes
impl PartialEq for LogsArchiveAttributes
Source§impl Serialize for LogsArchiveAttributes
impl Serialize for LogsArchiveAttributes
impl StructuralPartialEq for LogsArchiveAttributes
Auto Trait Implementations§
impl Freeze for LogsArchiveAttributes
impl RefUnwindSafe for LogsArchiveAttributes
impl Send for LogsArchiveAttributes
impl Sync for LogsArchiveAttributes
impl Unpin for LogsArchiveAttributes
impl UnwindSafe for LogsArchiveAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more