pub struct ConfigurationSetStore { /* private fields */ }Expand description
Store for configuration sets and their event destinations.
Implementations§
Source§impl ConfigurationSetStore
impl ConfigurationSetStore
Sourcepub fn create(&self, name: &str) -> Result<(), SesError>
pub fn create(&self, name: &str) -> Result<(), SesError>
Create a new configuration set.
§Errors
Returns ConfigurationSetAlreadyExistsException if the name is taken.
Sourcepub fn describe(&self, name: &str) -> Result<ConfigSetRecord, SesError>
pub fn describe(&self, name: &str) -> Result<ConfigSetRecord, SesError>
Describe a configuration set including its event destinations.
§Errors
Returns ConfigurationSetDoesNotExistException if not found.
Sourcepub fn add_event_destination(
&self,
config_set_name: &str,
destination: EventDestination,
) -> Result<(), SesError>
pub fn add_event_destination( &self, config_set_name: &str, destination: EventDestination, ) -> Result<(), SesError>
Add an event destination to a configuration set.
§Errors
Returns ConfigurationSetDoesNotExistException if the config set is not found.
Returns EventDestinationAlreadyExistsException if the destination name is taken.
Sourcepub fn update_event_destination(
&self,
config_set_name: &str,
destination: EventDestination,
) -> Result<(), SesError>
pub fn update_event_destination( &self, config_set_name: &str, destination: EventDestination, ) -> Result<(), SesError>
Update an event destination within a configuration set.
§Errors
Returns ConfigurationSetDoesNotExistException if the config set is not found.
Returns EventDestinationDoesNotExistException if the destination is not found.
Trait Implementations§
Source§impl Debug for ConfigurationSetStore
impl Debug for ConfigurationSetStore
Auto Trait Implementations§
impl Freeze for ConfigurationSetStore
impl !RefUnwindSafe for ConfigurationSetStore
impl Send for ConfigurationSetStore
impl Sync for ConfigurationSetStore
impl Unpin for ConfigurationSetStore
impl UnsafeUnpin for ConfigurationSetStore
impl UnwindSafe for ConfigurationSetStore
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
Mutably borrows from an owned value. Read more