Struct scratchstack_aspen::StatementBuilder
source · pub struct StatementBuilder { /* private fields */ }
Expand description
Builder for Statement
.
Implementations§
source§impl StatementBuilder
impl StatementBuilder
sourcepub fn sid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The user-provided statement id.
sourcepub fn effect(&mut self, value: Effect) -> &mut Self
pub fn effect(&mut self, value: Effect) -> &mut Self
The effect of the statement (allow or deny).
sourcepub fn action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
pub fn action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
The list of actions this statement applies to. Exactly one of action
or not_action
must be set.
sourcepub fn not_action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
pub fn not_action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
The list of actions this statement does not apply to. Exactly one of action
or not_action
must be set.
sourcepub fn resource<VALUE: Into<ResourceList>>(&mut self, value: VALUE) -> &mut Self
pub fn resource<VALUE: Into<ResourceList>>(&mut self, value: VALUE) -> &mut Self
The list of resources this statement applies to. This cannot be combined with not_resource
.
sourcepub fn not_resource<VALUE: Into<ResourceList>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn not_resource<VALUE: Into<ResourceList>>(
&mut self,
value: VALUE
) -> &mut Self
The list of resources this statement does not apply to. This cannot be combined with resource
.
sourcepub fn principal<VALUE: Into<Principal>>(&mut self, value: VALUE) -> &mut Self
pub fn principal<VALUE: Into<Principal>>(&mut self, value: VALUE) -> &mut Self
The list of principals this statement applies to. This cannot be combined with not_principal
.
sourcepub fn not_principal<VALUE: Into<Principal>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn not_principal<VALUE: Into<Principal>>(
&mut self,
value: VALUE
) -> &mut Self
The list of principals this statement does not apply to. This cannot be combined with principal
.
Trait Implementations§
source§impl Clone for StatementBuilder
impl Clone for StatementBuilder
source§fn clone(&self) -> StatementBuilder
fn clone(&self) -> StatementBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more