tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_fnf_schedule

back

Index

Terraform

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

top

Example Usage

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

  # cron_expression - (required) is a type of string
  cron_expression = null
  # description - (optional) is a type of string
  description = null
  # enable - (optional) is a type of bool
  enable = null
  # flow_name - (required) is a type of string
  flow_name = null
  # payload - (optional) is a type of string
  payload = null
  # schedule_name - (required) is a type of string
  schedule_name = null

  timeouts = [{
    create = null
    delete = null
    update = null
  }]
}

top

Variables

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

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

variable "enable" {
  description = "(optional)"
  type        = bool
  default     = null
}

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

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "alicloud_fnf_schedule" "this" {
  # cron_expression - (required) is a type of string
  cron_expression = var.cron_expression
  # description - (optional) is a type of string
  description = var.description
  # enable - (optional) is a type of bool
  enable = var.enable
  # flow_name - (required) is a type of string
  flow_name = var.flow_name
  # payload - (optional) is a type of string
  payload = var.payload
  # schedule_name - (required) is a type of string
  schedule_name = var.schedule_name

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

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

output "last_modified_time" {
  description = "returns a string"
  value       = alicloud_fnf_schedule.this.last_modified_time
}

output "schedule_id" {
  description = "returns a string"
  value       = alicloud_fnf_schedule.this.schedule_id
}

output "this" {
  value = alicloud_fnf_schedule.this
}

top