Struct aws_sdk_cloudwatchlogs::client::fluent_builders::CreateLogStream [−][src]
pub struct CreateLogStream<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
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
impl<C, M, R> CreateLogStream<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateLogStream<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateLogStreamOutput, SdkError<CreateLogStreamError>> where
R::Policy: SmithyRetryPolicy<CreateLogStreamInputOperationOutputAlias, CreateLogStreamOutput, CreateLogStreamError, CreateLogStreamInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateLogStreamOutput, SdkError<CreateLogStreamError>> where
R::Policy: SmithyRetryPolicy<CreateLogStreamInputOperationOutputAlias, CreateLogStreamOutput, CreateLogStreamError, CreateLogStreamInputOperationRetryAlias>,
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.
The name of the log group.
The name of the log group.
The name of the log stream.
The name of the log stream.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateLogStream<C, M, R>
impl<C, M, R> Send for CreateLogStream<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateLogStream<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateLogStream<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateLogStream<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more