Struct aws_sdk_lambda::types::DocumentDbEventSourceConfig
source · #[non_exhaustive]pub struct DocumentDbEventSourceConfig {
pub database_name: Option<String>,
pub collection_name: Option<String>,
pub full_document: Option<FullDocument>,
}
Expand description
Specific configuration settings for a DocumentDB event source.
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.database_name: Option<String>
The name of the database to consume within the DocumentDB cluster.
collection_name: Option<String>
The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
full_document: Option<FullDocument>
Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
Implementations§
source§impl DocumentDbEventSourceConfig
impl DocumentDbEventSourceConfig
sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
The name of the database to consume within the DocumentDB cluster.
sourcepub fn collection_name(&self) -> Option<&str>
pub fn collection_name(&self) -> Option<&str>
The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
sourcepub fn full_document(&self) -> Option<&FullDocument>
pub fn full_document(&self) -> Option<&FullDocument>
Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
source§impl DocumentDbEventSourceConfig
impl DocumentDbEventSourceConfig
sourcepub fn builder() -> DocumentDbEventSourceConfigBuilder
pub fn builder() -> DocumentDbEventSourceConfigBuilder
Creates a new builder-style object to manufacture DocumentDbEventSourceConfig
.
Trait Implementations§
source§impl Clone for DocumentDbEventSourceConfig
impl Clone for DocumentDbEventSourceConfig
source§fn clone(&self) -> DocumentDbEventSourceConfig
fn clone(&self) -> DocumentDbEventSourceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DocumentDbEventSourceConfig
impl Debug for DocumentDbEventSourceConfig
source§impl PartialEq for DocumentDbEventSourceConfig
impl PartialEq for DocumentDbEventSourceConfig
source§fn eq(&self, other: &DocumentDbEventSourceConfig) -> bool
fn eq(&self, other: &DocumentDbEventSourceConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentDbEventSourceConfig
Auto Trait Implementations§
impl Freeze for DocumentDbEventSourceConfig
impl RefUnwindSafe for DocumentDbEventSourceConfig
impl Send for DocumentDbEventSourceConfig
impl Sync for DocumentDbEventSourceConfig
impl Unpin for DocumentDbEventSourceConfig
impl UnwindSafe for DocumentDbEventSourceConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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