CloudWatchOmni / Client / update_view

update_view

CloudWatchOmni.Client.update_view(**kwargs)

Updates an existing view’s definition and/or description.

Only the fields you provide are changed. Managed views cannot be updated.

See also: AWS API Documentation

Request Syntax

response = client.update_view(
    name='string',
    definition='string',
    description='string'
)
Parameters:
  • name (string) –

    [REQUIRED]

    The name of the view to update.

  • definition (string) – The new SQL query that defines the view. Omit to leave unchanged.

  • description (string) – The new description of the view. Omit to leave unchanged.

Return type:

dict

Returns:

Response Syntax

{
    'name': 'string',
    'type': 'USER'|'MANAGED',
    'description': 'string',
    'definition': 'string',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'arn': 'string'
}

Response Structure

  • (dict) –

    • name (string) –

      The name of the view.

    • type (string) –

      The ownership category of the view.

    • description (string) –

      The description of the view.

    • definition (string) –

      The SQL query that defines the view.

    • createdAt (datetime) –

      The timestamp when the view was created.

    • updatedAt (datetime) –

      The timestamp when the view was last updated.

    • arn (string) –

      The ARN of the view.

Exceptions