pub struct PolicyStatement {
pub sid: Option<String>,
pub effect: PolicyStatementEffect,
pub actions: Option<Vec<String>>,
pub not_actions: Option<Vec<String>>,
pub resources: Option<Vec<String>>,
pub not_resources: Option<Vec<String>>,
pub conditions: Option<Vec<PolicyCondition>>,
}Fields§
§sid: Option<String>Statement identifier
effect: PolicyStatementEffect§actions: Option<Vec<String>>Actions in service:action format
not_actions: Option<Vec<String>>The statement covers every action except these. Pairs naturally with effect: deny to carve a hole out of a broad allow; with effect: allow it grants everything the listed patterns don’t name, including actions added by future services.
resources: Option<Vec<String>>Resource identifiers or patterns
not_resources: Option<Vec<String>>The statement covers every resource except these. Same trade-off as not_actions: with effect: allow it reaches resources that do not exist yet.
conditions: Option<Vec<PolicyCondition>>Optional conditions for the statement
Trait Implementations§
Source§impl Clone for PolicyStatement
impl Clone for PolicyStatement
Source§impl Debug for PolicyStatement
impl Debug for PolicyStatement
Source§impl<'de> Deserialize<'de> for PolicyStatement
impl<'de> Deserialize<'de> for PolicyStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PolicyStatement
impl RefUnwindSafe for PolicyStatement
impl Send for PolicyStatement
impl Sync for PolicyStatement
impl Unpin for PolicyStatement
impl UnsafeUnpin for PolicyStatement
impl UnwindSafe for PolicyStatement
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