pub struct StopLoggingFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StopLogging
.
Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all Regions, this operation must be called from the Region in which the trail was created, or an InvalidHomeRegionException
will occur. This operation cannot be called on the shadow trails (replicated trails in other Regions) of a trail enabled in all Regions.
Implementations§
source§impl StopLoggingFluentBuilder
impl StopLoggingFluentBuilder
sourcepub fn as_input(&self) -> &StopLoggingInputBuilder
pub fn as_input(&self) -> &StopLoggingInputBuilder
Access the StopLogging as a reference.
sourcepub async fn send(
self
) -> Result<StopLoggingOutput, SdkError<StopLoggingError, HttpResponse>>
pub async fn send( self ) -> Result<StopLoggingOutput, SdkError<StopLoggingError, 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<StopLoggingOutput, StopLoggingError, Self>
pub fn customize( self ) -> CustomizableOperation<StopLoggingOutput, StopLoggingError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging Amazon Web Services API calls. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Trait Implementations§
source§impl Clone for StopLoggingFluentBuilder
impl Clone for StopLoggingFluentBuilder
source§fn clone(&self) -> StopLoggingFluentBuilder
fn clone(&self) -> StopLoggingFluentBuilder
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 StopLoggingFluentBuilder
impl !RefUnwindSafe for StopLoggingFluentBuilder
impl Send for StopLoggingFluentBuilder
impl Sync for StopLoggingFluentBuilder
impl Unpin for StopLoggingFluentBuilder
impl !UnwindSafe for StopLoggingFluentBuilder
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