back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_fnf_flow" {
source = "./modules/alicloud/r/alicloud_fnf_flow"
# definition - (required) is a type of string
definition = null
# description - (required) is a type of string
description = null
# name - (required) is a type of string
name = null
# role_arn - (optional) is a type of string
role_arn = null
# type - (required) is a type of string
type = null
timeouts = [{
create = null
delete = null
update = null
}]
}
top
variable "definition" {
description = "(required)"
type = string
}
variable "description" {
description = "(required)"
type = string
}
variable "name" {
description = "(required)"
type = string
}
variable "role_arn" {
description = "(optional)"
type = string
default = null
}
variable "type" {
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 "alicloud_fnf_flow" "this" {
# definition - (required) is a type of string
definition = var.definition
# description - (required) is a type of string
description = var.description
# name - (required) is a type of string
name = var.name
# role_arn - (optional) is a type of string
role_arn = var.role_arn
# type - (required) is a type of string
type = var.type
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
output "flow_id" {
description = "returns a string"
value = alicloud_fnf_flow.this.flow_id
}
output "id" {
description = "returns a string"
value = alicloud_fnf_flow.this.id
}
output "last_modified_time" {
description = "returns a string"
value = alicloud_fnf_flow.this.last_modified_time
}
output "this" {
value = alicloud_fnf_flow.this
}
top