Struct aws_sdk_cloudwatchlogs::operation::put_destination::builders::PutDestinationInputBuilder
source · #[non_exhaustive]pub struct PutDestinationInputBuilder { /* private fields */ }
Expand description
A builder for PutDestinationInput
.
Implementations§
source§impl PutDestinationInputBuilder
impl PutDestinationInputBuilder
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.
This field is required.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.
This field is required.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
sourcepub fn build(self) -> Result<PutDestinationInput, BuildError>
pub fn build(self) -> Result<PutDestinationInput, BuildError>
Consumes the builder and constructs a PutDestinationInput
.
source§impl PutDestinationInputBuilder
impl PutDestinationInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutDestinationOutput, SdkError<PutDestinationError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutDestinationOutput, SdkError<PutDestinationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutDestinationInputBuilder
impl Clone for PutDestinationInputBuilder
source§fn clone(&self) -> PutDestinationInputBuilder
fn clone(&self) -> PutDestinationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutDestinationInputBuilder
impl Debug for PutDestinationInputBuilder
source§impl Default for PutDestinationInputBuilder
impl Default for PutDestinationInputBuilder
source§fn default() -> PutDestinationInputBuilder
fn default() -> PutDestinationInputBuilder
source§impl PartialEq for PutDestinationInputBuilder
impl PartialEq for PutDestinationInputBuilder
source§fn eq(&self, other: &PutDestinationInputBuilder) -> bool
fn eq(&self, other: &PutDestinationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutDestinationInputBuilder
Auto Trait Implementations§
impl Freeze for PutDestinationInputBuilder
impl RefUnwindSafe for PutDestinationInputBuilder
impl Send for PutDestinationInputBuilder
impl Sync for PutDestinationInputBuilder
impl Unpin for PutDestinationInputBuilder
impl UnwindSafe for PutDestinationInputBuilder
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