Skip to content

Latest commit

 

History

History
189 lines (156 loc) · 3.78 KB

File metadata and controls

189 lines (156 loc) · 3.78 KB

azurerm_logic_app_trigger_recurrence

back

Index

Terraform

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

top

Example Usage

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

  # frequency - (required) is a type of string
  frequency = null
  # interval - (required) is a type of number
  interval = null
  # logic_app_id - (required) is a type of string
  logic_app_id = null
  # name - (required) is a type of string
  name = null
  # start_time - (optional) is a type of string
  start_time = null
  # time_zone - (optional) is a type of string
  time_zone = null

  schedule = [{
    at_these_hours   = []
    at_these_minutes = []
    on_these_days    = []
  }]

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

top

Variables

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

variable "interval" {
  description = "(required)"
  type        = number
}

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

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

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

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

variable "schedule" {
  description = "nested block: NestingList, min items: 0, max items: 1"
  type = set(object(
    {
      at_these_hours   = set(number)
      at_these_minutes = set(number)
      on_these_days    = set(string)
    }
  ))
  default = []
}

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_recurrence" "this" {
  # frequency - (required) is a type of string
  frequency = var.frequency
  # interval - (required) is a type of number
  interval = var.interval
  # 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
  # start_time - (optional) is a type of string
  start_time = var.start_time
  # time_zone - (optional) is a type of string
  time_zone = var.time_zone

  dynamic "schedule" {
    for_each = var.schedule
    content {
      # at_these_hours - (optional) is a type of set of number
      at_these_hours = schedule.value["at_these_hours"]
      # at_these_minutes - (optional) is a type of set of number
      at_these_minutes = schedule.value["at_these_minutes"]
      # on_these_days - (optional) is a type of set of string
      on_these_days = schedule.value["on_these_days"]
    }
  }

  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_recurrence.this.id
}

output "time_zone" {
  description = "returns a string"
  value       = azurerm_logic_app_trigger_recurrence.this.time_zone
}

output "this" {
  value = azurerm_logic_app_trigger_recurrence.this
}

top