#[non_exhaustive]pub struct ResourcePermissionBuilder { /* private fields */ }Expand description
A builder for ResourcePermission.
Implementations§
source§impl ResourcePermissionBuilder
impl ResourcePermissionBuilder
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
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.)
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
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.)
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &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.)
sourcepub fn actions(self, input: impl Into<String>) -> Self
pub fn actions(self, input: impl Into<String>) -> Self
Appends an item to actions.
To override the contents of this collection use set_actions.
The IAM action to grant or revoke permissions on.
sourcepub fn set_actions(self, input: Option<Vec<String>>) -> Self
pub fn set_actions(self, input: Option<Vec<String>>) -> Self
The IAM action to grant or revoke permissions on.
sourcepub fn get_actions(&self) -> &Option<Vec<String>>
pub fn get_actions(&self) -> &Option<Vec<String>>
The IAM action to grant or revoke permissions on.
sourcepub fn build(self) -> Result<ResourcePermission, BuildError>
pub fn build(self) -> Result<ResourcePermission, BuildError>
Consumes the builder and constructs a ResourcePermission.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResourcePermissionBuilder
impl Clone for ResourcePermissionBuilder
source§fn clone(&self) -> ResourcePermissionBuilder
fn clone(&self) -> ResourcePermissionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourcePermissionBuilder
impl Debug for ResourcePermissionBuilder
source§impl Default for ResourcePermissionBuilder
impl Default for ResourcePermissionBuilder
source§fn default() -> ResourcePermissionBuilder
fn default() -> ResourcePermissionBuilder
source§impl PartialEq for ResourcePermissionBuilder
impl PartialEq for ResourcePermissionBuilder
source§fn eq(&self, other: &ResourcePermissionBuilder) -> bool
fn eq(&self, other: &ResourcePermissionBuilder) -> bool
self and other values to be equal, and is used
by ==.