[−][src]Struct aws_iam::model::types::ConditionOperator
Pulls apart the string form of an operator used by IAM. It identifies the quantifiers which are used as string prefixes and recognizes the if exist suffix as well.
Fields
quantifier: Option<ConditionOperatorQuantifier>
Used to test multiple keys or multiple values for a single key in a request.
operator: GlobalConditionOperator
The condition operator you choose to use.
only_if_exists: bool
You use this to say "If the policy key is present in the context of the
request, process the key as specified in the policy. If the key is not
present, evaluate the condition element as true." Other condition elements
in the statement can still result in a nonmatch, but not a missing key
when checked with ...IfExists
.
Methods
impl ConditionOperator
[src]
pub fn new(base: GlobalConditionOperator) -> Self
[src]
Construct a new operator using one of the global operators.
pub fn new_other(condition: QString) -> Self
[src]
Construct a new operator which isn't one of the global ones.
pub fn for_all(self) -> Self
[src]
Set the quantifier to for-all-values.
pub fn for_any(self) -> Self
[src]
Set the quantifier to for-any-value.
pub fn if_exists(self) -> Self
[src]
Set the value of the constraint to true
.
Trait Implementations
impl Clone for ConditionOperator
[src]
fn clone(&self) -> ConditionOperator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ConditionOperator
[src]
impl PartialEq<ConditionOperator> for ConditionOperator
[src]
fn eq(&self, other: &ConditionOperator) -> bool
[src]
fn ne(&self, other: &ConditionOperator) -> bool
[src]
impl Display for ConditionOperator
[src]
impl Debug for ConditionOperator
[src]
impl FromStr for ConditionOperator
[src]
type Err = ConditionOperatorError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for ConditionOperator
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for ConditionOperator
[src]
impl StructuralEq for ConditionOperator
[src]
impl Serialize for ConditionOperator
[src]
impl<'de> Deserialize<'de> for ConditionOperator
[src]
fn deserialize<D>(deserializer: D) -> Result<ConditionOperator, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ConditionOperator
impl Sync for ConditionOperator
impl Unpin for ConditionOperator
impl UnwindSafe for ConditionOperator
impl RefUnwindSafe for ConditionOperator
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,