alicloud_oos_parameter
更新时间:
Provides a OOS Parameter resource.
For information about OOS Parameter and how to use it, see What is Parameter.
-> NOTE: Available in v1.147.0+.
Example Usage
Basic Usage
data "alicloud_resource_manager_resource_groups" "default" {}
resource "alicloud_oos_parameter" "example" {
parameter_name = "my-Parameter"
type = "String"
value = "example_value"
description = "example_value"
tags = {
Created = "TF"
For = "OosParameter"
}
resource_group_id = data.alicloud_resource_manager_resource_groups.default.groups.0.id
}
Argument Reference
The following arguments are supported:
constraints
- (Optional, ForceNew) The constraints of the common parameter. This value follows the json format. By default, this parameter is null. Valid values:AllowedValues
: The value that is allowed for the common parameter. It must be an array string.AllowedPattern
: The pattern that is allowed for the common parameter. It must be a regular expression.MinLength
: The minimum length of the common parameter.MaxLength
: The maximum length of the common parameter.
description
- (Optional, Computed) The description of the common parameter. The description must be1
to200
characters in length.parameter_name
- (Required, ForceNew) The name of the common parameter. The name must be2
to180
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/) and underscores (_). It cannot start withALIYUN
,ACS
,ALIBABA
,ALICLOUD
, orOOS
.resource_group_id
- (Optional, Computed) The ID of the Resource Group.type
- (Required, ForceNew) The data type of the common parameter. Valid values:String
andStringList
.value
- (Required) The value of the common parameter. The value must be1
to4096
characters in length.tags
- (Optional) A mapping of tags to assign to the resource.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Parameter. Its value is same asparameter_name
.
Import
OOS Parameter can be imported using the id, e.g.
$ terraform import alicloud_oos_parameter.example <parameter_name>
文档内容是否对您有帮助?