pub enum ResourceArn {
Bucket(String),
Object {
bucket: String,
key_pattern: String,
},
}Expand description
v0.8.4 #75: a parsed Resource ARN with namespace tag (bucket-form vs object-form). Built once at policy-parse time so statement evaluation can route bucket-only / object-only actions to the right ARN shape without re-parsing on every request.
Variants§
Bucket(String)
arn:aws:s3:::<bucket> — matches bucket-level actions only.
Object
arn:aws:s3:::<bucket>/<key-pattern> — matches object-level
actions only. key_pattern may carry * / ? glob characters.
Trait Implementations§
Source§impl Clone for ResourceArn
impl Clone for ResourceArn
Source§fn clone(&self) -> ResourceArn
fn clone(&self) -> ResourceArn
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 ResourceArn
impl Debug for ResourceArn
Source§impl PartialEq for ResourceArn
impl PartialEq for ResourceArn
Source§fn eq(&self, other: &ResourceArn) -> bool
fn eq(&self, other: &ResourceArn) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResourceArn
impl StructuralPartialEq for ResourceArn
Auto Trait Implementations§
impl Freeze for ResourceArn
impl RefUnwindSafe for ResourceArn
impl Send for ResourceArn
impl Sync for ResourceArn
impl Unpin for ResourceArn
impl UnsafeUnpin for ResourceArn
impl UnwindSafe for ResourceArn
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.