aws_sdk_cloudwatchlogs/client/
create_export_task.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateExportTask`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`task_name(impl Into<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::task_name) / [`set_task_name(Option<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_task_name):<br>required: **false**<br><p>The name of the export task.</p><br>
    ///   - [`log_group_name(impl Into<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::log_group_name) / [`set_log_group_name(Option<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_log_group_name):<br>required: **true**<br><p>The name of the log group.</p><br>
    ///   - [`log_stream_name_prefix(impl Into<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::log_stream_name_prefix) / [`set_log_stream_name_prefix(Option<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_log_stream_name_prefix):<br>required: **false**<br><p>Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.</p><br>
    ///   - [`from(i64)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::from) / [`set_from(Option<i64>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_from):<br>required: **true**<br><p>The start time of the range for the request, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp earlier than this time are not exported.</p><br>
    ///   - [`to(i64)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::to) / [`set_to(Option<i64>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_to):<br>required: **true**<br><p>The end time of the range for the request, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp later than this time are not exported.</p> <p>You must specify a time that is not earlier than when this log group was created.</p><br>
    ///   - [`destination(impl Into<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::destination) / [`set_destination(Option<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_destination):<br>required: **true**<br><p>The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region.</p><br>
    ///   - [`destination_prefix(impl Into<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::destination_prefix) / [`set_destination_prefix(Option<String>)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_destination_prefix):<br>required: **false**<br><p>The prefix used as the start of the key for every object exported. If you don't specify a value, the default is <code>exportedlogs</code>.</p> <p>The length of this parameter must comply with the S3 object key name length limits. The object key name is a sequence of Unicode characters with UTF-8 encoding, and can be up to 1,024 bytes.</p><br>
    /// - On success, responds with [`CreateExportTaskOutput`](crate::operation::create_export_task::CreateExportTaskOutput) with field(s):
    ///   - [`task_id(Option<String>)`](crate::operation::create_export_task::CreateExportTaskOutput::task_id): <p>The ID of the export task.</p>
    /// - On failure, responds with [`SdkError<CreateExportTaskError>`](crate::operation::create_export_task::CreateExportTaskError)
    pub fn create_export_task(&self) -> crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder {
        crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::new(self.handle.clone())
    }
}