aws-sdk-cloudwatchlogs 1.116.0

AWS SDK for Amazon CloudWatch Logs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetLogFields`](crate::operation::get_log_fields::builders::GetLogFieldsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`data_source_name(impl Into<String>)`](crate::operation::get_log_fields::builders::GetLogFieldsFluentBuilder::data_source_name) / [`set_data_source_name(Option<String>)`](crate::operation::get_log_fields::builders::GetLogFieldsFluentBuilder::set_data_source_name):<br>required: **true**<br><p>The name of the data source to retrieve log fields for.</p><br>
    ///   - [`data_source_type(impl Into<String>)`](crate::operation::get_log_fields::builders::GetLogFieldsFluentBuilder::data_source_type) / [`set_data_source_type(Option<String>)`](crate::operation::get_log_fields::builders::GetLogFieldsFluentBuilder::set_data_source_type):<br>required: **true**<br><p>The type of the data source to retrieve log fields for.</p><br>
    /// - On success, responds with [`GetLogFieldsOutput`](crate::operation::get_log_fields::GetLogFieldsOutput) with field(s):
    ///   - [`log_fields(Option<Vec::<LogFieldsListItem>>)`](crate::operation::get_log_fields::GetLogFieldsOutput::log_fields): <p>The list of log fields for the specified data source, including field names and their data types.</p>
    /// - On failure, responds with [`SdkError<GetLogFieldsError>`](crate::operation::get_log_fields::GetLogFieldsError)
    pub fn get_log_fields(&self) -> crate::operation::get_log_fields::builders::GetLogFieldsFluentBuilder {
        crate::operation::get_log_fields::builders::GetLogFieldsFluentBuilder::new(self.handle.clone())
    }
}