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: 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: 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 ==
.