pub struct PolicyStatementInput {
pub sid: Option<String>,
pub effect: PolicyStatementInputEffect,
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<PolicyConditionInput>>,
}Fields§
§sid: Option<String>Statement identifier
effect: PolicyStatementInputEffect§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<PolicyConditionInput>>Optional conditions for the statement
Implementations§
Source§impl PolicyStatementInput
impl PolicyStatementInput
Sourcepub fn new(effect: PolicyStatementInputEffect) -> Self
pub fn new(effect: PolicyStatementInputEffect) -> Self
Set the required fields; optional fields start omitted.
Trait Implementations§
Source§impl Clone for PolicyStatementInput
impl Clone for PolicyStatementInput
Source§impl Debug for PolicyStatementInput
impl Debug for PolicyStatementInput
Source§impl<'de> Deserialize<'de> for PolicyStatementInput
impl<'de> Deserialize<'de> for PolicyStatementInput
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 PolicyStatementInput
impl RefUnwindSafe for PolicyStatementInput
impl Send for PolicyStatementInput
impl Sync for PolicyStatementInput
impl Unpin for PolicyStatementInput
impl UnsafeUnpin for PolicyStatementInput
impl UnwindSafe for PolicyStatementInput
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