1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateArchive`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`archive_name(impl Into<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::archive_name) / [`set_archive_name(Option<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::set_archive_name): <p>The name for the archive to create.</p>
    ///   - [`event_source_arn(impl Into<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::event_source_arn) / [`set_event_source_arn(Option<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::set_event_source_arn): <p>The ARN of the event bus that sends events to the archive.</p>
    ///   - [`description(impl Into<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::set_description): <p>A description for the archive.</p>
    ///   - [`event_pattern(impl Into<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::event_pattern) / [`set_event_pattern(Option<String>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::set_event_pattern): <p>An event pattern to use to filter events sent to the archive.</p>
    ///   - [`retention_days(i32)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::retention_days) / [`set_retention_days(Option<i32>)`](crate::operation::create_archive::builders::CreateArchiveFluentBuilder::set_retention_days): <p>The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely</p>
    /// - On success, responds with [`CreateArchiveOutput`](crate::operation::create_archive::CreateArchiveOutput) with field(s):
    ///   - [`archive_arn(Option<String>)`](crate::operation::create_archive::CreateArchiveOutput::archive_arn): <p>The ARN of the archive that was created.</p>
    ///   - [`state(Option<ArchiveState>)`](crate::operation::create_archive::CreateArchiveOutput::state): <p>The state of the archive that was created.</p>
    ///   - [`state_reason(Option<String>)`](crate::operation::create_archive::CreateArchiveOutput::state_reason): <p>The reason that the archive is in the state.</p>
    ///   - [`creation_time(Option<DateTime>)`](crate::operation::create_archive::CreateArchiveOutput::creation_time): <p>The time at which the archive was created.</p>
    /// - On failure, responds with [`SdkError<CreateArchiveError>`](crate::operation::create_archive::CreateArchiveError)
    pub fn create_archive(
        &self,
    ) -> crate::operation::create_archive::builders::CreateArchiveFluentBuilder {
        crate::operation::create_archive::builders::CreateArchiveFluentBuilder::new(
            self.handle.clone(),
        )
    }
}