Skip to content

Latest commit

 

History

History
150 lines (120 loc) · 2.61 KB

alicloud_fnf_flow.md

File metadata and controls

150 lines (120 loc) · 2.61 KB

alicloud_fnf_flow

back

Index

Terraform

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

top

Example Usage

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

Variables

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

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

Outputs

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