Skip to content

Latest commit

 

History

History
180 lines (148 loc) · 3.32 KB

azurerm_logic_app_action_http.md

File metadata and controls

180 lines (148 loc) · 3.32 KB

azurerm_logic_app_action_http

back

Index

Terraform

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

top

Example Usage

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

  # body - (optional) is a type of string
  body = null
  # headers - (optional) is a type of map of string
  headers = {}
  # logic_app_id - (required) is a type of string
  logic_app_id = null
  # method - (required) is a type of string
  method = null
  # name - (required) is a type of string
  name = null
  # uri - (required) is a type of string
  uri = null

  run_after = [{
    action_name   = null
    action_result = null
  }]

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

top

Variables

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

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

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

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

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

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

variable "run_after" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      action_name   = string
      action_result = 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_action_http" "this" {
  # body - (optional) is a type of string
  body = var.body
  # headers - (optional) is a type of map of string
  headers = var.headers
  # logic_app_id - (required) is a type of string
  logic_app_id = var.logic_app_id
  # method - (required) is a type of string
  method = var.method
  # name - (required) is a type of string
  name = var.name
  # uri - (required) is a type of string
  uri = var.uri

  dynamic "run_after" {
    for_each = var.run_after
    content {
      # action_name - (required) is a type of string
      action_name = run_after.value["action_name"]
      # action_result - (required) is a type of string
      action_result = run_after.value["action_result"]
    }
  }

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

output "this" {
  value = azurerm_logic_app_action_http.this
}

top