Skip to content

Latest commit

 

History

History
128 lines (101 loc) · 2.36 KB

alicloud_ecs_auto_snapshot_policies.md

File metadata and controls

128 lines (101 loc) · 2.36 KB

alicloud_ecs_auto_snapshot_policies

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_ecs_auto_snapshot_policies" {
  source = "./modules/alicloud/d/alicloud_ecs_auto_snapshot_policies"

  # ids - (optional) is a type of list of string
  ids = []
  # name_regex - (optional) is a type of string
  name_regex = null
  # output_file - (optional) is a type of string
  output_file = null
  # status - (optional) is a type of string
  status = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

variable "ids" {
  description = "(optional)"
  type        = list(string)
  default     = null
}

variable "name_regex" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "output_file" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "status" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

top

Datasource

data "alicloud_ecs_auto_snapshot_policies" "this" {
  # ids - (optional) is a type of list of string
  ids = var.ids
  # name_regex - (optional) is a type of string
  name_regex = var.name_regex
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # status - (optional) is a type of string
  status = var.status
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.alicloud_ecs_auto_snapshot_policies.this.id
}

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_ecs_auto_snapshot_policies.this.ids
}

output "names" {
  description = "returns a list of string"
  value       = data.alicloud_ecs_auto_snapshot_policies.this.names
}

output "policies" {
  description = "returns a list of object"
  value       = data.alicloud_ecs_auto_snapshot_policies.this.policies
}

output "this" {
  value = alicloud_ecs_auto_snapshot_policies.this
}

top