Struct aws_sdk_cloudwatchlogs::operation::put_destination::builders::PutDestinationFluentBuilder
source · pub struct PutDestinationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutDestination
.
Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.
A destination encapsulates a physical resource (such as an Amazon Kinesis stream). With a destination, you can subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents.
Through an access policy, a destination controls what is written to it. By default, PutDestination
does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination
.
To perform a PutDestination
operation, you must also have the iam:PassRole
permission.
Implementations§
source§impl PutDestinationFluentBuilder
impl PutDestinationFluentBuilder
sourcepub fn as_input(&self) -> &PutDestinationInputBuilder
pub fn as_input(&self) -> &PutDestinationInputBuilder
Access the PutDestination as a reference.
sourcepub async fn send(
self,
) -> Result<PutDestinationOutput, SdkError<PutDestinationError, HttpResponse>>
pub async fn send( self, ) -> Result<PutDestinationOutput, SdkError<PutDestinationError, 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<PutDestinationOutput, PutDestinationError, Self>
pub fn customize( self, ) -> CustomizableOperation<PutDestinationOutput, PutDestinationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn destination_name(self, input: impl Into<String>) -> Self
pub fn destination_name(self, input: impl Into<String>) -> Self
A name for the destination.
sourcepub fn set_destination_name(self, input: Option<String>) -> Self
pub fn set_destination_name(self, input: Option<String>) -> Self
A name for the destination.
sourcepub fn get_destination_name(&self) -> &Option<String>
pub fn get_destination_name(&self) -> &Option<String>
A name for the destination.
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The ARN of an Amazon Kinesis stream to which to deliver matching log events.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The ARN of an Amazon Kinesis stream to which to deliver matching log events.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The ARN of an Amazon Kinesis stream to which to deliver matching log events.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord
operation on the destination stream.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord
operation on the destination stream.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord
operation on the destination stream.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
Trait Implementations§
source§impl Clone for PutDestinationFluentBuilder
impl Clone for PutDestinationFluentBuilder
source§fn clone(&self) -> PutDestinationFluentBuilder
fn clone(&self) -> PutDestinationFluentBuilder
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 PutDestinationFluentBuilder
impl !RefUnwindSafe for PutDestinationFluentBuilder
impl Send for PutDestinationFluentBuilder
impl Sync for PutDestinationFluentBuilder
impl Unpin for PutDestinationFluentBuilder
impl !UnwindSafe for PutDestinationFluentBuilder
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