Skip to content

Latest commit

 

History

History
173 lines (141 loc) · 3.59 KB

azuredevops_serviceendpoint_runpipeline.md

File metadata and controls

173 lines (141 loc) · 3.59 KB

azuredevops_serviceendpoint_runpipeline

back

Index

Terraform

terraform {
  required_providers {
    azuredevops = ">= 0.1.3"
  }
}

top

Example Usage

module "azuredevops_serviceendpoint_runpipeline" {
  source = "./modules/azuredevops/r/azuredevops_serviceendpoint_runpipeline"

  # authorization - (optional) is a type of map of string
  authorization = {}
  # description - (optional) is a type of string
  description = null
  # organization_name - (required) is a type of string
  organization_name = null
  # project_id - (required) is a type of string
  project_id = null
  # service_endpoint_name - (required) is a type of string
  service_endpoint_name = null

  auth_personal = [{
    personal_access_token      = null
    personal_access_token_hash = null
  }]

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

top

Variables

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

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

variable "organization_name" {
  description = "(required) - Azure DevOps organization name"
  type        = string
}

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

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

variable "auth_personal" {
  description = "nested block: NestingSet, min items: 1, max items: 1"
  type = set(object(
    {
      personal_access_token      = string
      personal_access_token_hash = 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 "azuredevops_serviceendpoint_runpipeline" "this" {
  # authorization - (optional) is a type of map of string
  authorization = var.authorization
  # description - (optional) is a type of string
  description = var.description
  # organization_name - (required) is a type of string
  organization_name = var.organization_name
  # project_id - (required) is a type of string
  project_id = var.project_id
  # service_endpoint_name - (required) is a type of string
  service_endpoint_name = var.service_endpoint_name

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

  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 "authorization" {
  description = "returns a map of string"
  value       = azuredevops_serviceendpoint_runpipeline.this.authorization
}

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

output "this" {
  value = azuredevops_serviceendpoint_runpipeline.this
}

top