1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateArchive`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`archive_name(impl Into<String>)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::archive_name) / [`set_archive_name(Option<String>)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::set_archive_name): <p>The name of the archive to update.</p>
    ///   - [`description(impl Into<String>)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::set_description): <p>The description for the archive.</p>
    ///   - [`event_pattern(impl Into<String>)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::event_pattern) / [`set_event_pattern(Option<String>)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::set_event_pattern): <p>The event pattern to use to filter events sent to the archive.</p>
    ///   - [`retention_days(i32)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::retention_days) / [`set_retention_days(Option<i32>)`](crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::set_retention_days): <p>The number of days to retain events in the archive.</p>
    /// - On success, responds with [`UpdateArchiveOutput`](crate::operation::update_archive::UpdateArchiveOutput) with field(s):
    ///   - [`archive_arn(Option<String>)`](crate::operation::update_archive::UpdateArchiveOutput::archive_arn): <p>The ARN of the archive.</p>
    ///   - [`state(Option<ArchiveState>)`](crate::operation::update_archive::UpdateArchiveOutput::state): <p>The state of the archive.</p>
    ///   - [`state_reason(Option<String>)`](crate::operation::update_archive::UpdateArchiveOutput::state_reason): <p>The reason that the archive is in the current state.</p>
    ///   - [`creation_time(Option<DateTime>)`](crate::operation::update_archive::UpdateArchiveOutput::creation_time): <p>The time at which the archive was updated.</p>
    /// - On failure, responds with [`SdkError<UpdateArchiveError>`](crate::operation::update_archive::UpdateArchiveError)
    pub fn update_archive(
        &self,
    ) -> crate::operation::update_archive::builders::UpdateArchiveFluentBuilder {
        crate::operation::update_archive::builders::UpdateArchiveFluentBuilder::new(
            self.handle.clone(),
        )
    }
}