pub struct TagLogGroupFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to TagLogGroup
.
The TagLogGroup operation is on the path to deprecation. We recommend that you use TagResource instead.
Adds or updates the specified tags for the specified log group.
To list the tags for a log group, use ListTagsForResource. To remove tags, use UntagResource.
For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name
or aws:TagKeys
condition keys. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.
Implementations§
source§impl TagLogGroupFluentBuilder
impl TagLogGroupFluentBuilder
sourcepub fn as_input(&self) -> &TagLogGroupInputBuilder
pub fn as_input(&self) -> &TagLogGroupInputBuilder
Access the TagLogGroup as a reference.
sourcepub async fn send(
self,
) -> Result<TagLogGroupOutput, SdkError<TagLogGroupError, HttpResponse>>
pub async fn send( self, ) -> Result<TagLogGroupOutput, SdkError<TagLogGroupError, 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<TagLogGroupOutput, TagLogGroupError, Self>
pub fn customize( self, ) -> CustomizableOperation<TagLogGroupOutput, TagLogGroupError, 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.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The key-value pairs to use for the tags.
The key-value pairs to use for the tags.
The key-value pairs to use for the tags.
Trait Implementations§
source§impl Clone for TagLogGroupFluentBuilder
impl Clone for TagLogGroupFluentBuilder
source§fn clone(&self) -> TagLogGroupFluentBuilder
fn clone(&self) -> TagLogGroupFluentBuilder
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 TagLogGroupFluentBuilder
impl !RefUnwindSafe for TagLogGroupFluentBuilder
impl Send for TagLogGroupFluentBuilder
impl Sync for TagLogGroupFluentBuilder
impl Unpin for TagLogGroupFluentBuilder
impl !UnwindSafe for TagLogGroupFluentBuilder
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