[][src]Enum aws_iam::model::types::Action

pub enum Action {
    Action(OneOrAny<QString>),
    NotAction(OneOrAny<QString>),
}

The Action element describes the specific action or actions that will be allowed or denied. Statements must include either an Action or NotAction element. Each AWS service has its own set of actions that describe tasks that you can perform with that service.

You specify a value using a service namespace as an action prefix (iam, ec2, sqs, sns, s3, etc.) followed by the name of the action to allow or deny. The name must match an action that is supported by the service. The prefix and the action name are case insensitive. For example, iam:ListAccessKeys is the same as IAM:listaccesskeys.

From IAM JSON Policy Elements: Action and IAM JSON Policy Elements: NotAction.

Variants

Action(OneOrAny<QString>)

Asserts that the action in the request must match one of the specified ones.

NotAction(OneOrAny<QString>)

Asserts that the action in the request must not match one of the specified ones.

Methods

impl Action[src]

pub fn any() -> Self[src]

Construct a wildcard Action.

pub fn this(one: QString) -> Self[src]

Construct an Action with one value.

pub fn these(any_of: &mut Vec<QString>) -> Self[src]

Construct an Action with a list of values.

pub fn none() -> Self[src]

Construct a negative wildcard Action.

pub fn not_this(one: QString) -> Self[src]

Construct an Action with one negative value.

pub fn not_these(any_of: &mut Vec<QString>) -> Self[src]

Construct an Action with a list of negative values.

Trait Implementations

impl Clone for Action[src]

impl PartialEq<Action> for Action[src]

impl Debug for Action[src]

impl StructuralPartialEq for Action[src]

impl Serialize for Action[src]

impl<'de> Deserialize<'de> for Action[src]

Auto Trait Implementations

impl Send for Action

impl Sync for Action

impl Unpin for Action

impl UnwindSafe for Action

impl RefUnwindSafe for Action

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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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