#[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 ==
.impl StructuralPartialEq for ResourcePermissionBuilder
Auto Trait Implementations§
impl Freeze for ResourcePermissionBuilder
impl RefUnwindSafe for ResourcePermissionBuilder
impl Send for ResourcePermissionBuilder
impl Sync for ResourcePermissionBuilder
impl Unpin for ResourcePermissionBuilder
impl UnwindSafe for ResourcePermissionBuilder
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> 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