Struct aws_sdk_cloudwatchlogs::types::builders::DestinationBuilder
source · #[non_exhaustive]pub struct DestinationBuilder { /* private fields */ }
Expand description
A builder for Destination
.
Implementations§
source§impl DestinationBuilder
impl DestinationBuilder
sourcepub fn destination_name(self, input: impl Into<String>) -> Self
pub fn destination_name(self, input: impl Into<String>) -> Self
The name of the destination.
sourcepub fn set_destination_name(self, input: Option<String>) -> Self
pub fn set_destination_name(self, input: Option<String>) -> Self
The name of the destination.
sourcepub fn get_destination_name(&self) -> &Option<String>
pub fn get_destination_name(&self) -> &Option<String>
The name of the destination.
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
A role for impersonation, used when delivering log events to the target.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
A role for impersonation, used when delivering log events to the target.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
A role for impersonation, used when delivering log events to the target.
sourcepub fn access_policy(self, input: impl Into<String>) -> Self
pub fn access_policy(self, input: impl Into<String>) -> Self
An IAM policy document that governs which Amazon Web Services accounts can create subscription filters against this destination.
sourcepub fn set_access_policy(self, input: Option<String>) -> Self
pub fn set_access_policy(self, input: Option<String>) -> Self
An IAM policy document that governs which Amazon Web Services accounts can create subscription filters against this destination.
sourcepub fn get_access_policy(&self) -> &Option<String>
pub fn get_access_policy(&self) -> &Option<String>
An IAM policy document that governs which Amazon Web Services accounts can create subscription filters against this destination.
sourcepub fn creation_time(self, input: i64) -> Self
pub fn creation_time(self, input: i64) -> Self
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
sourcepub fn set_creation_time(self, input: Option<i64>) -> Self
pub fn set_creation_time(self, input: Option<i64>) -> Self
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
sourcepub fn get_creation_time(&self) -> &Option<i64>
pub fn get_creation_time(&self) -> &Option<i64>
The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
sourcepub fn build(self) -> Destination
pub fn build(self) -> Destination
Consumes the builder and constructs a Destination
.
Trait Implementations§
source§impl Clone for DestinationBuilder
impl Clone for DestinationBuilder
source§fn clone(&self) -> DestinationBuilder
fn clone(&self) -> DestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DestinationBuilder
impl Debug for DestinationBuilder
source§impl Default for DestinationBuilder
impl Default for DestinationBuilder
source§fn default() -> DestinationBuilder
fn default() -> DestinationBuilder
source§impl PartialEq for DestinationBuilder
impl PartialEq for DestinationBuilder
source§fn eq(&self, other: &DestinationBuilder) -> bool
fn eq(&self, other: &DestinationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DestinationBuilder
Auto Trait Implementations§
impl Freeze for DestinationBuilder
impl RefUnwindSafe for DestinationBuilder
impl Send for DestinationBuilder
impl Sync for DestinationBuilder
impl Unpin for DestinationBuilder
impl UnwindSafe for DestinationBuilder
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