文档

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.

-> NOTE: Available since v1.212.0.

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:

  • description - (Optional) Query Description.
  • expression - (Required) Query Expression.
  • saved_query_name - (Required) The name of the resource.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.
  • create_time - The creation time of the resource.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Saved Query.
  • delete - (Defaults to 5 mins) Used when delete the Saved Query.
  • update - (Defaults to 5 mins) Used when update the Saved Query.

Import

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

$ terraform import alicloud_resource_manager_saved_query.example <id>

  • 本页导读 (0)
文档反馈