pub enum IAMOperator {
Show 75 variants
StringEquals,
StringNotEquals,
StringEqualsIgnoreCase,
StringNotEqualsIgnoreCase,
StringLike,
StringNotLike,
ForAllValuesStringEquals,
ForAllValuesStringEqualsIgnoreCase,
ForAnyValueStringEquals,
ForAnyValueStringEqualsIgnoreCase,
ForAllValuesStringNotEquals,
ForAllValuesStringNotEqualsIgnoreCase,
ForAnyValueStringNotEquals,
ForAnyValueStringNotEqualsIgnoreCase,
ForAllValuesStringLike,
ForAnyValueStringLike,
ForAllValuesStringNotLike,
ForAnyValueStringNotLike,
NumericEquals,
NumericNotEquals,
NumericLessThan,
NumericLessThanEquals,
NumericGreaterThan,
NumericGreaterThanEquals,
DateEquals,
DateNotEquals,
DateLessThan,
DateLessThanEquals,
DateGreaterThan,
DateGreaterThanEquals,
Bool,
ForAllValuesBool,
ForAnyValueBool,
BinaryEquals,
IpAddress,
NotIpAddress,
ArnEquals,
ArnLike,
ArnNotEquals,
ArnNotLike,
ForAllValuesArnEquals,
ForAllValuesArnLike,
ForAnyValueArnEquals,
ForAnyValueArnLike,
ForAllValuesArnNotEquals,
ForAllValuesArnNotLike,
ForAnyValueArnNotEquals,
ForAnyValueArnNotLike,
Null,
StringEqualsIfExists,
StringNotEqualsIfExists,
StringEqualsIgnoreCaseIfExists,
StringNotEqualsIgnoreCaseIfExists,
StringLikeIfExists,
StringNotLikeIfExists,
NumericEqualsIfExists,
NumericNotEqualsIfExists,
NumericLessThanIfExists,
NumericLessThanEqualsIfExists,
NumericGreaterThanIfExists,
NumericGreaterThanEqualsIfExists,
DateEqualsIfExists,
DateNotEqualsIfExists,
DateLessThanIfExists,
DateLessThanEqualsIfExists,
DateGreaterThanIfExists,
DateGreaterThanEqualsIfExists,
BoolIfExists,
BinaryEqualsIfExists,
IpAddressIfExists,
NotIpAddressIfExists,
ArnEqualsIfExists,
ArnLikeIfExists,
ArnNotEqualsIfExists,
ArnNotLikeIfExists,
}
Expand description
Represents the different types of condition operators available in IAM policies
Variants§
StringEquals
StringNotEquals
StringEqualsIgnoreCase
StringNotEqualsIgnoreCase
StringLike
StringNotLike
ForAllValuesStringEquals
ForAllValuesStringEqualsIgnoreCase
ForAnyValueStringEquals
ForAnyValueStringEqualsIgnoreCase
ForAllValuesStringNotEquals
ForAllValuesStringNotEqualsIgnoreCase
ForAnyValueStringNotEquals
ForAnyValueStringNotEqualsIgnoreCase
ForAllValuesStringLike
ForAnyValueStringLike
ForAllValuesStringNotLike
ForAnyValueStringNotLike
NumericEquals
NumericNotEquals
NumericLessThan
NumericLessThanEquals
NumericGreaterThan
NumericGreaterThanEquals
DateEquals
DateNotEquals
DateLessThan
DateLessThanEquals
DateGreaterThan
DateGreaterThanEquals
Bool
ForAllValuesBool
ForAnyValueBool
BinaryEquals
IpAddress
NotIpAddress
ArnEquals
ArnLike
ArnNotEquals
ArnNotLike
ForAllValuesArnEquals
ForAllValuesArnLike
ForAnyValueArnEquals
ForAnyValueArnLike
ForAllValuesArnNotEquals
ForAllValuesArnNotLike
ForAnyValueArnNotEquals
ForAnyValueArnNotLike
Null
StringEqualsIfExists
StringNotEqualsIfExists
StringEqualsIgnoreCaseIfExists
StringNotEqualsIgnoreCaseIfExists
StringLikeIfExists
StringNotLikeIfExists
NumericEqualsIfExists
NumericNotEqualsIfExists
NumericLessThanIfExists
NumericLessThanEqualsIfExists
NumericGreaterThanIfExists
NumericGreaterThanEqualsIfExists
DateEqualsIfExists
DateNotEqualsIfExists
DateLessThanIfExists
DateLessThanEqualsIfExists
DateGreaterThanIfExists
DateGreaterThanEqualsIfExists
BoolIfExists
BinaryEqualsIfExists
IpAddressIfExists
NotIpAddressIfExists
ArnEqualsIfExists
ArnLikeIfExists
ArnNotEqualsIfExists
ArnNotLikeIfExists
Implementations§
Source§impl IAMOperator
impl IAMOperator
Sourcepub fn is_string_operator(&self) -> bool
pub fn is_string_operator(&self) -> bool
Returns true if this operator is a string-based operator
Sourcepub fn is_numeric_operator(&self) -> bool
pub fn is_numeric_operator(&self) -> bool
Returns true if this operator is a numeric-based operator
Sourcepub fn is_date_operator(&self) -> bool
pub fn is_date_operator(&self) -> bool
Returns true if this operator is a date-based operator
Sourcepub fn is_boolean_operator(&self) -> bool
pub fn is_boolean_operator(&self) -> bool
Returns true if this operator is a boolean-based operator
Sourcepub fn is_arn_operator(&self) -> bool
pub fn is_arn_operator(&self) -> bool
Returns true if this operator is an ARN-based operator
Sourcepub fn is_ip_operator(&self) -> bool
pub fn is_ip_operator(&self) -> bool
Returns true if this operator is an IP address-based operator
Sourcepub fn is_binary_operator(&self) -> bool
pub fn is_binary_operator(&self) -> bool
Returns true if this operator is a binary-based operator
Sourcepub fn supports_wildcards(&self) -> bool
pub fn supports_wildcards(&self) -> bool
Returns true if this operator supports wildcards
Sourcepub fn supports_policy_variables(&self) -> bool
pub fn supports_policy_variables(&self) -> bool
Returns true if this operator supports policy variables
Sourcepub fn is_multivalued_operator(&self) -> bool
pub fn is_multivalued_operator(&self) -> bool
Returns true if this operator is a multivalued operator (ForAllValues/ForAnyValue)
Sourcepub fn is_if_exists_operator(&self) -> bool
pub fn is_if_exists_operator(&self) -> bool
Returns true if this operator is an “IfExists
” variant
Sourcepub fn is_negated_operator(&self) -> bool
pub fn is_negated_operator(&self) -> bool
Returns true if this operator is a negated operator (Not*)
Sourcepub fn supports_multiple_values(&self) -> bool
pub fn supports_multiple_values(&self) -> bool
Returns true if this operator supports multiple values (arrays) Most operators in AWS IAM can accept arrays, not just ForAllValues/ForAnyValue
Sourcepub fn category(&self) -> OperatorType
pub fn category(&self) -> OperatorType
Returns the operator category as a string Determine the category of this operator
§Panics
Panics if the operator is not recognized (this should never happen)
Trait Implementations§
Source§impl Clone for IAMOperator
impl Clone for IAMOperator
Source§fn clone(&self) -> IAMOperator
fn clone(&self) -> IAMOperator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more