[][src]Enum aws_arn::Resource

pub enum Resource {
    Any,
    Id(String),
    Path(String),
    TypedId {
        the_type: String,
        id: String,
    },
    QTypedId {
        the_type: String,
        id: String,
        qualifier: String,
    },
}

Contains the resource part of the ARN. There mus be a resource-id, there *may be a resource-type, and there may be a qualifier. The separator between type and id may be prefix-like (':') or path-like ('/').

The content of this part of the ARN varies by service. A resource identifier can be the name or ID of the resource (for example, user/Bob or instance/i-1234567890abcdef0) or a resource path. For example, some resource identifiers include a parent resource (sub-resource-type/parent-resource/sub-resource) or a qualifier such as a version (resource-type:resource-name:qualifier).

Some resource ARNs can include a path. For example, in Amazon S3, the resource identifier is an object name that can include slashes (/) to form a path. Similarly, IAM user names and group names can include paths.

In some circumstances, paths can include a wildcard character, namely an asterisk (*).

Variants

Any

The wildcard resource.

Id(String)

Matches resource-id

Path(String)

Matches resource-id(/resource-id)*

TypedId

Matches resource-type:resource-id

Fields of TypedId

the_type: Stringid: String
QTypedId

Matches resource-type:resource-id:qualifier

Fields of QTypedId

the_type: Stringid: Stringqualifier: String

Trait Implementations

impl Clone for Resource[src]

impl PartialEq<Resource> for Resource[src]

impl Display for Resource[src]

impl Debug for Resource[src]

impl FromStr for Resource[src]

type Err = ArnError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Technically, according to Formats

  • resource-id
  • resource-type/resource-id
  • resource-type:resource-id[:qualifier]

impl StructuralPartialEq for Resource[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> ToString for T where
    T: Display + ?Sized
[src]

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]