pub struct DownloadDBLogFilePortion { /* private fields */ }Expand description
Fluent builder constructing a request to DownloadDBLogFilePortion.
Downloads all or a portion of the specified log file, up to 1 MB in size.
This command doesn't apply to RDS Custom.
Implementations
sourceimpl DownloadDBLogFilePortion
impl DownloadDBLogFilePortion
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DownloadDBLogFilePortion, AwsResponseRetryClassifier>, SdkError<DownloadDBLogFilePortionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DownloadDBLogFilePortion, AwsResponseRetryClassifier>, SdkError<DownloadDBLogFilePortionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DownloadDbLogFilePortionOutput, SdkError<DownloadDBLogFilePortionError>>
pub async fn send(
self
) -> Result<DownloadDbLogFilePortionOutput, SdkError<DownloadDBLogFilePortionError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> DownloadDbLogFilePortionPaginator
pub fn into_paginator(self) -> DownloadDbLogFilePortionPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn db_instance_identifier(self, input: impl Into<String>) -> Self
pub fn db_instance_identifier(self, input: impl Into<String>) -> Self
The customer-assigned name of the DB instance that contains the log files you want to list.
Constraints:
-
Must match the identifier of an existing DBInstance.
sourcepub fn set_db_instance_identifier(self, input: Option<String>) -> Self
pub fn set_db_instance_identifier(self, input: Option<String>) -> Self
The customer-assigned name of the DB instance that contains the log files you want to list.
Constraints:
-
Must match the identifier of an existing DBInstance.
sourcepub fn log_file_name(self, input: impl Into<String>) -> Self
pub fn log_file_name(self, input: impl Into<String>) -> Self
The name of the log file to be downloaded.
sourcepub fn set_log_file_name(self, input: Option<String>) -> Self
pub fn set_log_file_name(self, input: Option<String>) -> Self
The name of the log file to be downloaded.
sourcepub fn marker(self, input: impl Into<String>) -> Self
pub fn marker(self, input: impl Into<String>) -> Self
The pagination token provided in the previous request or "0". If the Marker parameter is specified the response includes only records beyond the marker until the end of the file or up to NumberOfLines.
sourcepub fn set_marker(self, input: Option<String>) -> Self
pub fn set_marker(self, input: Option<String>) -> Self
The pagination token provided in the previous request or "0". If the Marker parameter is specified the response includes only records beyond the marker until the end of the file or up to NumberOfLines.
sourcepub fn number_of_lines(self, input: i32) -> Self
pub fn number_of_lines(self, input: i32) -> Self
The number of lines to download. If the number of lines specified results in a file over 1 MB in size, the file is truncated at 1 MB in size.
If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.
-
If neither Marker or NumberOfLines are specified, the entire log file is returned up to a maximum of 10000 lines, starting with the most recent log entries first.
-
If NumberOfLines is specified and Marker isn't specified, then the most recent lines from the end of the log file are returned.
-
If Marker is specified as "0", then the specified number of lines from the beginning of the log file are returned.
-
You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of "0" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.
sourcepub fn set_number_of_lines(self, input: Option<i32>) -> Self
pub fn set_number_of_lines(self, input: Option<i32>) -> Self
The number of lines to download. If the number of lines specified results in a file over 1 MB in size, the file is truncated at 1 MB in size.
If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.
-
If neither Marker or NumberOfLines are specified, the entire log file is returned up to a maximum of 10000 lines, starting with the most recent log entries first.
-
If NumberOfLines is specified and Marker isn't specified, then the most recent lines from the end of the log file are returned.
-
If Marker is specified as "0", then the specified number of lines from the beginning of the log file are returned.
-
You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of "0" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.
Trait Implementations
sourceimpl Clone for DownloadDBLogFilePortion
impl Clone for DownloadDBLogFilePortion
sourcefn clone(&self) -> DownloadDBLogFilePortion
fn clone(&self) -> DownloadDBLogFilePortion
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more