Struct aws_sdk_resourceexplorer2::Client
source · pub struct Client { /* private fields */ }Expand description
Client for AWS Resource Explorer
Client for invoking operations on AWS Resource Explorer. Each operation on AWS Resource Explorer is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_resourceexplorer2::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_resourceexplorer2::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the ListIndexesForMembers operation has
a Client::list_indexes_for_members, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.list_indexes_for_members()
.next_token("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn associate_default_view(&self) -> AssociateDefaultViewFluentBuilder
pub fn associate_default_view(&self) -> AssociateDefaultViewFluentBuilder
Constructs a fluent builder for the AssociateDefaultView operation.
- The fluent builder is configurable:
view_arn(impl Into<String>)/set_view_arn(Option<String>):
required: trueThe Amazon resource name (ARN) of the view to set as the default for the Amazon Web Services Region and Amazon Web Services account in which you call this operation. The specified view must already exist in the called Region.
- On success, responds with
AssociateDefaultViewOutputwith field(s):view_arn(Option<String>):The Amazon resource name (ARN) of the view that the operation set as the default for queries made in the Amazon Web Services Region and Amazon Web Services account in which you called this operation.
- On failure, responds with
SdkError<AssociateDefaultViewError>
source§impl Client
impl Client
sourcepub fn batch_get_view(&self) -> BatchGetViewFluentBuilder
pub fn batch_get_view(&self) -> BatchGetViewFluentBuilder
Constructs a fluent builder for the BatchGetView operation.
- The fluent builder is configurable:
view_arns(impl Into<String>)/set_view_arns(Option<Vec::<String>>):
required: falseA list of Amazon resource names (ARNs) that identify the views you want details for.
- On success, responds with
BatchGetViewOutputwith field(s):views(Option<Vec::<View>>):A structure with a list of objects with details for each of the specified views.
errors(Option<Vec::<BatchGetViewError>>):If any of the specified ARNs result in an error, then this structure describes the error.
- On failure, responds with
SdkError<BatchGetViewError>
source§impl Client
impl Client
sourcepub fn create_index(&self) -> CreateIndexFluentBuilder
pub fn create_index(&self) -> CreateIndexFluentBuilder
Constructs a fluent builder for the CreateIndex operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseThis value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your index.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseThe specified tags are attached only to the index created in this Amazon Web Services Region. The tags aren’t attached to any of the resources listed in the index.
- On success, responds with
CreateIndexOutputwith field(s):arn(Option<String>):The ARN of the new local index for the Region. You can reference this ARN in IAM permission policies to authorize the following operations:
DeleteIndex|GetIndex|UpdateIndexType|CreateViewstate(Option<IndexState>):Indicates the current state of the index. You can check for changes to the state for asynchronous operations by calling the
GetIndexoperation.The state can remain in the
CREATINGorUPDATINGstate for several hours as Resource Explorer discovers the information about your resources and populates the index.created_at(Option<DateTime>):The date and timestamp when the index was created.
- On failure, responds with
SdkError<CreateIndexError>
source§impl Client
impl Client
sourcepub fn create_view(&self) -> CreateViewFluentBuilder
pub fn create_view(&self) -> CreateViewFluentBuilder
Constructs a fluent builder for the CreateView operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseThis value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views.
view_name(impl Into<String>)/set_view_name(Option<String>):
required: trueThe name of the new view. This name appears in the list of views in Resource Explorer.
The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its Amazon Web Services Region.
included_properties(IncludedProperty)/set_included_properties(Option<Vec::<IncludedProperty>>):
required: falseSpecifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.
The default is an empty list, with no optional fields included in the results.
scope(impl Into<String>)/set_scope(Option<String>):
required: falseThe root ARN of the account, an organizational unit (OU), or an organization ARN. If left empty, the default is account.
filters(SearchFilter)/set_filters(Option<SearchFilter>):
required: falseAn array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a
Searchoperation, the filter string is combined with the search’sQueryStringparameter using a logicalANDoperator.For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide.
This query string in the context of this operation supports only filter prefixes with optional operators. It doesn’t support free-form text. For example, the string
region:us* service:ec2 -tag:stage=prodincludes all Amazon EC2 resources in any Amazon Web Services Region that begins with the lettersusand is not tagged with a keyStagethat has the valueprod.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTag key and value pairs that are attached to the view.
- On success, responds with
CreateViewOutputwith field(s):view(Option<View>):A structure that contains the details about the new view.
- On failure, responds with
SdkError<CreateViewError>
source§impl Client
impl Client
sourcepub fn delete_index(&self) -> DeleteIndexFluentBuilder
pub fn delete_index(&self) -> DeleteIndexFluentBuilder
Constructs a fluent builder for the DeleteIndex operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: trueThe Amazon resource name (ARN) of the index that you want to delete.
- On success, responds with
DeleteIndexOutputwith field(s):arn(Option<String>):The Amazon resource name (ARN) of the index that you successfully started the deletion process.
This operation is asynchronous. To check its status, call the
GetIndexoperation.state(Option<IndexState>):Indicates the current state of the index.
last_updated_at(Option<DateTime>):The date and time when you last updated this index.
- On failure, responds with
SdkError<DeleteIndexError>
source§impl Client
impl Client
sourcepub fn delete_view(&self) -> DeleteViewFluentBuilder
pub fn delete_view(&self) -> DeleteViewFluentBuilder
Constructs a fluent builder for the DeleteView operation.
- The fluent builder is configurable:
view_arn(impl Into<String>)/set_view_arn(Option<String>):
required: trueThe Amazon resource name (ARN) of the view that you want to delete.
- On success, responds with
DeleteViewOutputwith field(s):view_arn(Option<String>):The Amazon resource name (ARN) of the view that you successfully deleted.
- On failure, responds with
SdkError<DeleteViewError>
source§impl Client
impl Client
sourcepub fn disassociate_default_view(&self) -> DisassociateDefaultViewFluentBuilder
pub fn disassociate_default_view(&self) -> DisassociateDefaultViewFluentBuilder
Constructs a fluent builder for the DisassociateDefaultView operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
DisassociateDefaultViewOutput - On failure, responds with
SdkError<DisassociateDefaultViewError>
source§impl Client
impl Client
sourcepub fn get_account_level_service_configuration(
&self
) -> GetAccountLevelServiceConfigurationFluentBuilder
pub fn get_account_level_service_configuration( &self ) -> GetAccountLevelServiceConfigurationFluentBuilder
Constructs a fluent builder for the GetAccountLevelServiceConfiguration operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetAccountLevelServiceConfigurationOutputwith field(s):org_configuration(Option<OrgConfiguration>):Details about the organization, and whether configuration is
ENABLEDorDISABLED.
- On failure, responds with
SdkError<GetAccountLevelServiceConfigurationError>
source§impl Client
impl Client
sourcepub fn get_default_view(&self) -> GetDefaultViewFluentBuilder
pub fn get_default_view(&self) -> GetDefaultViewFluentBuilder
Constructs a fluent builder for the GetDefaultView operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetDefaultViewOutputwith field(s):view_arn(Option<String>):The Amazon resource name (ARN) of the view that is the current default for the Amazon Web Services Region in which you called this operation.
- On failure, responds with
SdkError<GetDefaultViewError>
source§impl Client
impl Client
sourcepub fn get_index(&self) -> GetIndexFluentBuilder
pub fn get_index(&self) -> GetIndexFluentBuilder
Constructs a fluent builder for the GetIndex operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetIndexOutputwith field(s):arn(Option<String>):The Amazon resource name (ARN) of the index.
r#type(Option<IndexType>):The type of the index in this Region. For information about the aggregator index and how it differs from a local index, see Turning on cross-Region search by creating an aggregator index.
state(Option<IndexState>):The current state of the index in this Amazon Web Services Region.
replicating_from(Option<Vec::<String>>):This response value is present only if this index is
Type=AGGREGATOR.A list of the Amazon Web Services Regions that replicate their content to the index in this Region.
replicating_to(Option<Vec::<String>>):This response value is present only if this index is
Type=LOCAL.The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does exist then the Region in which you called this operation replicates its index information to the Region specified in this response value.
created_at(Option<DateTime>):The date and time when the index was originally created.
last_updated_at(Option<DateTime>):The date and time when the index was last updated.
tags(Option<HashMap::<String, String>>):Tag key and value pairs that are attached to the index.
- On failure, responds with
SdkError<GetIndexError>
source§impl Client
impl Client
sourcepub fn get_view(&self) -> GetViewFluentBuilder
pub fn get_view(&self) -> GetViewFluentBuilder
Constructs a fluent builder for the GetView operation.
- The fluent builder is configurable:
view_arn(impl Into<String>)/set_view_arn(Option<String>):
required: trueThe Amazon resource name (ARN) of the view that you want information about.
- On success, responds with
GetViewOutputwith field(s):view(Option<View>):A structure that contains the details for the requested view.
tags(Option<HashMap::<String, String>>):Tag key and value pairs that are attached to the view.
- On failure, responds with
SdkError<GetViewError>
source§impl Client
impl Client
sourcepub fn list_indexes(&self) -> ListIndexesFluentBuilder
pub fn list_indexes(&self) -> ListIndexesFluentBuilder
Constructs a fluent builder for the ListIndexes operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
r#type(IndexType)/set_type(Option<IndexType>):
required: falseIf specified, limits the output to only indexes of the specified Type, either
LOCALorAGGREGATOR.Use this option to discover the aggregator index for your account.
regions(impl Into<String>)/set_regions(Option<Vec::<String>>):
required: falseIf specified, limits the response to only information about the index in the specified list of Amazon Web Services Regions.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe parameter for receiving additional results if you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call’sNextTokenresponse to indicate where the output should continue from. The pagination tokens expire after 24 hours.
- On success, responds with
ListIndexesOutputwith field(s):indexes(Option<Vec::<Index>>):A structure that contains the details and status of each index.
next_token(Option<String>):If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull. The pagination tokens expire after 24 hours.
- On failure, responds with
SdkError<ListIndexesError>
source§impl Client
impl Client
sourcepub fn list_indexes_for_members(&self) -> ListIndexesForMembersFluentBuilder
pub fn list_indexes_for_members(&self) -> ListIndexesForMembersFluentBuilder
Constructs a fluent builder for the ListIndexesForMembers operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
account_id_list(impl Into<String>)/set_account_id_list(Option<Vec::<String>>):
required: trueThe account IDs will limit the output to only indexes from these accounts.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe parameter for receiving additional results if you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call’sNextTokenresponse to indicate where the output should continue from. The pagination tokens expire after 24 hours.
- On success, responds with
ListIndexesForMembersOutputwith field(s):indexes(Option<Vec::<MemberIndex>>):A structure that contains the details and status of each index.
next_token(Option<String>):If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull. The pagination tokens expire after 24 hours.
- On failure, responds with
SdkError<ListIndexesForMembersError>
source§impl Client
impl Client
sourcepub fn list_supported_resource_types(
&self
) -> ListSupportedResourceTypesFluentBuilder
pub fn list_supported_resource_types( &self ) -> ListSupportedResourceTypesFluentBuilder
Constructs a fluent builder for the ListSupportedResourceTypes operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe parameter for receiving additional results if you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call’sNextTokenresponse to indicate where the output should continue from. The pagination tokens expire after 24 hours.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results.
- On success, responds with
ListSupportedResourceTypesOutputwith field(s):resource_types(Option<Vec::<SupportedResourceType>>):The list of resource types supported by Resource Explorer.
next_token(Option<String>):If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull. The pagination tokens expire after 24 hours.
- On failure, responds with
SdkError<ListSupportedResourceTypesError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon resource name (ARN) of the view or index that you want to attach tags to.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap::<String, String>>):The tag key and value pairs that you want to attach to the specified view or index.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn list_views(&self) -> ListViewsFluentBuilder
pub fn list_views(&self) -> ListViewsFluentBuilder
Constructs a fluent builder for the ListViews operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe parameter for receiving additional results if you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call’sNextTokenresponse to indicate where the output should continue from. The pagination tokens expire after 24 hours.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results.
- On success, responds with
ListViewsOutputwith field(s):views(Option<Vec::<String>>):The list of views available in the Amazon Web Services Region in which you called this operation.
next_token(Option<String>):If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull. The pagination tokens expire after 24 hours.
- On failure, responds with
SdkError<ListViewsError>
source§impl Client
impl Client
sourcepub fn search(&self) -> SearchFluentBuilder
pub fn search(&self) -> SearchFluentBuilder
Constructs a fluent builder for the Search operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
query_string(impl Into<String>)/set_query_string(Option<String>):
required: trueA string that includes keywords and filters that specify the resources that you want to include in the results.
For the complete syntax supported by the
QueryStringparameter, see Search query syntax reference for Resource Explorer.The search is completely case insensitive. You can specify an empty string to return all results up to the limit of 1,000 total results.
The operation can return only the first 1,000 results. If the resource you want is not included, then use a different value for
QueryStringto refine the results.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextTokenresponse element is present and has a value (is not null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results.An API operation can return fewer results than the maximum even when there are more results available. You should check
NextTokenafter every operation to ensure that you receive all of the results.view_arn(impl Into<String>)/set_view_arn(Option<String>):
required: falseSpecifies the Amazon resource name (ARN) of the view to use for the query. If you don’t specify a value for this parameter, then the operation automatically uses the default view for the Amazon Web Services Region in which you called this operation. If the Region either doesn’t have a default view or if you don’t have permission to use the default view, then the operation fails with a
401 Unauthorizedexception.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe parameter for receiving additional results if you receive a
NextTokenresponse in a previous request. ANextTokenresponse indicates that more output is available. Set this parameter to the value of the previous call’sNextTokenresponse to indicate where the output should continue from. The pagination tokens expire after 24 hours.
- On success, responds with
SearchOutputwith field(s):resources(Option<Vec::<Resource>>):The list of structures that describe the resources that match the query.
next_token(Option<String>):If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull. The pagination tokens expire after 24 hours.view_arn(Option<String>):The Amazon resource name (ARN) of the view that this operation used to perform the search.
count(Option<ResourceCount>):The number of resources that match the query.
- On failure, responds with
SdkError<SearchError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the view or index that you want to attach tags to.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseA list of tag key and value pairs that you want to attach to the specified view or index.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the view or index that you want to remove tags from.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueA list of the keys for the tags that you want to remove from the specified view or index.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_index_type(&self) -> UpdateIndexTypeFluentBuilder
pub fn update_index_type(&self) -> UpdateIndexTypeFluentBuilder
Constructs a fluent builder for the UpdateIndexType operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):
required: trueThe Amazon resource name (ARN) of the index that you want to update.
r#type(IndexType)/set_type(Option<IndexType>):
required: trueThe type of the index. To understand the difference between
LOCALandAGGREGATOR, see Turning on cross-Region search in the Amazon Web Services Resource Explorer User Guide.
- On success, responds with
UpdateIndexTypeOutputwith field(s):arn(Option<String>):The Amazon resource name (ARN) of the index that you updated.
r#type(Option<IndexType>):Specifies the type of the specified index after the operation completes.
state(Option<IndexState>):Indicates the state of the request to update the index. This operation is asynchronous. Call the
GetIndexoperation to check for changes.last_updated_at(Option<DateTime>):The date and timestamp when the index was last updated.
- On failure, responds with
SdkError<UpdateIndexTypeError>
source§impl Client
impl Client
sourcepub fn update_view(&self) -> UpdateViewFluentBuilder
pub fn update_view(&self) -> UpdateViewFluentBuilder
Constructs a fluent builder for the UpdateView operation.
- The fluent builder is configurable:
view_arn(impl Into<String>)/set_view_arn(Option<String>):
required: trueThe Amazon resource name (ARN) of the view that you want to modify.
included_properties(IncludedProperty)/set_included_properties(Option<Vec::<IncludedProperty>>):
required: falseSpecifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.
The default is an empty list, with no optional fields included in the results.
filters(SearchFilter)/set_filters(Option<SearchFilter>):
required: falseAn array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a
Searchoperation, the filter string is combined with the search’sQueryStringparameter using a logicalANDoperator.For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide.
This query string in the context of this operation supports only filter prefixes with optional operators. It doesn’t support free-form text. For example, the string
region:us* service:ec2 -tag:stage=prodincludes all Amazon EC2 resources in any Amazon Web Services Region that begins with the lettersusand is not tagged with a keyStagethat has the valueprod.
- On success, responds with
UpdateViewOutputwith field(s):view(Option<View>):Details about the view that you changed with this operation.
- On failure, responds with
SdkError<UpdateViewError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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