ResourceExplorer / Client / update_view

update_view#

ResourceExplorer.Client.update_view(**kwargs)#

Modifies some of the details of a view. You can change the filter string and the list of included properties. You can’t change the name of the view.

See also: AWS API Documentation

Request Syntax

response = client.update_view(
    Filters={
        'FilterString': 'string'
    },
    IncludedProperties=[
        {
            'Name': 'string'
        },
    ],
    ViewArn='string'
)
Parameters:
  • Filters (dict) –

    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 Search operation, the filter string is combined with the search’s QueryString parameter using a logical AND operator.

    For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide.

    Warning

    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=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod.

    • FilterString (string) – [REQUIRED]

      The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax.

  • IncludedProperties (list) –

    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.

    The default is an empty list, with no optional fields included in the results.

    • (dict) –

      Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

      • Name (string) – [REQUIRED]

        The name of the property that is included in this view.

        You can specify the following property names for this field:

        • Tags

  • ViewArn (string) –

    [REQUIRED]

    The Amazon resource name (ARN) of the view that you want to modify.

Return type:

dict

Returns:

Response Syntax

{
    'View': {
        'Filters': {
            'FilterString': 'string'
        },
        'IncludedProperties': [
            {
                'Name': 'string'
            },
        ],
        'LastUpdatedAt': datetime(2015, 1, 1),
        'Owner': 'string',
        'Scope': 'string',
        'ViewArn': 'string'
    }
}

Response Structure

  • (dict) –

    • View (dict) –

      Details about the view that you changed with this operation.

      • Filters (dict) –

        An array of SearchFilter objects that specify which resources can be included in the results of queries made using this view.

        • FilterString (string) –

          The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax.

      • IncludedProperties (list) –

        A structure that contains additional information about the view.

        • (dict) –

          Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

          • Name (string) –

            The name of the property that is included in this view.

            You can specify the following property names for this field:

            • Tags

      • LastUpdatedAt (datetime) –

        The date and time when this view was last modified.

      • Owner (string) –

        The Amazon Web Services account that owns this view.

      • Scope (string) –

        An Amazon resource name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.

        If not specified, the value defaults to the Amazon Web Services account used to call this operation.

      • ViewArn (string) –

        The Amazon resource name (ARN) of the view.

Exceptions