[−][src]Struct aws_iam::model::builder::StatementBuilder
A Statement
builder, used with PolicyBuilder::evaluate_statement()
.
Methods
impl StatementBuilder
[src]
pub fn new() -> Self
[src]
Create a new, empty, statement builder
pub fn named(&mut self, sid: &str) -> &mut Self
[src]
Set the id of this statement
pub fn auto_named(&mut self) -> &mut Self
[src]
Set the id of this statement to a randomly generate value.
pub fn allows(&mut self) -> &mut Self
[src]
Set the effect of this statement to Allow
.
pub fn does_not_allow(&mut self) -> &mut Self
[src]
Set the effect of this statement to Deny
.
pub fn unspecified_principals(&mut self) -> &mut Self
[src]
Unsets the principal associated with this statement
pub fn any_principal(&mut self, p_type: PrincipalType) -> &mut Self
[src]
Sets the principal of this statement to be a wildcard.
pub fn only_this_principal(
&mut self,
p_type: PrincipalType,
arn: &str
) -> &mut Self
[src]
&mut self,
p_type: PrincipalType,
arn: &str
) -> &mut Self
Sets the principal of this statement to be only this value.
pub fn only_these_principals(
&mut self,
p_type: PrincipalType,
arns: Vec<&str>
) -> &mut Self
[src]
&mut self,
p_type: PrincipalType,
arns: Vec<&str>
) -> &mut Self
Sets the principal of this statement to be any of these values.
pub fn not_this_principal(
&mut self,
p_type: PrincipalType,
arn: &str
) -> &mut Self
[src]
&mut self,
p_type: PrincipalType,
arn: &str
) -> &mut Self
Sets the principal of this statement to exclude this value.
pub fn not_these_principals(
&mut self,
p_type: PrincipalType,
arns: Vec<&str>
) -> &mut Self
[src]
&mut self,
p_type: PrincipalType,
arns: Vec<&str>
) -> &mut Self
Sets the principal of this statement to exclude of these values.
pub fn may_perform_any_action(&mut self) -> &mut Self
[src]
Sets the action of this statement to be a wildcard.
pub fn may_perform_action(&mut self, action: &str) -> &mut Self
[src]
Sets the action of this statement to be only this value.
pub fn may_perform_actions(&mut self, actions: Vec<&str>) -> &mut Self
[src]
Sets the action of this statement to be any of these values.
pub fn may_perform_no_action(&mut self) -> &mut Self
[src]
Sets the action of this statement to exclude the wildcard.
pub fn may_not_perform_action(&mut self, action: &str) -> &mut Self
[src]
Sets the action of this statement to exclude this value.
pub fn may_not_perform_actions(&mut self, actions: Vec<&str>) -> &mut Self
[src]
Sets the action of this statement to exclude any of these values.
pub fn on_any_resource(&mut self) -> &mut Self
[src]
Sets the resource of this statement to be a wildcard.
pub fn on_resource(&mut self, resource: &str) -> &mut Self
[src]
Sets the resource of this statement to be only this value.
pub fn on_resources(&mut self, resources: Vec<&str>) -> &mut Self
[src]
Sets the resource of this statement to be any of these values.
pub fn on_no_resource(&mut self) -> &mut Self
[src]
Sets the resource of this statement to exclude the wildcard.
pub fn not_on_resource(&mut self, resource: &str) -> &mut Self
[src]
Sets the resource of this statement to exclude this value.
pub fn not_on_resources(&mut self, resources: Vec<&str>) -> &mut Self
[src]
Sets the resource of this statement to exclude any of these values.
pub fn if_condition(&mut self, condition: &mut ConditionBuilder) -> &mut Self
[src]
Adds this condition to the statement.
Trait Implementations
impl<'_> From<&'_ mut StatementBuilder> for Statement
[src]
fn from(sb: &mut StatementBuilder) -> Self
[src]
impl Clone for StatementBuilder
[src]
fn clone(&self) -> StatementBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for StatementBuilder
[src]
impl Debug for StatementBuilder
[src]
Auto Trait Implementations
impl Send for StatementBuilder
impl Sync for StatementBuilder
impl Unpin for StatementBuilder
impl UnwindSafe for StatementBuilder
impl RefUnwindSafe for StatementBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,