[−][src]Enum aws_arn::Resource
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
The wildcard resource.
Id(String)
Matches resource-id
Path(String)
Matches resource-id(/resource-id)*
Matches resource-type:resource-id
Matches resource-type:resource-id:qualifier
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
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
impl RefUnwindSafe for Resource
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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,