日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

alicloud_oos_template

更新時間:

Provides a OOS Template resource. For information about Alicloud OOS Template and how to use it, see What is Resource Alicloud OOS Template.

-> NOTE: Available in 1.92.0+.

Example Usage


resource "alicloud_oos_template" "example" {
  content       = <<EOF
  {
    "FormatVersion": "OOS-2019-06-01",
    "Description": "Update Describe instances of given status",
    "Parameters":{
      "Status":{
        "Type": "String",
        "Description": "(Required) The status of the Ecs instance."
      }
    },
    "Tasks": [
      {
        "Properties" :{
          "Parameters":{
            "Status": "{{ Status }}"
          },
          "API": "DescribeInstances",
          "Service": "Ecs"
        },
        "Name": "foo",
        "Action": "ACS::ExecuteApi"
      }]
  }
  EOF
  template_name = "test-name"
  version_name  = "test"
  tags = {
    "Created" = "TF",
    "For"     = "acceptance Test"
  }
}

Argument Reference

The following arguments are supported:

  • content - (Required) The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
  • auto_delete_executions - (Optional) When deleting a template, whether to delete its related executions. Default to false.
  • template_name - (Required, ForceNew) The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
  • version_name - (Optional) The name of template version.
  • resource_group_id (Optional, Computed, Available in 1.177.0+) The ID of resource group which the template belongs.
  • tags - (Optional) A mapping of tags to assign to the resource.

Attributes Reference

The following attributes are exported:

  • id - The id of the resource. It same with template_name.
  • created_by - The creator of the template.
  • created_date - The time when the template is created.
  • description - The description of the template.
  • has_trigger - Is it triggered successfully.
  • share_type - The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
  • template_format - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
  • template_id - The id of OOS Template.
  • template_type - The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
  • template_version - The version of OOS Template.
  • updated_by - The user who updated the template.
  • updated_date - The time when the template was updated.

Import

OOS Template can be imported using the id or template_name, e.g.

$ terraform import alicloud_oos_template.example template_name