[][src]Struct aws_iam::model::builder::StatementBuilder

pub struct StatementBuilder { /* fields omitted */ }

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]

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]

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]

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]

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]

impl Clone for StatementBuilder[src]

impl Default for StatementBuilder[src]

impl Debug for StatementBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,