pub struct CreateLogStream { /* private fields */ }Expand description
Fluent builder constructing a request to CreateLogStream.
Creates a log stream for the specified log group. A log stream is a sequence of log events that originate from a single source, such as an application instance or a resource that is being monitored.
There is no limit on the number of log streams that you can create for a log group. There is a limit of 50 TPS on CreateLogStream operations, after which transactions are throttled.
You must use the following guidelines when naming a log stream:
-
Log stream names must be unique within the log group.
-
Log stream names can be between 1 and 512 characters long.
-
The ':' (colon) and '*' (asterisk) characters are not allowed.
Implementations§
source§impl CreateLogStream
impl CreateLogStream
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateLogStream, AwsResponseRetryClassifier>, SdkError<CreateLogStreamError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateLogStream, AwsResponseRetryClassifier>, SdkError<CreateLogStreamError>>
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<CreateLogStreamOutput, SdkError<CreateLogStreamError>>
pub async fn send(
self
) -> Result<CreateLogStreamOutput, SdkError<CreateLogStreamError>>
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 log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The name of the log group.
sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The name of the log group.
sourcepub fn log_stream_name(self, input: impl Into<String>) -> Self
pub fn log_stream_name(self, input: impl Into<String>) -> Self
The name of the log stream.
sourcepub fn set_log_stream_name(self, input: Option<String>) -> Self
pub fn set_log_stream_name(self, input: Option<String>) -> Self
The name of the log stream.
Trait Implementations§
source§impl Clone for CreateLogStream
impl Clone for CreateLogStream
source§fn clone(&self) -> CreateLogStream
fn clone(&self) -> CreateLogStream
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more