Struct aws_sdk_cloudwatchlogs::operation::create_log_stream::builders::CreateLogStreamFluentBuilder
source · pub struct CreateLogStreamFluentBuilder { /* 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.
-
Don't use ':' (colon) or '*' (asterisk) characters.
Implementations§
source§impl CreateLogStreamFluentBuilder
impl CreateLogStreamFluentBuilder
sourcepub fn as_input(&self) -> &CreateLogStreamInputBuilder
pub fn as_input(&self) -> &CreateLogStreamInputBuilder
Access the CreateLogStream as a reference.
sourcepub async fn send(
self
) -> Result<CreateLogStreamOutput, SdkError<CreateLogStreamError, HttpResponse>>
pub async fn send( self ) -> Result<CreateLogStreamOutput, SdkError<CreateLogStreamError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<CreateLogStreamOutput, CreateLogStreamError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateLogStreamOutput, CreateLogStreamError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
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.
sourcepub fn get_log_stream_name(&self) -> &Option<String>
pub fn get_log_stream_name(&self) -> &Option<String>
The name of the log stream.
Trait Implementations§
source§impl Clone for CreateLogStreamFluentBuilder
impl Clone for CreateLogStreamFluentBuilder
source§fn clone(&self) -> CreateLogStreamFluentBuilder
fn clone(&self) -> CreateLogStreamFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateLogStreamFluentBuilder
impl !RefUnwindSafe for CreateLogStreamFluentBuilder
impl Send for CreateLogStreamFluentBuilder
impl Sync for CreateLogStreamFluentBuilder
impl Unpin for CreateLogStreamFluentBuilder
impl !UnwindSafe for CreateLogStreamFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more