Struct aws_sdk_quicksight::model::ResourcePermission
source · [−]#[non_exhaustive]pub struct ResourcePermission {
pub principal: Option<String>,
pub actions: Option<Vec<String>>,
}
Expand description
Permission for the resource.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.principal: Option<String>
The Amazon Resource Name (ARN) of the principal. This can be one of the following:
-
The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)
-
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
-
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. (This is less common.)
actions: Option<Vec<String>>
The IAM action to grant or revoke permissions on.
Implementations
sourceimpl ResourcePermission
impl ResourcePermission
sourcepub fn principal(&self) -> Option<&str>
pub fn principal(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the principal. This can be one of the following:
-
The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)
-
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
-
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. (This is less common.)
sourceimpl ResourcePermission
impl ResourcePermission
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResourcePermission
Trait Implementations
sourceimpl Clone for ResourcePermission
impl Clone for ResourcePermission
sourcefn clone(&self) -> ResourcePermission
fn clone(&self) -> ResourcePermission
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResourcePermission
impl Debug for ResourcePermission
sourceimpl PartialEq<ResourcePermission> for ResourcePermission
impl PartialEq<ResourcePermission> for ResourcePermission
sourcefn eq(&self, other: &ResourcePermission) -> bool
fn eq(&self, other: &ResourcePermission) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResourcePermission) -> bool
fn ne(&self, other: &ResourcePermission) -> bool
This method tests for !=
.
impl StructuralPartialEq for ResourcePermission
Auto Trait Implementations
impl RefUnwindSafe for ResourcePermission
impl Send for ResourcePermission
impl Sync for ResourcePermission
impl Unpin for ResourcePermission
impl UnwindSafe for ResourcePermission
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more