Struct aws_sdk_quicksight::types::DataSetSearchFilter
source · #[non_exhaustive]pub struct DataSetSearchFilter {
pub operator: FilterOperator,
pub name: DataSetFilterAttribute,
pub value: String,
}
Expand description
A filter that you apply when searching for datasets.
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.operator: FilterOperator
The comparison operator that you want to use as a filter, for example "Operator": "StringEquals"
. Valid values are "StringEquals"
and "StringLike"
.
If you set the operator value to "StringEquals"
, you need to provide an ownership related filter in the "NAME"
field and the arn of the user or group whose datasets you want to search in the "Value"
field. For example, "Name":"QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east- 1:1:user/default/UserName1"
.
If you set the value to "StringLike"
, you need to provide the name of the datasets you are searching for. For example, "Name":"DATASET_NAME", "Operator": "StringLike", "Value": "Test"
. The "StringLike"
operator only supports the NAME
value DATASET_NAME
.
name: DataSetFilterAttribute
The name of the value that you want to use as a filter, for example, "Name": "QUICKSIGHT_OWNER"
.
Valid values are defined as follows:
-
QUICKSIGHT_VIEWER_OR_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the dataset owners or viewers are returned. Implicit permissions from folders or groups are considered. -
QUICKSIGHT_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners of the dataset are returned. Implicit permissions from folders or groups are considered. -
DIRECT_QUICKSIGHT_SOLE_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as the only owner of the dataset are returned. Implicit permissions from folders or groups are not considered. -
DIRECT_QUICKSIGHT_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners if the dataset are returned. Implicit permissions from folders or groups are not considered. -
DIRECT_QUICKSIGHT_VIEWER_OR_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners or viewers of the dataset are returned. Implicit permissions from folders or groups are not considered. -
DATASET_NAME
: Any datasets whose names have a substring match to this value will be returned.
value: String
The value of the named item, in this case QUICKSIGHT_OWNER
, that you want to use as a filter, for example, "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1"
.
Implementations§
source§impl DataSetSearchFilter
impl DataSetSearchFilter
sourcepub fn operator(&self) -> &FilterOperator
pub fn operator(&self) -> &FilterOperator
The comparison operator that you want to use as a filter, for example "Operator": "StringEquals"
. Valid values are "StringEquals"
and "StringLike"
.
If you set the operator value to "StringEquals"
, you need to provide an ownership related filter in the "NAME"
field and the arn of the user or group whose datasets you want to search in the "Value"
field. For example, "Name":"QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east- 1:1:user/default/UserName1"
.
If you set the value to "StringLike"
, you need to provide the name of the datasets you are searching for. For example, "Name":"DATASET_NAME", "Operator": "StringLike", "Value": "Test"
. The "StringLike"
operator only supports the NAME
value DATASET_NAME
.
sourcepub fn name(&self) -> &DataSetFilterAttribute
pub fn name(&self) -> &DataSetFilterAttribute
The name of the value that you want to use as a filter, for example, "Name": "QUICKSIGHT_OWNER"
.
Valid values are defined as follows:
-
QUICKSIGHT_VIEWER_OR_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the dataset owners or viewers are returned. Implicit permissions from folders or groups are considered. -
QUICKSIGHT_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners of the dataset are returned. Implicit permissions from folders or groups are considered. -
DIRECT_QUICKSIGHT_SOLE_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as the only owner of the dataset are returned. Implicit permissions from folders or groups are not considered. -
DIRECT_QUICKSIGHT_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners if the dataset are returned. Implicit permissions from folders or groups are not considered. -
DIRECT_QUICKSIGHT_VIEWER_OR_OWNER
: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners or viewers of the dataset are returned. Implicit permissions from folders or groups are not considered. -
DATASET_NAME
: Any datasets whose names have a substring match to this value will be returned.
source§impl DataSetSearchFilter
impl DataSetSearchFilter
sourcepub fn builder() -> DataSetSearchFilterBuilder
pub fn builder() -> DataSetSearchFilterBuilder
Creates a new builder-style object to manufacture DataSetSearchFilter
.
Trait Implementations§
source§impl Clone for DataSetSearchFilter
impl Clone for DataSetSearchFilter
source§fn clone(&self) -> DataSetSearchFilter
fn clone(&self) -> DataSetSearchFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataSetSearchFilter
impl Debug for DataSetSearchFilter
source§impl PartialEq for DataSetSearchFilter
impl PartialEq for DataSetSearchFilter
source§fn eq(&self, other: &DataSetSearchFilter) -> bool
fn eq(&self, other: &DataSetSearchFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataSetSearchFilter
Auto Trait Implementations§
impl Freeze for DataSetSearchFilter
impl RefUnwindSafe for DataSetSearchFilter
impl Send for DataSetSearchFilter
impl Sync for DataSetSearchFilter
impl Unpin for DataSetSearchFilter
impl UnwindSafe for DataSetSearchFilter
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