Skip to content

Latest commit

 

History

History
95 lines (72 loc) · 1.75 KB

alicloud_adb_backup_policy.md

File metadata and controls

95 lines (72 loc) · 1.75 KB

alicloud_adb_backup_policy

back

Index

Terraform

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

top

Example Usage

module "alicloud_adb_backup_policy" {
  source = "./modules/alicloud/r/alicloud_adb_backup_policy"

  # db_cluster_id - (required) is a type of string
  db_cluster_id = null
  # preferred_backup_period - (required) is a type of set of string
  preferred_backup_period = []
  # preferred_backup_time - (required) is a type of string
  preferred_backup_time = null
}

top

Variables

variable "db_cluster_id" {
  description = "(required)"
  type        = string
}

variable "preferred_backup_period" {
  description = "(required)"
  type        = set(string)
}

variable "preferred_backup_time" {
  description = "(required)"
  type        = string
}

top

Resource

resource "alicloud_adb_backup_policy" "this" {
  # db_cluster_id - (required) is a type of string
  db_cluster_id = var.db_cluster_id
  # preferred_backup_period - (required) is a type of set of string
  preferred_backup_period = var.preferred_backup_period
  # preferred_backup_time - (required) is a type of string
  preferred_backup_time = var.preferred_backup_time
}

top

Outputs

output "backup_retention_period" {
  description = "returns a string"
  value       = alicloud_adb_backup_policy.this.backup_retention_period
}

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

output "this" {
  value = alicloud_adb_backup_policy.this
}

top