pub enum PassRoleError {
RoleNotFound(String),
TrustPolicyDenies {
role_arn: String,
service_principal: String,
},
InvalidTrustPolicy(String),
}Expand description
Failure mode for IAM PassRole trust-policy validation.
Exists in fakecloud-core so service crates (Lambda, ECS, …) can
surface a wire-shaped error without taking a dependency on
fakecloud-iam. The server crate wires the concrete validator that
reads the IAM state.
Variants§
RoleNotFound(String)
No role with this ARN exists in the IAM state.
TrustPolicyDenies
Role exists but its AssumeRolePolicyDocument does not allow the
service principal to call sts:AssumeRole. Real AWS returns
InvalidParameterValueException in this shape.
InvalidTrustPolicy(String)
Role’s AssumeRolePolicyDocument could not be parsed as JSON.
Trait Implementations§
Source§impl Clone for PassRoleError
impl Clone for PassRoleError
Source§fn clone(&self) -> PassRoleError
fn clone(&self) -> PassRoleError
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 PassRoleError
impl Debug for PassRoleError
Source§impl Display for PassRoleError
impl Display for PassRoleError
Source§impl Error for PassRoleError
impl Error for PassRoleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PassRoleError
impl PartialEq for PassRoleError
Source§fn eq(&self, other: &PassRoleError) -> bool
fn eq(&self, other: &PassRoleError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PassRoleError
impl StructuralPartialEq for PassRoleError
Auto Trait Implementations§
impl Freeze for PassRoleError
impl RefUnwindSafe for PassRoleError
impl Send for PassRoleError
impl Sync for PassRoleError
impl Unpin for PassRoleError
impl UnsafeUnpin for PassRoleError
impl UnwindSafe for PassRoleError
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