aws_sdk_resourceexplorer2/client/
update_view.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateView`](crate::operation::update_view::builders::UpdateViewFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`view_arn(impl Into<String>)`](crate::operation::update_view::builders::UpdateViewFluentBuilder::view_arn) / [`set_view_arn(Option<String>)`](crate::operation::update_view::builders::UpdateViewFluentBuilder::set_view_arn):<br>required: **true**<br><p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource name (ARN)</a> of the view that you want to modify.</p><br>
7    ///   - [`included_properties(IncludedProperty)`](crate::operation::update_view::builders::UpdateViewFluentBuilder::included_properties) / [`set_included_properties(Option<Vec::<IncludedProperty>>)`](crate::operation::update_view::builders::UpdateViewFluentBuilder::set_included_properties):<br>required: **false**<br><p>Specifies 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.</p> <p>The default is an empty list, with no optional fields included in the results.</p><br>
8    ///   - [`filters(SearchFilter)`](crate::operation::update_view::builders::UpdateViewFluentBuilder::filters) / [`set_filters(Option<SearchFilter>)`](crate::operation::update_view::builders::UpdateViewFluentBuilder::set_filters):<br>required: **false**<br><p>An 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 <code>Search</code> operation, the filter string is combined with the search's <code>QueryString</code> parameter using a logical <code>AND</code> operator.</p> <p>For information about the supported syntax, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html">Search query reference for Resource Explorer</a> in the <i>Amazon Web Services Resource Explorer User Guide</i>.</p><important>  <p>This query string in the context of this operation supports only <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html#query-syntax-filters">filter prefixes</a> with optional <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html#query-syntax-operators">operators</a>. It doesn't support free-form text. For example, the string <code>region:us* service:ec2 -tag:stage=prod</code> includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters <code>us</code> and is <i>not</i> tagged with a key <code>Stage</code> that has the value <code>prod</code>.</p> </important><br>
9    /// - On success, responds with [`UpdateViewOutput`](crate::operation::update_view::UpdateViewOutput) with field(s):
10    ///   - [`view(Option<View>)`](crate::operation::update_view::UpdateViewOutput::view): <p>Details about the view that you changed with this operation.</p>
11    /// - On failure, responds with [`SdkError<UpdateViewError>`](crate::operation::update_view::UpdateViewError)
12    pub fn update_view(&self) -> crate::operation::update_view::builders::UpdateViewFluentBuilder {
13        crate::operation::update_view::builders::UpdateViewFluentBuilder::new(self.handle.clone())
14    }
15}