Struct aws_sdk_quicksight::types::ResourcePermission
source · #[non_exhaustive]pub struct ResourcePermission {
pub principal: String,
pub actions: 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: StringThe 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: Vec<String>The IAM action to grant or revoke permissions on.
Implementations§
source§impl ResourcePermission
impl ResourcePermission
sourcepub fn principal(&self) -> &str
pub fn principal(&self) -> &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.)
source§impl ResourcePermission
impl ResourcePermission
sourcepub fn builder() -> ResourcePermissionBuilder
pub fn builder() -> ResourcePermissionBuilder
Creates a new builder-style object to manufacture ResourcePermission.
Trait Implementations§
source§impl Clone for ResourcePermission
impl Clone for ResourcePermission
source§fn clone(&self) -> ResourcePermission
fn clone(&self) -> ResourcePermission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourcePermission
impl Debug for ResourcePermission
source§impl PartialEq for ResourcePermission
impl PartialEq for ResourcePermission
source§fn eq(&self, other: &ResourcePermission) -> bool
fn eq(&self, other: &ResourcePermission) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResourcePermission
Auto Trait Implementations§
impl Freeze for ResourcePermission
impl RefUnwindSafe for ResourcePermission
impl Send for ResourcePermission
impl Sync for ResourcePermission
impl Unpin for ResourcePermission
impl UnwindSafe for ResourcePermission
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more