back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_oos_execution" {
source = "./modules/alicloud/r/alicloud_oos_execution"
# description - (optional) is a type of string
description = null
# loop_mode - (optional) is a type of string
loop_mode = null
# mode - (optional) is a type of string
mode = null
# parameters - (optional) is a type of string
parameters = null
# parent_execution_id - (optional) is a type of string
parent_execution_id = null
# safety_check - (optional) is a type of string
safety_check = null
# template_content - (optional) is a type of string
template_content = null
# template_name - (required) is a type of string
template_name = null
# template_version - (optional) is a type of string
template_version = null
timeouts = [{
create = null
}]
}
top
variable "description" {
description = "(optional)"
type = string
default = null
}
variable "loop_mode" {
description = "(optional)"
type = string
default = null
}
variable "mode" {
description = "(optional)"
type = string
default = null
}
variable "parameters" {
description = "(optional)"
type = string
default = null
}
variable "parent_execution_id" {
description = "(optional)"
type = string
default = null
}
variable "safety_check" {
description = "(optional)"
type = string
default = null
}
variable "template_content" {
description = "(optional)"
type = string
default = null
}
variable "template_name" {
description = "(required)"
type = string
}
variable "template_version" {
description = "(optional)"
type = string
default = null
}
variable "timeouts" {
description = "nested block: NestingSingle, min items: 0, max items: 0"
type = set(object(
{
create = string
}
))
default = []
}
top
resource "alicloud_oos_execution" "this" {
# description - (optional) is a type of string
description = var.description
# loop_mode - (optional) is a type of string
loop_mode = var.loop_mode
# mode - (optional) is a type of string
mode = var.mode
# parameters - (optional) is a type of string
parameters = var.parameters
# parent_execution_id - (optional) is a type of string
parent_execution_id = var.parent_execution_id
# safety_check - (optional) is a type of string
safety_check = var.safety_check
# template_content - (optional) is a type of string
template_content = var.template_content
# template_name - (required) is a type of string
template_name = var.template_name
# template_version - (optional) is a type of string
template_version = var.template_version
dynamic "timeouts" {
for_each = var.timeouts
content {
# create - (optional) is a type of string
create = timeouts.value["create"]
}
}
}
top
output "counters" {
description = "returns a string"
value = alicloud_oos_execution.this.counters
}
output "create_date" {
description = "returns a string"
value = alicloud_oos_execution.this.create_date
}
output "end_date" {
description = "returns a string"
value = alicloud_oos_execution.this.end_date
}
output "executed_by" {
description = "returns a string"
value = alicloud_oos_execution.this.executed_by
}
output "id" {
description = "returns a string"
value = alicloud_oos_execution.this.id
}
output "is_parent" {
description = "returns a bool"
value = alicloud_oos_execution.this.is_parent
}
output "outputs" {
description = "returns a string"
value = alicloud_oos_execution.this.outputs
}
output "ram_role" {
description = "returns a string"
value = alicloud_oos_execution.this.ram_role
}
output "start_date" {
description = "returns a string"
value = alicloud_oos_execution.this.start_date
}
output "status" {
description = "returns a string"
value = alicloud_oos_execution.this.status
}
output "status_message" {
description = "returns a string"
value = alicloud_oos_execution.this.status_message
}
output "template_id" {
description = "returns a string"
value = alicloud_oos_execution.this.template_id
}
output "template_version" {
description = "returns a string"
value = alicloud_oos_execution.this.template_version
}
output "update_date" {
description = "returns a string"
value = alicloud_oos_execution.this.update_date
}
output "this" {
value = alicloud_oos_execution.this
}
top