pub enum ProvisionMode {
CreateOnly {
request_token: Option<RequestToken>,
},
Ensure,
}Expand description
Mode for provisioning a resource.
Provisioning either creates a new resource with create-only semantics, or ensures that a resource exists with the requested config.
Variants§
CreateOnly
Create a new resource only.
HTTP POST semantics: idempotent if a request token is provided and the resource was previously created using the same token and config.
Fields
§
request_token: Option<RequestToken>Optional request token used to make create retries idempotent.
Ensure
Ensure a resource exists with the requested config.
HTTP PUT semantics: always idempotent. Defaults are applied before validation. When the resource already exists, its stored config is set to the effective requested config unless it already matches.
Trait Implementations§
Source§impl Clone for ProvisionMode
impl Clone for ProvisionMode
Source§fn clone(&self) -> ProvisionMode
fn clone(&self) -> ProvisionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProvisionMode
impl Debug for ProvisionMode
Source§impl PartialEq for ProvisionMode
impl PartialEq for ProvisionMode
Source§fn eq(&self, other: &ProvisionMode) -> bool
fn eq(&self, other: &ProvisionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProvisionMode
impl StructuralPartialEq for ProvisionMode
Auto Trait Implementations§
impl Freeze for ProvisionMode
impl RefUnwindSafe for ProvisionMode
impl Send for ProvisionMode
impl Sync for ProvisionMode
impl Unpin for ProvisionMode
impl UnsafeUnpin for ProvisionMode
impl UnwindSafe for ProvisionMode
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