alicloud_resource_manager_saved_query

Provides a Resource Manager Saved Query resource. ResourceCenter Saved Query.

For information about Resource Manager Saved Query and how to use it, see What is Saved Query.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

provider "alicloud" {
  region = "cn-hangzhou"
}

resource "alicloud_resource_manager_saved_query" "default" {
  description      = var.name
  expression       = "select * from resources limit 1;"
  saved_query_name = var.name

}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Resource Manager Saved Query can be imported using the id, e.g.

$ terraform import alicloud_resource_manager_saved_query.example <id>