Skip to content

Latest commit

 

History

History
148 lines (119 loc) · 2.75 KB

oci_datascience_model_deployments.md

File metadata and controls

148 lines (119 loc) · 2.75 KB

oci_datascience_model_deployments

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_datascience_model_deployments" {
  source = "./modules/oci/d/oci_datascience_model_deployments"

  # compartment_id - (required) is a type of string
  compartment_id = null
  # created_by - (optional) is a type of string
  created_by = null
  # display_name - (optional) is a type of string
  display_name = null
  # project_id - (optional) is a type of string
  project_id = null
  # state - (optional) is a type of string
  state = null

  filter = [{
    name   = null
    regex  = null
    values = []
  }]
}

top

Variables

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

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

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

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

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

variable "filter" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      name   = string
      regex  = bool
      values = list(string)
    }
  ))
  default = []
}

top

Datasource

data "oci_datascience_model_deployments" "this" {
  # compartment_id - (required) is a type of string
  compartment_id = var.compartment_id
  # created_by - (optional) is a type of string
  created_by = var.created_by
  # display_name - (optional) is a type of string
  display_name = var.display_name
  # project_id - (optional) is a type of string
  project_id = var.project_id
  # state - (optional) is a type of string
  state = var.state

  dynamic "filter" {
    for_each = var.filter
    content {
      # name - (required) is a type of string
      name = filter.value["name"]
      # regex - (optional) is a type of bool
      regex = filter.value["regex"]
      # values - (required) is a type of list of string
      values = filter.value["values"]
    }
  }

}

top

Outputs

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

output "model_deployments" {
  description = "returns a list of object"
  value       = data.oci_datascience_model_deployments.this.model_deployments
}

output "this" {
  value = oci_datascience_model_deployments.this
}

top