back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_sag_acl_rule" {
source = "./modules/alicloud/r/alicloud_sag_acl_rule"
# acl_id - (required) is a type of string
acl_id = null
# description - (optional) is a type of string
description = null
# dest_cidr - (required) is a type of string
dest_cidr = null
# dest_port_range - (required) is a type of string
dest_port_range = null
# direction - (required) is a type of string
direction = null
# ip_protocol - (required) is a type of string
ip_protocol = null
# policy - (required) is a type of string
policy = null
# priority - (optional) is a type of number
priority = null
# source_cidr - (required) is a type of string
source_cidr = null
# source_port_range - (required) is a type of string
source_port_range = null
}
top
variable "acl_id" {
description = "(required)"
type = string
}
variable "description" {
description = "(optional)"
type = string
default = null
}
variable "dest_cidr" {
description = "(required)"
type = string
}
variable "dest_port_range" {
description = "(required)"
type = string
}
variable "direction" {
description = "(required)"
type = string
}
variable "ip_protocol" {
description = "(required)"
type = string
}
variable "policy" {
description = "(required)"
type = string
}
variable "priority" {
description = "(optional)"
type = number
default = null
}
variable "source_cidr" {
description = "(required)"
type = string
}
variable "source_port_range" {
description = "(required)"
type = string
}
top
resource "alicloud_sag_acl_rule" "this" {
# acl_id - (required) is a type of string
acl_id = var.acl_id
# description - (optional) is a type of string
description = var.description
# dest_cidr - (required) is a type of string
dest_cidr = var.dest_cidr
# dest_port_range - (required) is a type of string
dest_port_range = var.dest_port_range
# direction - (required) is a type of string
direction = var.direction
# ip_protocol - (required) is a type of string
ip_protocol = var.ip_protocol
# policy - (required) is a type of string
policy = var.policy
# priority - (optional) is a type of number
priority = var.priority
# source_cidr - (required) is a type of string
source_cidr = var.source_cidr
# source_port_range - (required) is a type of string
source_port_range = var.source_port_range
}
top
output "id" {
description = "returns a string"
value = alicloud_sag_acl_rule.this.id
}
output "this" {
value = alicloud_sag_acl_rule.this
}
top