Skip to content

Latest commit

 

History

History
125 lines (99 loc) · 2.15 KB

azurerm_logic_app_trigger_custom.md

File metadata and controls

125 lines (99 loc) · 2.15 KB

azurerm_logic_app_trigger_custom

back

Index

Terraform

terraform {
  required_providers {
    azurerm = ">= 2.54.0"
  }
}

top

Example Usage

module "azurerm_logic_app_trigger_custom" {
  source = "./modules/azurerm/r/azurerm_logic_app_trigger_custom"

  # body - (required) is a type of string
  body = null
  # logic_app_id - (required) is a type of string
  logic_app_id = null
  # name - (required) is a type of string
  name = null

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

top

Variables

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

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

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

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

top

Resource

resource "azurerm_logic_app_trigger_custom" "this" {
  # body - (required) is a type of string
  body = var.body
  # logic_app_id - (required) is a type of string
  logic_app_id = var.logic_app_id
  # name - (required) is a type of string
  name = var.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"]
      # read - (optional) is a type of string
      read = timeouts.value["read"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

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

output "this" {
  value = azurerm_logic_app_trigger_custom.this
}

top