#[non_exhaustive]pub struct CreateChannelInput {
pub name: Option<String>,
pub source: Option<String>,
pub destinations: Option<Vec<Destination>>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the channel.
source: Option<String>
The name of the partner or external event source. You cannot change this name after you create the channel. A maximum of one channel is allowed per source.
A source can be either Custom
for all valid non-Amazon Web Services events, or the name of a partner event source. For information about the source names for available partners, see Additional information about integration partners in the CloudTrail User Guide.
destinations: Option<Vec<Destination>>
One or more event data stores to which events arriving through a channel will be logged.
A list of tags.
Implementations§
source§impl CreateChannelInput
impl CreateChannelInput
sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The name of the partner or external event source. You cannot change this name after you create the channel. A maximum of one channel is allowed per source.
A source can be either Custom
for all valid non-Amazon Web Services events, or the name of a partner event source. For information about the source names for available partners, see Additional information about integration partners in the CloudTrail User Guide.
sourcepub fn destinations(&self) -> &[Destination]
pub fn destinations(&self) -> &[Destination]
One or more event data stores to which events arriving through a channel will be logged.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .destinations.is_none()
.
A list of tags.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateChannelInput
impl CreateChannelInput
sourcepub fn builder() -> CreateChannelInputBuilder
pub fn builder() -> CreateChannelInputBuilder
Creates a new builder-style object to manufacture CreateChannelInput
.
Trait Implementations§
source§impl Clone for CreateChannelInput
impl Clone for CreateChannelInput
source§fn clone(&self) -> CreateChannelInput
fn clone(&self) -> CreateChannelInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateChannelInput
impl Debug for CreateChannelInput
source§impl PartialEq for CreateChannelInput
impl PartialEq for CreateChannelInput
source§fn eq(&self, other: &CreateChannelInput) -> bool
fn eq(&self, other: &CreateChannelInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateChannelInput
Auto Trait Implementations§
impl Freeze for CreateChannelInput
impl RefUnwindSafe for CreateChannelInput
impl Send for CreateChannelInput
impl Sync for CreateChannelInput
impl Unpin for CreateChannelInput
impl UnwindSafe for CreateChannelInput
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