All Products
Search
Document Center

Resource Orchestration Service:AssociationProperty and AssociationPropertyMetadata

Last Updated:Feb 29, 2024

When you create a stack in the Resource Orchestration Service (ROS) console to manage resources, you may need to open multiple consoles to query resource parameters. In the Parameters section of a template, you can specify AssociationProperty to query the resources in a specified region and specify AssociationPropertyMetadata to add filter conditions for the parameters. This way, the ROS console can display a set of valid values for a specific parameter, and you can select a value based on your business requirements.

Parameters

You can specify one of the following types of values for parameters in AssociationPropertyMetadata:

  • A literal value. For example, if you set AssociationPropertyMetadata to "RegionId": "cn-hangzhou", ROS resolves this value as the literal value cn-hangzhou.

  • A variable. Specify a variable in the ${ParameterKey} format. For example, if you set AssociationPropertyMetadata to "VpcId": "${VpcId}", ROS resolves this value as a variable that varies based on the value of the VpcId parameter in the template.

    Note
    • If you want to specify a variable in the ${ParameterKey} format as a literal value, you can add an exclamation point (!) to ${ParameterKey} to use the ${!ParameterKey} format. For example, if you set a value to ${!Literal}, ROS resolves this value as ${Literal}.

    • If you want to specify a variable for a parameter in a Terraform template, add a dollar sign ($) to ${ParameterKey} to use the $${ParameterKey} format. For example, if you set AssociationPropertyMetadata to "VpcId": "$${VpcId}", ROS resolves this value as a variable that varies based on the value of the VpcId parameter in the Terraform template.

The following table describes the relationship between the values of AssociationProperty and the parameters in AssociationPropertyMetadata in ROS.

Value of AssociationProperty

Description

Parameter in AssociationPropertyMetadata

Password

The password.

None.

TextArea

The rich text.

None.

Json

The JSON object.

None.

CommaDelimitedList

The array in which elements are separated by commas (,).

None.

Code

The code.

None.

FileContent

The content that is read from a local file.

AcceptFileSuffixes: the formats of files that you can upload. Separate multiple file formats with commas (,).

Cron

The CRON expression, which is a formatted string and specifies the execution time of a scheduled task.

None.

ChargeType

The billing method. Valid values:

  • pay-as-you-go

  • subscription

None.

Auto

ROS automatically generates parameters, such as AssociationProperty and AssociationPropertyMetadata, based on the original data structure of Terraform.

Note

This value takes effect only for the JSON parameters in Terraform templates.

Overwrite: (Optional) appends values to or overwrites the declarations of nested parameters in the inner level.

The value of Overwrite is of the dictionary data type and consists of key-value pairs.

  • Key

    The path of nested parameters in the inner level. You must specify a path based on the following rules:

    • To specify an element in a list or set, add an asterisk (*).

    • To specify an element in an object, add the name of the element.

    • Separate multiple elements in a path with periods (.).

    • Asterisks (*) at the start of a path and in the middle of a path can be omitted. One or more asterisks (*) at the end of a path must be retained.

    Example:

    // The path of name is name. 
    // The path of address is address. 
    variable "user_information" {
      type = object({
        name    = string
        address = string
      })
    }
    
    // The path of an element in region_ids is *. 
    variable "region_ids" {
      type    = list(string)
    }
    
    // The path of internal is *.internal, which can be abbreviated as internal. 
    // The path of external is *.external, which can be abbreviated as external. 
    // The path of protocol is *.protocol, which can be abbreviated as protocol. 
    variable "docker_ports" {
      type = list(object({
        internal = number
        external = number
        protocol = string
      }))
    }
    
    // The path of b is *.b, which can be abbreviated as b. 
    // The path of an element in b is *.b.*, which can be abbreviated as b.*.
    // The path of c is *.c, which can be abbreviated as c. 
    // The path of d is *.c.*.d, which can be abbreviated as c.d. 
    // The path of an element in d is *.c.*.d.*, which can be abbreviated as c.d.*. 
    // The path of e is *.e, which can be abbreviated as e. 
    // The path of an element in e is *.e.*, which can be abbreviated as e.*. 
    // The path of an element in e is *.e.*.*, which can be abbreviated as e.*.*. You must retain the two asterisks (*) at the end of the path. 
    // The path of f is *.f, which can be abbreviated as f. 
    // The path of g is *.f.*.*.g, which can be abbreviated as f.g. 
    // The path of an element in g is *.f.*.*.g.*, which can be abbreviated as f.g.*. 
    variable "complex_type_demo" {
      type = list(object({
        b = list(string)
        c = list(object({
          d = list(string)
        }))
        e = list(list(string))
        f = list(list(object({
          g = list(string)
        })))
      }))
    }
  • Value

    The value that you want to append to the declaration of a parameter. For more information, see Overview.

List[Parameter]

The list of parameters. The ROS console displays the values of a parameter only after you click the relevant button.

This value takes effect only for JSON parameters.

Parameter: the declarations of parameters.

For more information, see Overview.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionIds": {
          "Label": {
            "en": "ECS Region Ids",
             
          },
          "MaxLength": 100,
          "MinLength": 1,
          "Type": "Json",
          "AssociationProperty": "List[Parameter]",
          "AssociationPropertyMetadata": {
            "Parameter": {
              "Type": "String",
              "AssociationProperty": "ALIYUN::ECS::RegionId",
              "MinLength": 1,
              "MaxLength": 64
            }
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionIds:
        Label:
          en: ECS Region Ids
           
        MaxLength: 100
        MinLength: 1
        Type: Json
        AssociationProperty: List[Parameter]
        AssociationPropertyMetadata:
          Parameter:
            Type: String
            AssociationProperty: ALIYUN::ECS::RegionId
            MinLength: 1
            MaxLength: 64
  • Description

    In this example, AssociationProperty is set to List[Parameter] and AssociationPropertyMetadata is set to Parameter. This way, you can add a list of Elastic Compute Service (ECS) region IDs in the ROS console.

Null

The ROS console displays the settings of a parameter only after you click the relevant button.

This value takes effect only for JSON parameters.

Note

If you specify AssociationPropertyMetadata and do not specify AssociationProperty for a parameter, the ROS console displays the parameter settings only after you click the relevant button.

  • Parameters: the declarations of parameter sets. The value of Parameters is of the dictionary data type and consists of key-value pairs.

    • Key: the parameter name.

    • Value: the parameter value. For more information, see Overview.

    Example:

    • Sample code

      JSON format:

      {
        "ROSTemplateFormatVersion": "2015-09-01",
        "Parameters": {
          "RenameECS": {
            "Label": {
              "en": "Rename ECS",
               
            },
            "MaxLength": 100,
            "MinLength": 1,
            "Type": "Json",
            "AssociationPropertyMetadata": {
              "Parameters": {
                "InstanceId": {
                  "Type": "String",
                  "Label": {
                    "en": "ECS Instance Id",
                     
                  },
                  "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
                  "MinLength": 1,
                  "MaxLength": 64
                },
                "Name": {
                  "Type": "String",
                  "Label": {
                    "en": "New Name",
                     
                  },
                  "MinLength": 1
                }
              }
            }
          }
        }
      }

      YAML format:

      ROSTemplateFormatVersion: '2015-09-01'
      Parameters:
        RenameECS:
          Label:
            en: Rename ECS
             
          MaxLength: 100
          MinLength: 1
          Type: Json
          AssociationPropertyMetadata:
            Parameters:
              InstanceId:
                Type: String
                Label:
                  en: ECS Instance Id
                   
                AssociationProperty: ALIYUN::ECS::Instance::InstanceId
                MinLength: 1
                MaxLength: 64
              Name:
                Type: String
                Label:
                  en: New Name
                   
                MinLength: 1
    • Description

      In this example, AssociationProperty is not specified and AssociationPropertyMetadata is set to Parameters. This way, after you click Select Instances to select an ECS instance ID in the ROS console, a dialog box that prompts you to configure relevant parameters appears.

  • Metadata: The value of Metadata is of the dictionary data type. For more information, see Metadata.

Note

You can use Metadata together with List[Parameter] to nest parameters. No limit is imposed on nesting levels.

List[Parameters]

The list of parameter sets. The parameter sets are displayed in a table in the ROS console.

This value takes effect only for JSON parameters.

  • Parameters: (Required) the declarations of parameter sets. The value of Parameters is of the dictionary data type and consists of key-value pairs.

    • Key: the parameter name.

    • Value: the parameter value. For more information, see Overview.

      Note

      Parameters of the basic data type can be easily parsed in a table. We recommend that you do not nest parameters because the parameters are displayed in a table.

    Example:

    • Sample code

      JSON format:

      {
        "ROSTemplateFormatVersion": "2015-09-01",
        "Parameters": {
          "RenameECS": {
            "Label": {
              "en": "Rename ECS",
               
            },
            "MaxLength": 100,
            "MinLength": 1,
            "Type": "Json",
            "AssociationProperty": "List[Parameters]",
            "AssociationPropertyMetadata": {
              "Parameters": {
                "InstanceId": {
                  "Type": "String",
                  "Label": {
                    "en": "ECS Instance Id",
                     
                  },
                  "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
                  "MinLength": 1,
                  "MaxLength": 64
                },
                "Name": {
                  "Type": "String",
                  "Label": {
                    "en": "New Name",
                     
                  },
                  "MinLength": 1
                }
              }
            }
          }
        }
      }

      YAML format:

      ROSTemplateFormatVersion: '2015-09-01'
      Parameters:
        RenameECS:
          Label:
            en: Rename ECS
             
          MaxLength: 100
          MinLength: 1
          Type: Json
          AssociationProperty: List[Parameters]
          AssociationPropertyMetadata:
            Parameters:
              InstanceId:
                Type: String
                Label:
                  en: ECS Instance Id
                   
                AssociationProperty: ALIYUN::ECS::Instance::InstanceId
                MinLength: 1
                MaxLength: 64
              Name:
                Type: String
                Label:
                  en: New Name
                   
                MinLength: 1
    • Description

      In this example, AssociationProperty is set to List[Parameters] and AssociationPropertyMetadata is set to Parameters. This way, ECS instance IDs are displayed in a table in the ROS console.

  • ListMetadata: specifies whether to show the components of a table. The value of ListMetadata is of the dictionary data type.

    • ShowHeader: specifies whether to show the header of the table. The value of ShowHeader is of the enumerated data type. Default value: true.

    • ShowRemove: specifies whether to show the removal icon of the table. The value of ShowRemove is of the enumerated data type. Default value: true.

    • ShowAddition: specifies whether to show the Add icon of the table. The value of ShowAddition is of the enumerated data type. Default value: true.

    • Order: the order in which parameter names are displayed as column names in the table from left to right. The value of Order is of the string data type. By default, all parameter names are displayed in alphabetical order.

DateTime

The date.

  • GMTZone: the Greenwich Mean Time (GMT) time zone.

  • TimeZone: the description of the time zone.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DateTime": {
          "Type": "String",
          "AssociationProperty": "DateTime"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DateTime:
        Type: String
        AssociationProperty: DateTime
  • Description

    In the example for DateTime, AssociationProperty is set to DateTime. This way, you can specify the date.

GMTZone

The GMT time zone.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "GMTZone": {
          "Type": "String",
          "AssociationProperty": "GMTZone"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      GMTZone:
        Type: String
        AssociationProperty: GMTZone
  • Description

    In the example for GMTZone, AssociationProperty is set to GMTZone. This way, you can specify the GMT time zone.

OOSServiceRole

The Resource Access Management (RAM) role of CloudOps Orchestration Service (OOS).

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "OosServiceRole": {
          "Type": "String",
          "AssociationProperty": "OOSServiceRole",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      OosServiceRole:
        Type: String
        AssociationProperty: OOSServiceRole
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for OosServiceRole, AssociationProperty is set to OOSServiceRole. This way, you can specify the RAM role of OOS.

RateControl

The rate control for the execution in OOS.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RateControl": {
          "Type": "String",
          "AssociationProperty": "RateControl"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RateControl:
        Type: String
        AssociationProperty: RateControl
  • Description

    In the example for RateControl, AssociationProperty is set to RateControl. This way, you can configure the rate control for the OOS execution.

Tags

The tags.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ResourceType: the resource type that is used to group resources. Default value: ALIYUN::ECS::INSTANCE.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "Tags": {
          "Type": "String",
          "AssociationProperty": "Tags",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ResourceType": "ALIYUN::ECS::INSTANCE"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      Tags:
        Type: String
        AssociationProperty: Tags
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ResourceType: ALIYUN::ECS::INSTANCE
  • Description

    In the example for Tags, AssociationProperty is set to Tags, and RegionId and ResourceType are specified in AssociationPropertyMetadata. This way, you can query the custom tags of the ECS instance.

Targets

The ECS instances that match a filter condition. You can select ECS instances based on a filter condition, such as an instance ID, a tag, or a resource group.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "Targets": {
          "Type": "String",
          "AssociationProperty": "Targets",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      Targets:
        Type: String
        AssociationProperty: Targets
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for Targets, AssociationProperty is set to Targets, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ECS instances that match the filter condition.

TimeTriggerWeekly

The time picker that allows you to specify the interval by weekday.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TimeTriggerWeekly": {
          "Type": "String",
          "AssociationProperty": "TimeTriggerWeekly"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TimeTriggerWeekly:
        Type: String
        AssociationProperty: TimeTriggerWeekly
  • Description

    In the example for TimeTriggerWeekly, AssociationProperty is set to TimeTriggerWeekly. This way, you can specify the interval by weekday.

TimeZone

The time zone.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TimeZone": {
          "Type": "String",
          "AssociationProperty": "TimeZone"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TimeZone:
        Type: String
        AssociationProperty: TimeZone
  • Description

    In the example for TimeZone, AssociationProperty is set to TimeZone. This way, you can specify the time zone.

ALIYUN::ECS::RegionId

The region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
  • Description

    In the example for RegionId, AssociationProperty is set to ALIYUN::ECS::RegionId. This way, you can query available regions.

ZoneId

The zone ID.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ShowRandom: shows the random option that is assigned by the system.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for ZoneId, AssociationProperty is set to ZoneId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the zones in the specified region.

ALIYUN::ECS::Instance::InstanceId

The ID of the ECS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • InstanceType: the instance specifications.

  • InstanceTypeFamily: the instance family.

  • Platform: the OS.

  • OSType: the OS type.

  • Status: the status of the instance.

  • NetworkType: the network type of the instance.

  • DisabledNetworkType: disables the network type of the instance.

  • ShowNetworkType: shows the network type of the instance.

  • InternetChargeType: the metering method for public bandwidth.

  • DisabledInternetChargeType: disables the metering method for public bandwidth.

  • ShowInternetChargeType: shows the metering method for public bandwidth.

  • ChargeType: the billing method of the instance.

  • DisabledChargeType: disables the billing method of the instance.

  • ShowChargeType: shows the billing method of the instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "InstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for InstanceId, AssociationProperty is set to ALIYUN::ECS::Instance::InstanceId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the existing ECS instances in the specified region.

ALIYUN::ECS::Instance::Password

The component of the password of the ECS instance.

Note

The password must be 8 to 30 characters in length. The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "password": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::Password"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      password:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::Password
  • Description

    In the example for password, AssociationProperty is set to ALIYUN::ECS::Instance::Password. This way, you can impose limits on the password of the ECS instance by using the component.

    Limits: The password must be 8 to 30 characters in length. The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

ALIYUN::ECS::Instance::AttributeSelector

The property selector of the ECS instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AttributeSelector": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::AttributeSelector"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AttributeSelector:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::AttributeSelector
  • Description

    In the example for AttributeSelector, AssociationProperty is set to ALIYUN::ECS::Instance::AttributeSelector. This way, you can query the property selector of the ECS instance.

ALIYUN::ECS::Instance::InstancePropertyEditor

The property editor of the ECS instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstancePropertyEditor": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstancePropertyEditor"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      InstancePropertyEditor:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstancePropertyEditor
  • Description

    In the example for InstancePropertyEditor, AssociationProperty is set to ALIYUN::ECS::Instance::InstancePropertyEditor. This way, you can query the property editor of the ECS instance.

ALIYUN::ECS::Instance::MaxBandwidthIn

The maximum inbound public bandwidth of the ECS instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "MaxBandwidthIn": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::MaxBandwidthIn"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      MaxBandwidthIn:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::MaxBandwidthIn
  • Description

    In the example for MaxBandwidthIn, AssociationProperty is set to ALIYUN::ECS::Instance::MaxBandwidthIn. This way, you can query the maximum inbound public bandwidth of the ECS instance.

ALIYUN::ECS::Instance::RenewPeriod

The renewal period of the ECS instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RenewPeriod": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::RenewPeriod"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RenewPeriod:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::RenewPeriod
  • Description

    In the example for RenewPeriod, AssociationProperty is set to ALIYUN::ECS::Instance::RenewPeriod. This way, you can query the renewal period of the ECS instance.

ALIYUN::ECS::Instance::StopMode

The mode in which the ECS instance is stopped.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "StopMode": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::StopMode"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      StopMode:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::StopMode
  • Description

    In the example for StopMode, AssociationProperty is set to ALIYUN::ECS::Instance::StopMode. This way, you can query the mode in which the ECS instance is stopped.

ALIYUN::ECS::InstanceType::AvailableInstanceType

The available ECS instance types.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AvailableInstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::InstanceType::AvailableInstanceType"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AvailableInstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::InstanceType::AvailableInstanceType
  • Description

    In the example for AvailableInstanceType, AssociationProperty is set to ALIYUN::ECS::InstanceType::AvailableInstanceType. This way, you can query the available ECS instance types.

ALIYUN::ECS::ManagedInstance::InstanceId

The ID of the managed ECS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • OsType: the OS type of the managed instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "InstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::ManagedInstance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        Type: String
        AssociationProperty: ALIYUN::ECS::ManagedInstance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for InstanceId, AssociationProperty is set to ALIYUN::ECS::ManagedInstance::InstanceId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the managed ECS instance in the specified region.

ALIYUN::ECS::RAM::Role

The RAM role that is assigned to the ECS instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Role": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RAM::Role"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Role:
        Type: String
        AssociationProperty: ALIYUN::ECS::RAM::Role
  • Description

    In the example for Role, AssociationProperty is set to ALIYUN::ECS::RAM::Role. This way, you can query the RAM role that is assigned to the ECS instance.

ALIYUN::ECS::RegionId::TargetRegionIds

The IDs of the destination regions of the ECS instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TargetRegionIds": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId::TargetRegionIds"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TargetRegionIds:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId::TargetRegionIds
  • Description

    In the example for TargetRegionIds, AssociationProperty is set to ALIYUN::ECS::RegionId::TargetRegionIds. This way, you can query the destination region IDs of the ECS instance.

ALIYUN::ECS::Snapshot::SnapshotId

The ID of the snapshot that is created for the disk of the ECS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • InstanceId: the ID of the ECS instance.

  • DiskId: the disk ID.

  • Status: the status of the snapshot.

  • SnapshotType: the snapshot type.

  • Category: the category of the snapshot.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DiskId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::DiskId"
        },
        "SnapshotId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Snapshot::SnapshotId",
          "AssociationPropertyMetadata": {
            "DiskId": "${DiskId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DiskId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::DiskId
      SnapshotId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Snapshot::SnapshotId
        AssociationPropertyMetadata:
          DiskId: ${DiskId}
  • Description

    In the example for SnapshotId, AssociationProperty is set to ALIYUN::ECS::Snapshot::SnapshotId. This way, you can query the ID of the snapshot that is created for the disk of the ECS instance.

ALIYUN::ECS::TAG

The tags of the ECS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ResourceType: the resource type.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "Tag": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::TAG",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      Tag:
        Type: String
        AssociationProperty: ALIYUN::ECS::TAG
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for Tag, AssociationProperty is set to ALIYUN::ECS::TAG. This way, you can query the tags of the ECS instance.

ALIYUN::ECS::VSwitch

The vSwitch.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • VpcId: the ID of the virtual private cloud (VPC).

  • InstanceType: the instance specifications.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "VSwitchId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VSwitch",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      VSwitchId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VSwitch
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Description

    In the example for VSwitchId, AssociationProperty is set to ALIYUN::ECS::VSwitch, and RegionId and ZoneId are specified in AssociationPropertyMetadata. This way, you can query the vSwitch in the specified region.

ALIYUN::RDS::Instance::InstanceId

The ID of the ApsaraDB RDS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "RdsId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Instance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      RdsId:
        Type: String
        AssociationProperty: ALIYUN::RDS::Instance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Description

    In the example for RdsId, AssociationProperty is set to ALIYUN::RDS::Instance::InstanceId, and RegionId and ZoneId are specified in AssociationPropertyMetadata. This way, you can query the existing ApsaraDB RDS instances that belong to the specified zone in the specified region.

ALIYUN::RDS::Engine::EngineId

The type of the ApsaraDB RDS database.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Engine": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Engine::EngineId"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Engine:
        Type: String
        AssociationProperty: ALIYUN::RDS::Engine::EngineId
  • Description

    In the example for Engine, AssociationProperty is set to ALIYUN::RDS::Engine::EngineId. This way, you can query the type of the ApsaraDB RDS database.

ALIYUN::RDS::Engine::EngineVersion

The version of the ApsaraDB RDS database.

Engine: the database type.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Engine": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Engine::EngineId"
        },
        "EngineVersion": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Engine::EngineVersion",
          "AssociationPropertyMetadata": {
            "Engine": "${Engine}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Engine:
        Type: String
        AssociationProperty: ALIYUN::RDS::Engine::EngineId
      EngineVersion:
        Type: String
        AssociationProperty: ALIYUN::RDS::Engine::EngineVersion
        AssociationPropertyMetadata:
          Engine: ${Engine}
  • Description

    In the example for EngineVersion, AssociationProperty is set to ALIYUN::RDS::Engine::EngineVersion, and Engine is specified in AssociationPropertyMetadata. This way, you can query the version of the ApsaraDB RDS database.

ALIYUN::ECS::Disk::DataDiskCategory

The data disk category of the ECS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • InstanceType: the instance specifications.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        },
        "DataDiskCategory": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::DataDiskCategory",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}",
            "InstanceType": "${InstanceType}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
      DataDiskCategory:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::DataDiskCategory
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
          InstanceType: ${InstanceType}
  • Description

    In the example for DataDiskCategory, AssociationProperty is set to ALIYUN::ECS::Disk::DataDiskCategory, and RegionId, ZoneId, and InstanceType are specified in AssociationPropertyMetadata. This way, you can query the data disk category of the ECS instance.

ALIYUN::ECS::Disk::SystemDiskCategory

The system disk category of the ECS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • InstanceType: the instance specifications.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        },
        "SystemDiskCategory": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::SystemDiskCategory",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}",
            "InstanceType": "${InstanceType}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
      SystemDiskCategory:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::SystemDiskCategory
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
          InstanceType: ${InstanceType}
  • Description

    In the example for SystemDiskCategory, AssociationProperty is set to ALIYUN::ECS::Disk::SystemDiskCategory, and RegionId, ZoneId, and InstanceType are specified in AssociationPropertyMetadata. This way, you can query the system disk category of the ECS instance.

ALIYUN::ECS::Disk::DiskId

The disk ID.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • InstanceId: the instance ID.

  • DiskType: the disk type.

  • Category: the category of the instance.

  • SnapshotId: the snapshot ID.

  • DiskChargeType: the billing method of the disk.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "DiskId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::DiskId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      DiskId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::DiskId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for DiskId, AssociationProperty is set to ALIYUN::ECS::Disk::DiskId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the ECS disk in the specified region.

ALIYUN::ECS::VPC::VPCId

The VPC ID.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for VpcId, AssociationProperty is set to ALIYUN::ECS::VPC::VPCId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the VPC in the specified region.

ALIYUN::VPC::VSwitch::VSwitchId

The vSwitch ID.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • VpcId: the VPC ID.

  • InstanceType: the instance specifications.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "VSwitchId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      VSwitchId:
        Type: String
        AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Description

    In the example for VSwitchId, AssociationProperty is set to ALIYUN::VPC::VSwitch::VSwitchId, and RegionId and ZoneId are specified in AssociationPropertyMetadata. This way, you can query the ID of the vSwitch in the specified region.

ALIYUN::ECS::Instance::InstanceType

The ECS instance specifications.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • InstanceChargeType: the billing method of the instance.

  • SpotStrategy: the bidding policy for the pay-as-you-go instance.

  • InstanceType: the instance specifications.

  • InstanceTypeFamily: the instance family.

  • vCPU: the number of vCPUs that are supported by the instance type.

  • Memory: the memory size that is supported by the instance type.

  • Architecture: the vCPU architecture.

  • CustomizeFamily: the custom instance family.

  • CreateACKClusterParams: filters the ECS instance specifications that are supported by Container Service for Kubernetes (ACK).

    • NetworkPlugin: the network plug-in. Example: terway-eniip.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}",
            "CreateACKClusterParams":{
              "NetworkPlugin": "terway-eniip"
            }
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
          CreateACKClusterParams:
            NetworkPlugin: terway-eniip
  • Description

    In the example for InstanceType, AssociationProperty is set to ALIYUN::ECS::Instance::InstanceType, and RegionId and ZoneId are specified in AssociationPropertyMetadata. This way, you can query the ECS instance specifications in the specified region.

ALIYUN::ECS::SecurityGroup::SecurityGroupId

The ID of the security group.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • VpcId: the VPC ID.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "SecurityGroupId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "VpcId": "${VpcId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      SecurityGroupId:
        Type: String
        AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          VpcId: ${VpcId}
    
  • Description

    In the example for SecurityGroupId, AssociationProperty is set to ALIYUN::ECS::SecurityGroup::SecurityGroupId, and RegionId and VpcId are specified in AssociationPropertyMetadata. This way, you can query the ID of the security group in the specified VPC in the specified region.

ALIYUN::ECS::KeyPair::KeyPairName

The key pair.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "KeyPairName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::KeyPair::KeyPairName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      KeyPairName:
        Type: String
        AssociationProperty: ALIYUN::ECS::KeyPair::KeyPairName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for KeyPairName, AssociationProperty is set to ALIYUN::ECS::KeyPair::KeyPairName, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ECS key pair in the specified region.

ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId

The ID of the automatic snapshot policy.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "AutoSnapshotPolicyId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      AutoSnapshotPolicyId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for AutoSnapshotPolicyId, AssociationProperty is set to ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the automatic snapshot policy of ECS in the specified region.

ALIYUN::ECS::Command::CommandId

The ID of the Cloud Assistant command or Alibaba Cloud command.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ImageId: the image ID.

    You can use OSType of an image to limit the command type that you want to display in the ROS console.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "CommandId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Command::CommandId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      CommandId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Command::CommandId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for CommandId, AssociationProperty is set to ALIYUN::ECS::Command::CommandId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ECS Cloud Assistant command or Alibaba Cloud public command in the specified region.

ALIYUN::ECS::Image::ImageId

The image ID.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • SupportedImageOwnerAlias: the supported image types.

  • InstanceType: the instance specifications.

  • ImageFamily: the image family name.

  • IsSupportIoOptimized: specifies whether the image can run on I/O optimized instances.

  • OSType: the OS type.

  • Architecture: the architecture of the image.

  • Usage: specifies whether the image is running on ECS instances.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ImageId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Image::ImageId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "SupportedImageOwnerAlias": ["system", "self", "others"]
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ImageId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Image::ImageId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          SupportedImageOwnerAlias:
            - system
            - self
            - others
  • Description

    In the example for ImageId, AssociationProperty is set to ALIYUN::ECS::Image::ImageId, and RegionId and SupportedImageOwnerAlias are specified in AssociationPropertyMetadata. This way, you can query the ID of the ECS image in the specified region.

ALIYUN::ECS::ResourceGroup::ResourceGroupId

The resource group.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ResourceGroupId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ResourceGroupId:
        Type: String
        AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
  • Description

    In the example for ResourceGroupId, AssociationProperty is set to ALIYUN::ECS::ResourceGroup::ResourceGroupId.

ALIYUN::ECS::LaunchTemplate::LaunchTemplateId

The ID of the launch template.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "LaunchTemplateId":{
          "AssociationProperty":"ALIYUN::ECS::LaunchTemplate::LaunchTemplateId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      LaunchTemplateId:
        AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for LaunchTemplateId, AssociationProperty is set to ALIYUN::ECS::LaunchTemplate::LaunchTemplateId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the ECS launch template in the specified region.

ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion

The version of the launch template.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • LaunchTemplateId: the ID of the launch template.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "LaunchTemplateId": {
          "AssociationProperty": "ALIYUN::ECS::LaunchTemplate::LaunchTemplateId",
          "Type": "String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "LaunchTemplateVersion": {
          "AssociationProperty": "ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion",
          "Type": "String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "LaunchTemplateId": "${LaunchTemplateId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      LaunchTemplateId:
        AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      LaunchTemplateVersion:
        AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          LaunchTemplateId: ${LaunchTemplateId}
  • Description

    In the example for LaunchTemplateVersion, AssociationProperty is set to ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion, and RegionId and LaunchTemplateId are specified in AssociationPropertyMetadata. This way, you can query the version of the specified ECS launch template.

ALIYUN::RDS::Instance::InstanceType

The specifications of the ApsaraDB RDS instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • InstanceChargeType: the billing method of the instance.

  • Category: the edition of the instance.

  • Engine: the database type.

  • EngineVersion: the version of the database.

  • DBInstanceClass: the instance type.

  • OrderType: the order type.

  • DBInstanceStorageType: the storage type of the instance.

  • DispenseMode: the allocation mode.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}",
            "Engine": "MySQL"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::RDS::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
          Engine: MySQL
  • Description

    In the example for InstanceType, AssociationProperty is set to ALIYUN::RDS::Instance::InstanceType, and RegionId, Engine, and ZoneId are specified in AssociationPropertyMetadata. This way, you can query the specifications of the ApsaraDB RDS instance of the specified database type in the specified zone.

ALIYUN::SLB::Instance::InstanceType

The specifications of the Server Load Balancer (SLB) instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • InstanceChargeType: the metering method of the instance.

  • SpotStrategy: the bidding policy for the pay-as-you-go instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InstanceType": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::SLB::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InstanceType:
        Type: String
        AssociationProperty: ALIYUN::SLB::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Description

    In the example for InstanceType, AssociationProperty is set to ALIYUN::SLB::Instance::InstanceType, and RegionId and ZoneId are specified in AssociationPropertyMetadata. This way, you can query the specifications of the SLB instance in the specified zone.

ALIYUN::SLB::Certificate

The certificate of the SLB instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "Certificate": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::SLB::Certificate",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      Certificate:
        Type: String
        AssociationProperty: ALIYUN::SLB::Certificate
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Description

    In the example for Certificate, AssociationProperty is set to ALIYUN::SLB::Certificate, and RegionId and ZoneId are specified in AssociationPropertyMetadata. This way, you can query the certificate of the SLB instance in the specified zone.

ALIYUN::SLB::LoadBalancer::LoadBalancerId

The ID of the SLB instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • VpcId: the VPC ID.

  • VSwitchId: the vSwitch ID.

  • NetworkType: the network type of the NAT gateway.

  • InstanceChargeType: the metering method of the instance.

  • AddressType: the network type.

  • MasterZoneId: the primary zone ID of the SLB instance.

  • SlaveZoneId: the secondary zone ID of the SLB instance.

  • PayType: the billing method of the SLB instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "SlbInstanceId":{
          "AssociationProperty":"ALIYUN::SLB::LoadBalancer::LoadBalancerId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      SlbInstanceId:
        AssociationProperty: ALIYUN::SLB::LoadBalancer::LoadBalancerId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for SlbInstanceId, AssociationProperty is set to ALIYUN::SLB::LoadBalancer::LoadBalancerId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the SLB instance in the specified region.

ALIYUN::SLB::ACL::ACLId

The access control list (ACL) ID of SLB.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • AddressIPVersion: the type of the IP address.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "SlbACLId":{
          "AssociationProperty":"ALIYUN::SLB::ACL::ACLId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "AddressIPVersion":"${AddressIPVersion}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      SlbACLId:
        AssociationProperty: ALIYUN::SLB::ACL::ACLId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          AddressIPVersion: ${AddressIPVersion}
  • Description

    In the example for SlbACLId, AssociationProperty is set to ALIYUN::SLB::ACL::ACLId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ACL of SLB in the specified region.

ALIYUN::OOS::Template::TemplateName

The OOS template.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "TemplateName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Template::TemplateName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      TemplateName:
        Type: String
        AssociationProperty: ALIYUN::OOS::Template::TemplateName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for TemplateName, AssociationProperty is set to ALIYUN::OOS::Template::TemplateName, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the OOS template in the specified region.

ALIYUN::OOS::Template::TemplateVersion

The version of the OOS template.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • TemplateName: the template name.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "TemplateName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Template::TemplateName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "TemplateVersion": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Template::TemplateVersion",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "TemplateName": "${TemplateName}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      TemplateName:
        Type: String
        AssociationProperty: ALIYUN::OOS::Template::TemplateName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      TemplateVersion:
        Type: String
        AssociationProperty: ALIYUN::OOS::Template::TemplateVersion
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          TemplateName: ${TemplateName}
  • Description

    In the example for TemplateVersion, AssociationProperty is set to ALIYUN::OOS::Template::TemplateVersion, and RegionId and TemplateName are specified in AssociationPropertyMetadata. This way, you can query the version of the OOS template in the specified region.

ALIYUN::OOS::Parameter::Value

The common parameter of OOS.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ParameterValue": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Parameter::Value",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ParameterValue:
        Type: String
        AssociationProperty: ALIYUN::OOS::Parameter::Value
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for ParameterValue, AssociationProperty is set to ALIYUN::OOS::Parameter::Value, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the OOS common parameter in the specified region.

ALIYUN::OOS::SecretParameter::Value

The encryption parameter of OOS.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "SecretParameter": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::SecretParameter::Value",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      SecretParameter:
        Type: String
        AssociationProperty: ALIYUN::OOS::SecretParameter::Value
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for SecretParameter, AssociationProperty is set to ALIYUN::OOS::SecretParameter::Value, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the OOS encryption parameter in the specified region.

ALIYUN::OOS::Package::PackageName

The name of the OOS software package.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "PackageName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Package::PackageName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      PackageName:
        Type: String
        AssociationProperty: ALIYUN::OOS::Package::PackageName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for PackageName, AssociationProperty is set to ALIYUN::OOS::Package::PackageName, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the OOS software package in the specified region.

ALIYUN::OOS::Package::PackageVersion

The version of the OOS software package.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • TemplateName: the template name.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "PackageName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Package::PackageName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "PackageVersion": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Package::PackageVersion",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "TemplateName": "${PackageName}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      PackageName:
        Type: String
        AssociationProperty: ALIYUN::OOS::Package::PackageName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      PackageVersion:
        Type: String
        AssociationProperty: ALIYUN::OOS::Package::PackageVersion
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          TemplateName: ${PackageName}
  • Description

    In the example for PackageVersion, AssociationProperty is set to ALIYUN::OOS::Package::PackageVersion, and RegionId and TemplateName are specified in AssociationPropertyMetadata. This way, you can query the version of the OOS software package in the specified region.

ALIYUN::OOS::Command::CommandContent

The script of the OOS execution.

CommandType: the command type.

Valid values:

  • RunBatScript

  • RunPowerShellScript

  • RunShellScript

  • RunPythonScript

  • RunPerlScript

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "CommandContent": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Command::CommandContent",
          "AssociationPropertyMetadata": {
            "CommandType": "RunPythonScript"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      CommandContent:
        Type: String
        AssociationProperty: ALIYUN::OOS::Command::CommandContent
        AssociationPropertyMetadata:
          CommandType: RunPythonScript
  • Description

    In the example for CommandContent, AssociationProperty is set to ALIYUN::OOS::Command::CommandContent, and CommandType is specified in AssociationPropertyMetadata. This way, you can run the script of the OOS execution.

ALIYUN::OOS::File::FileUrl

The URL to which you want to upload the file.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • FileType: the export format of the file.

    Valid values: local, https, gitub, and oss.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "FileUrl": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::File::FileUrl",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      FileUrl:
        Type: String
        AssociationProperty: ALIYUN::OOS::File::FileUrl
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for FileUrl, AssociationProperty is set to ALIYUN::OOS::File::FileUrl. This way, you can upload the file to Object Storage Service (OSS).

ALIYUN::OSS::Bucket::BucketName

The name of the OSS bucket.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "BucketName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OSS::Bucket::BucketName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      BucketName:
        Type: String
        AssociationProperty: ALIYUN::OSS::Bucket::BucketName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for BucketName, AssociationProperty is set to ALIYUN::OSS::Bucket::BucketName, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the OSS bucket in the specified region.

ALIYUN::OSS::Object::ObjectName

The name of the OSS object.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • BucketName: the bucket name.

  • ValueType: the type of the returned address.

    • The default value is OSS Url. A value of OSS Url specifies that the complete address is returned, such as oss://beijing-test-delete/test.xml.

    • If you set ValueType to a different value, only the object name in the address is returned, such as test.xml.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "BucketName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OSS::Bucket::BucketName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "ObjectName": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OSS::Object::ObjectName",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "BucketName": "${BucketName}",
            "ValueType": "${BucketName}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      BucketName:
        Type: String
        AssociationProperty: ALIYUN::OSS::Bucket::BucketName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      ObjectName:
        Type: String
        AssociationProperty: ALIYUN::OSS::Object::ObjectName
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          BucketName: ${BucketName}
          ValueType: ${BucketName}
  • Description

    In the example for ObjectName, AssociationProperty is set to ALIYUN::OSS::Object::ObjectName, and RegionId and BucketName are specified in AssociationPropertyMetadata. This way, you can query the OSS object in the specified region.

ALIYUN::OOS::Component::TimerTrigger

The component that you want to use for the OOS time trigger.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "TimerTrigger": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::OOS::Component::TimerTrigger",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      TimerTrigger:
        Type: String
        AssociationProperty: ALIYUN::OOS::Component::TimerTrigger
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for TimerTrigger, AssociationProperty is set to ALIYUN::OOS::Component::TimerTrigger, and RegionId is specified in AssociationPropertyMetadata. This way, you can configure the component of the OOS time trigger.

ALIYUN::VPC::VirtualBorderRouter::RouteTableId

The ID of the virtual border router (VBR).

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "RouteTableId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::VPC::VirtualBorderRouter::RouteTableId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      RouteTableId:
        Type: String
        AssociationProperty: ALIYUN::VPC::VirtualBorderRouter::RouteTableId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for RouteTableId, AssociationProperty is set to ALIYUN::VPC::VirtualBorderRouter::RouteTableId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the VBR in the specified region.

ALIYUN::VPC::NatGateway::NatGatewayId

The ID of the NAT gateway.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • VpcId: the VPC ID.

  • InstanceChargeType: the billing method of the instance.

  • NatType: the type of the NAT gateway.

  • NetworkType: the network type of the NAT gateway.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "NatGateway": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::VPC::NatGateway::NatGatewayId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}",
            "VpcId": "${VpcId}",
            "InstanceChargeType": "PostPaid",
            "NatType": "Enhanced",
            "NetworkType": "intranet"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      NatGateway:
        Type: String
        AssociationProperty: ALIYUN::VPC::NatGateway::NatGatewayId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
          VpcId: ${VpcId}
          InstanceChargeType: PostPaid
          NatType: Enhanced
          NetworkType: intranet
  • Description

    In the example for NatGateway, AssociationProperty is set to ALIYUN::VPC::NatGateway::NatGatewayId, and RegionId, ZoneId, VpcId, InstanceChargeType, NatType, and NetworkType are specified in AssociationPropertyMetadata. This way, you can query the ID of the NAT gateway that matches the filter conditions in the specified region.

ALIYUN::VPC::VSwitch::CidrBlock

The CIDR block that you want to use to create a vSwitch.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • VpcId: the VPC ID.

  • VpcCidrBlock: the CIDR block of the VPC.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "RegionId"
        },
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "CIDR": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::VPC::VSwitch::CidrBlock",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "VpcId": "${VpcId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: RegionId
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      CIDR:
        Type: String
        AssociationProperty: ALIYUN::VPC::VSwitch::CidrBlock
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          VpcId: ${VpcId}
  • Description

    In the example for CIDR, AssociationProperty is set to ALIYUN::VPC::VSwitch::CidrBlock, and RegionId and VpcId are specified in AssociationPropertyMetadata. This way, you can specify the CIDR block of the vSwitch.

ALIYUN::VPC::VPC::CidrBlock

The CIDR block that you want to use to create a VPC.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "CIDR": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::VPC::VPC::CidrBlock"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      CIDR:
        Type: String
        AssociationProperty: ALIYUN::VPC::VPC::CidrBlock
  • Description

    In the example for CIDR, AssociationProperty is set to ALIYUN::VPC::VPC::CidrBlock. This way, you can specify the CIDR block of the VPC.

ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId

The ID of the scaling configuration of Auto Scaling.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ScalingConfigurationId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ScalingConfigurationId:
        Type: String
        AssociationProperty: ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for ScalingConfigurationId, AssociationProperty is set to ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId. This way, you can query the ID of the scaling configuration in Auto Scaling.

ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId

The ID of the scaling group of Auto Scaling.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "AutoScalingGroupId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      AutoScalingGroupId:
        Type: String
        AssociationProperty: ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for AutoScalingGroupId, AssociationProperty is set to ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId. This way, you can query the ID of the scaling group in Auto Scaling.

ALIYUN::RAM::User

The name of the RAM user.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "User": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RAM::User",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      User:
        Type: String
        AssociationProperty: ALIYUN::RAM::User
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for User, AssociationProperty is set to ALIYUN::RAM::User, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the RAM user in the specified region.

ALIYUN::RAM::Role

The RAM role.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "Role": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RAM::Role",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      Role:
        Type: String
        AssociationProperty: ALIYUN::RAM::Role
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for Role, AssociationProperty is set to ALIYUN::RAM::Role, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the RAM role in the specified region.

ALIYUN::CAS::Certificate::CertificateId

The certificate ID of the SLB instance.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "Certificate": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::CAS::Certificate::CertificateId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      Certificate:
        Type: String
        AssociationProperty: ALIYUN::CAS::Certificate::CertificateId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for Certificate, AssociationProperty is set to ALIYUN::CAS::Certificate::CertificateId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the certificate ID of the SLB instance in the specified region.

ALIYUN::Elasticsearch::Instance::InstanceType

The specifications of the Elasticsearch instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Elasticsearch": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::Elasticsearch::Instance::InstanceType"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Elasticsearch:
        Type: String
        AssociationProperty: ALIYUN::Elasticsearch::Instance::InstanceType
  • Description

    In the example for Elasticsearch, AssociationProperty is set to ALIYUN::Elasticsearch::Instance::InstanceType. This way, you can query the specifications of the Elasticsearch instance.

ALIYUN::InfluxDB::Instance::InstanceType

The specifications of the Time Series Database for InfluxDB® (InfluxDB) instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "InfluxDB": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::InfluxDB::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      InfluxDB:
        Type: String
        AssociationProperty: ALIYUN::InfluxDB::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Description

    In the example for InfluxDB, AssociationProperty is set to ALIYUN::InfluxDB::Instance::InstanceType. This way, you can query the specifications of the InfluxDB instance.

ALIYUN::Redis::Instance::InstanceType

The specifications of the ApsaraDB for Redis instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • InstanceChargeType: the billing method of the instance.

  • Engine: the database type.

  • ProductType: the edition of the instance.

  • OrderType: the order type.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId"
        },
        "Redis": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::Redis::Instance::InstanceType",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
      Redis:
        Type: String
        AssociationProperty: ALIYUN::Redis::Instance::InstanceType
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}
  • Description

    In the example for Redis, AssociationProperty is set to ALIYUN::Redis::Instance::InstanceType. This way, you can query the specifications of the ApsaraDB for Redis instance.

ALIYUN::EHPC::FileSystem::FileSystemId

The ID of the file system.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "FileSystemId":{
          "AssociationProperty":"ALIYUN::EHPC::FileSystem::FileSystemId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      FileSystemId:
        AssociationProperty: ALIYUN::EHPC::FileSystem::FileSystemId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for FileSystemId, AssociationProperty is set to ALIYUN::EHPC::FileSystem::FileSystemId. This way, you can query the file system ID in Elastic High Performance Computing (E-HPC).

ALIYUN::EHPC::FileSystem::MountTargetDomain

The mount target.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • VolumeId: the ID of the Apsara File Storage NAS (NAS) instance.

  • VpcId: the VPC ID.

  • VSwitchId: the vSwitch ID.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "MountTargetDomain":{
          "AssociationProperty":"ALIYUN::EHPC::FileSystem::MountTargetDomain",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      MountTargetDomain:
        AssociationProperty: ALIYUN::EHPC::FileSystem::MountTargetDomain
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for MountTargetDomain, AssociationProperty is set to ALIYUN::EHPC::FileSystem::MountTargetDomain. This way, you can query the mount targets of the E-HPC file system.

ALIYUN::EHPC::Cluster::ClusterId

The cluster ID.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ClusterId":{
          "AssociationProperty":"ALIYUN::EHPC::Cluster::ClusterId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          },
          "Type":"String"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ClusterId:
        AssociationProperty: ALIYUN::EHPC::Cluster::ClusterId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
        Type: String
  • Description

    In the example for ClusterId, AssociationProperty is set to ALIYUN::EHPC::Cluster::ClusterId. This way, you can query the ID of the E-HPC cluster.

ALIYUN::ALB::Instance::InstanceId

The ID of the Application Load Balancer (ALB) instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • VpcId: the VPC ID.

  • AddressType: the network type.

  • ZoneId: the zone ID.

  • PayType: the billing method of the ALB instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "AlbInstanceId":{
          "AssociationProperty":"ALIYUN::ALB::Instance::InstanceId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      AlbInstanceId:
        AssociationProperty: ALIYUN::ALB::Instance::InstanceId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for AlbInstanceId, AssociationProperty is set to ALIYUN::ALB::Instance::InstanceId. This way, you can query the ID of the ALB instance.

ALIYUN::ALB::ACL::ACLId

The ACL ID of ALB.

RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "RegionId"
        },
        "AlbACLId":{
          "AssociationProperty":"ALIYUN::ALB::ACL::ACLId",
          "AssociationPropertyMetadata": {
             "RegionId": "${RegionId}"
          },
          "Type":"String"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: RegionId
      AlbACLId:
        AssociationProperty: ALIYUN::ALB::ACL::ACLId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
        Type: String
  • Description

    In the example for AlbACLId, AssociationProperty is set to ALIYUN::ALB::ACL::ACLId. This way, you can query the ACL ID of ALB.

ALIYUN::ALB::LoadBalancer::LoadBalancerId

The ID of the ALB instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • VpcId: the VPC ID.

  • AddressType: the network type.

  • ZoneId: the zone ID.

  • PayType: the billing method of the ALB instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "AlbLoadBalancerId":{
          "AssociationProperty":"ALIYUN::ALB::LoadBalancer::LoadBalancerId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      AlbLoadBalancerId:
        AssociationProperty: ALIYUN::ALB::LoadBalancer::LoadBalancerId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for AlbLoadBalancerId, AssociationProperty is set to ALIYUN::ALB::LoadBalancer::LoadBalancerId. This way, you can query the ID of the ALB instance.

ALIYUN::ResourceManager::Folder

The resource directory.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ResourceFolder": {
          "AssociationProperty": "ALIYUN::ResourceManager::Folder",
          "Type": "Json",
          "Description": {
             
            "en": "ResourceFolder"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ResourceFolder:
        AssociationProperty: ALIYUN::ResourceManager::Folder
        Type: Json
        Description:
           
          en: ResourceFolder
  • Description

    In the example for ResourceFolder, AssociationProperty is set to ALIYUN::ResourceManager::Folder. This way, you can query the resource directory within your Alibaba Cloud account.

ALIYUN::ResourceManager::Account

The account in the resource directory.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ResourceAccount": {
          "AssociationProperty": "ALIYUN::ResourceManager::Account",
          "Type": "Json",
          "Description": {
             
            "en": "ResourceAccount"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ResourceAccount:
        AssociationProperty: ALIYUN::ResourceManager::Account
        Type: Json
        Description:
           
          en: ResourceAccount
  • Description

    In the example for ResourceAccount, AssociationProperty is set to ALIYUN::ResourceManager::Account. This way, you can query the account in resource directory.

ALIYUN::CMS::Alarm::Rule

The threshold-triggered alert rule.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Rule": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::Rule",
          "Type": "String",
          "Description": {
             
            "en": "AlarmRule"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Rule:
        AssociationProperty: ALIYUN::CMS::Alarm::Rule
        Type: String
        Description:
           
          en: AlarmRule
  • Description

    In the example for Rule, AssociationProperty is set to ALIYUN::CMS::Alarm::Rule. This way, you can query the threshold-triggered alert rule.

ALIYUN::CMS::Alarm::SilenceTime

The mute period of the alert.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "SilenceTime": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::SilenceTime",
          "Type": "String",
          "Description": {
             
            "en": "SilenceTime"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      SilenceTime:
        AssociationProperty: ALIYUN::CMS::Alarm::SilenceTime
        Type: String
        Description:
           
          en: SilenceTime
  • Description

    In the example for SilenceTime, AssociationProperty is set to ALIYUN::CMS::Alarm::SilenceTime. This way, you can query the mute period of the alert.

ALIYUN::CMS::Alarm::TriggerResources

The resources that trigger alerts.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "TriggerResources": {
          "AssociationProperty": "ALIYUN::CMS::Alarm::TriggerResources",
          "Type": "String",
          "Description": {
             
            "en": "TriggerResources"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      TriggerResources:
        AssociationProperty: ALIYUN::CMS::Alarm::TriggerResources
        Type: String
        Description:
           
          en: TriggerResources
  • Description

    In the example for TriggerResources, AssociationProperty is set to ALIYUN::CMS::Alarm::TriggerResources. This way, you can query the resources that trigger alerts.

ALIYUN::CMS::Event::EventFilterRule

The event-triggered alert rule.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventRule": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventFilterRule",
          "Type": "String",
          "Description": {
             
            "en": "EventRule"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventRule:
        AssociationProperty: ALIYUN::CMS::Event::EventFilterRule
        Type: String
        Description:
           
          en: EventRule
  • Description

    In the example for EventRule, AssociationProperty is set to ALIYUN::CMS::Event::EventFilterRule. This way, you can query the event-triggered alert rule.

ALIYUN::CMS::Event::EventLevel

The level of the event that triggers alerts.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventLevel": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventLevel",
          "Type": "String",
          "Description": {
             
            "en": "EventLevel"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventLevel:
        AssociationProperty: ALIYUN::CMS::Event::EventLevel
        Type: String
        Description:
           
          en: EventLevel
  • Description

    In the example for EventLevel, AssociationProperty is set to ALIYUN::CMS::Event::EventLevel. This way, you can query the level of the event that triggers alerts.

ALIYUN::CMS::Event::EventName

The name of the event that triggers alerts.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "EventName": {
          "AssociationProperty": "ALIYUN::CMS::Event::EventName",
          "Type": "String",
          "Description": {
             
            "en": "EventName"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      EventName:
        AssociationProperty: ALIYUN::CMS::Event::EventName
        Type: String
        Description:
           
          en: EventName
  • Description

    In the example for EventName, AssociationProperty is set to ALIYUN::CMS::Event::EventName. This way, you can query the name of the event that triggers alerts.

ALIYUN::CMS::Product::ProductType

The cloud service to which the event-triggered alert rule is applied.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ProductType": {
          "AssociationProperty": "ALIYUN::CMS::Product::ProductType",
          "Type": "String",
          "Description": {
             
            "en": "ProductType"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ProductType:
        AssociationProperty: ALIYUN::CMS::Product::ProductType
        Type: String
        Description:
           
          en: ProductType
  • Description

    In the example for ProductType, AssociationProperty is set to ALIYUN::CMS::Product::ProductType. This way, you can query the cloud service to which the event-triggered alert rule is applied.

ALIYUN::CS::Cluster::ClusterId

The ID of the ACK cluster.

  • RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ClusterId":{
          "AssociationProperty":"ALIYUN::CS::Cluster::ClusterId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ClusterId:
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for ClusterId, AssociationProperty is set to ALIYUN::CS::Cluster::ClusterId. This way, you can query the ID of the ACK cluster.

ALIYUN::CS::Cluster::ClusterNodePool

The node pool in the ACK cluster.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ClusterId: the ID of the ACK cluster.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ClusterId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::CS::Cluster::ClusterId"
        },
        "ClusterNodePool":{
          "AssociationProperty":"ALIYUN::CS::Cluster::ClusterId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ClusterId": "${ClusterId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ClusterId:
        Type: String
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
      ClusterNodePool:
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
        Type: String
        AssociationPropertyMetadata:
          ClusterId: ${ClusterId}
  • Description

    In the example for ClusterNodePool, AssociationProperty is set to ALIYUN::CS::Cluster::ClusterNodePool. This way, you can query the node pool in the ACK cluster.

ALIYUN::ComputeNest::Service::ServiceId

The ID of the service of Compute Nest.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • InUsed: specifies whether the service is in use.

  • IsVendor: specifies whether the service belongs to a service provider.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ServiceId":{
          "AssociationProperty":"ALIYUN::ComputeNest::Service::ServiceId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ServiceId:
        AssociationProperty: ALIYUN::ComputeNest::Service::ServiceId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for ServiceId, AssociationProperty is set to ALIYUN::ComputeNest::Service::ServiceId. This way, you can query the ID of the service of Compute Nest.

ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId

The ID of the service instance of Compute Nest.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ServiceType: the service type.

  • DeployType: the deployment type.

  • Status: the status of the service.

  • ServiceId: the service ID.

  • Version: the version of the service.

  • IsVendor: specifies whether the service belongs to a service provider.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ServiceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ComputeNest::Service::ServiceId"
        },
        "ServiceInstanceId":{
          "AssociationProperty":"ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ServiceId": "${ServiceId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ServiceId:
        Type: String
        AssociationProperty: ALIYUN::ComputeNest::Service::ServiceId
      ServiceInstanceId:
        AssociationProperty: ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId
        Type: String
        AssociationPropertyMetadata:
          ServiceId: ${ServiceId}
  • Description

    In the example for ServiceInstanceId, AssociationProperty is set to ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId. This way, you can query the ID of the service instance of Compute Nest.

ALIYUN::ComputeNestSupplier::Service::ServiceVersion

The version of the service of Compute Nest.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ServiceId: the service ID.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ServiceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ComputeNest::Service::ServiceId"
        },
        "ServiceVersion":{
          "AssociationProperty":"ALIYUN::ComputeNestSupplier::Service::ServiceVersion",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ServiceId": "${ServiceId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ServiceId:
        Type: String
        AssociationProperty: ALIYUN::ComputeNest::Service::ServiceId
      ServiceVersion:
        AssociationProperty: ALIYUN::ComputeNestSupplier::Service::ServiceVersion
        Type: String
        AssociationPropertyMetadata:
          ServiceId: ${ServiceId}
  • Description

    In the example for ServiceVersion, AssociationProperty is set to ALIYUN::ComputeNestSupplier::Service::ServiceVersion. This way, you can query the version of the Compute Nest service.

ALIYUN::MongoDB::Instance::InstanceType

The specifications of the ApsaraDB for MongoDB instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstanceType":{
          "AssociationProperty":"ALIYUN::MongoDB::Instance::InstanceType",
          "Type":"String"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      InstanceType:
        AssociationProperty: ALIYUN::MongoDB::Instance::InstanceType
        Type: String
  • Description

    In the example for InstanceType, AssociationProperty is set to ALIYUN::MongoDB::Instance::InstanceType. This way, you can query the specifications of the ApsaraDB for MongoDB instance.

ALIYUN::NLB::LoadBalancer::LoadBalancerId

The ID of the Network Load Balancer (NLB) instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • VpcIds: the VPC IDs.

  • AddressType: the network type.

  • ZoneId: the zone ID.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "InstanceId":{
          "AssociationProperty":"ALIYUN::NLB::LoadBalancer::LoadBalancerId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        AssociationProperty: ALIYUN::NLB::LoadBalancer::LoadBalancerId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for InstanceId, AssociationProperty is set to ALIYUN::NLB::LoadBalancer::LoadBalancerId. This way, you can query the ID of the NLB instance.

ALIYUN::NLB::Zone::ZoneId

The zone of the NLB instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ShowRandom: shows the random option that is assigned by the system.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::NLB::Zone::ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ALIYUN::NLB::Zone::ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for ZoneId, AssociationProperty is set to ALIYUN::NLB::Zone::ZoneId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the zone of the NLB instance in the specified region.

ALIYUN::OSS::Bucket::Object

The OSS object.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ObjectType: the object type.

  • ValueType: the type of the object value.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "BucketObject": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::NLB::Zone::ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      BucketObject:
        Type: String
        AssociationProperty: ALIYUN::NLB::Zone::ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for BucketObject, AssociationProperty is set to ALIYUN::OSS::Bucket::Object, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the OSS object in the specified region.

ALIYUN::POLARDB::DBCluster::DBClusterId

The ID of the PolarDB instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "DBClusterId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::POLARDB::DBCluster::DBClusterId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      DBClusterId:
        Type: String
        AssociationProperty: ALIYUN::POLARDB::DBCluster::DBClusterId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for DBClusterId, AssociationProperty is set to ALIYUN::POLARDB::DBCluster::DBClusterId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the PolarDB instance in the specified region.

ALIYUN::POLARDB::DBCluster::DBNodeClass

The available resources in a PolarDB cluster.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ZoneId: the zone ID.

  • PayType: the billing method. Valid values:

    • Postpaid (default): pay-as-you-go billing method

    • Prepaid: subscription billing method

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "DBNodeClass": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::POLARDB::DBCluster::DBNodeClass",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      DBNodeClass:
        Type: String
        AssociationProperty: ALIYUN::POLARDB::DBCluster::DBNodeClass
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}

ALIYUN::RDS::Instance::AccountPassword

The password of the ApsaraDB RDS database account.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AccountPassword": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Instance::AccountPassword"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AccountPassword:
        Type: String
        AssociationProperty: ALIYUN::RDS::Instance::AccountPassword
  • Description

    In the example for AccountPassword, AssociationProperty is set to ALIYUN::RDS::Instance::AccountPassword. This way, you can query the password of the ApsaraDB RDS database account.

ALIYUN::Redis::Instance::InstanceId

The ID of the ApsaraDB for Redis instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • InstanceType: the instance specifications.

  • ChargeType: the billing method of the instance.

  • EditionType: the edition of the instance.

  • InstanceClass: the instance type.

  • NetworkType: the network type of the instance.

  • InstanceStatus: the status of the instance.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "InstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::Redis::Instance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      InstanceId:
        Type: String
        AssociationProperty: ALIYUN::Redis::Instance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for InstanceId, AssociationProperty is set to ALIYUN::Redis::Instance::InstanceId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the ApsaraDB for Redis instance in the specified region.

ALIYUN::ServiceCatalog::LaunchOption::PortfolioId

The ID of the product portfolio of Service Catalog.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ProductId: the product ID.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "PortfolioId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ServiceCatalog::LaunchOption::PortfolioId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      PortfolioId:
        Type: String
        AssociationProperty: ALIYUN::ServiceCatalog::LaunchOption::PortfolioId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for PortfolioId, AssociationProperty is set to ALIYUN::ServiceCatalog::LaunchOption::PortfolioId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the product portfolio of Service Catalog in the specified region.

ALIYUN::ServiceCatalog::ProductVersion::ProductVersionId

The ID of the product version of Service Catalog.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ProductId: the product ID.

  • Active: specifies whether to enable the product version.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ProductVersionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ServiceCatalog::ProductVersion::ProductVersionId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ProductVersionId:
        Type: String
        AssociationProperty: ALIYUN::ServiceCatalog::ProductVersion::ProductVersionId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Description

    In the example for ProductVersionId, AssociationProperty is set to ALIYUN::ServiceCatalog::ProductVersion::ProductVersionId, and RegionId is specified in AssociationPropertyMetadata. This way, you can query the ID of the product version of Service Catalog in the specified region.

ALIYUN::User::Account::AccountIds

The account IDs.

Example:

  • Sample code

    JSON format:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AccountIds": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::User::Account::AccountIds"
        }
      }
    }

    YAML format:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AccountIds:
        Type: String
        AssociationProperty: ALIYUN::User::Account::AccountIds
  • Description

    In the example for AccountIds, AssociationProperty is set to ALIYUN::User::Account::AccountIds. This way, you can query the account IDs.

AutoCompleteInput

The random string that is automatically generated by the system.

  • CharacterClasses

    • Class: the character type. Valid values:

      • lowercase

      • uppercase

      • number

      • specialCharacter

    • Min: the minimum number of characters in the string.

    • SpecialCharacters: the special characters in the string. This parameter is valid when Class is set to specialCharacter.

    • Start: specifies whether the string can start with a special character. This parameter is valid when Class is set to specialCharacter.

    • End: specifies whether the string can end with a special character. This parameter is valid when Class is set to specialCharacter.

  • Prefix: the prefix of the string.

  • Suffix: the suffix of the string.

  • Length: the number of characters in the string.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ManagedKubernetesClusterName": {
      "Type": "String",
      "Label": {
        "en": "Managed Kubernetes Cluster Name",
         
      },
      "AssociationProperty": "AutoCompleteInput",
      "AssociationPropertyMetadata": {
        "Length": 5,
        "Prefix": "cluster-for-mse-",
        "Suffix": "-by-ros",
        "CharacterClasses": [
          {
            "Class": "lowercase",
            "min": 1
          }
        ]
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ManagedKubernetesClusterName:
    Type: String
    Label:
      en: Managed Kubernetes Cluster Name
       
    AssociationProperty: AutoCompleteInput
    AssociationPropertyMetadata:
      Length: 5
      Prefix: cluster-for-mse-
      Suffix: '-by-ros'
      CharacterClasses:
        - Class: lowercase
          min: 1

ALIYUN::Flow::Connection::ConnectionId

The service connections in Apsara DevOps.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • organizationId: the organization identifier or ID. The value is of the string data type. You can obtain the organization ID from Apsara DevOps endpoints. Example:

    https://devops.aliyun.com/organization/[OrganizationId]
  • sericeConnectionType: the type of the service connection.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "OrganizationId": {
      "Type": "String"
    },
    "SericeConnectionType": {
      "Type": "String",
      "Default": "aliyun_code"
    },
    "ServiceConnectionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::Flow::Connection::ConnectionId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "organizationId": "${OrganizationId}",
        "sericeConnectionType": "${SericeConnectionType}"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  OrganizationId:
    Type: String
  SericeConnectionType:
    Type: String
    Default: aliyun_code
  ServiceConnectionId:
    Type: String
    AssociationProperty: ALIYUN::Flow::Connection::ConnectionId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      organizationId: ${OrganizationId}
      sericeConnectionType: ${SericeConnectionType}

ALIYUN::Flow::Organization::OrganizationId

The organizations within the current account.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • accessLevel: the permission level.

  • minAccessLevel: the lowest permission level. You can use this parameter to query organizations whose permission levels are higher than or equal to the lowest permission level.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "OrganizationId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::Flow::Organization::OrganizationId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "accessLevel": 5,
        "minAccessLevel": 5
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  OrganizationId:
    Type: String
    AssociationProperty: ALIYUN::Flow::Organization::OrganizationId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      accessLevel: 5
      minAccessLevel: 5

ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId

The ID of the scaling configuration.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ScalingGroupId: the ID of the scaling group.

  • AutoSelectFirst: specifies whether to use the first scaling configuration.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "AutoScalingGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "ServiceConnectionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "ScalingGroupId": "${AutoScalingGroupId}",
        "AutoSelectFirst": true
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  AutoScalingGroupId:
    Type: String
    AssociationProperty: ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  ServiceConnectionId:
    Type: String
    AssociationProperty: ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      ScalingGroupId: ${AutoScalingGroupId}
      AutoSelectFirst: true

ALIYUN::ECD::Bundle::DesktopType

The information about the cloud computer type.

  • RegionId: the region ID. By default, the region ID of the stack is used.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "DesktopType": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECD::Bundle::DesktopType",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  DesktopType:
    Type: String
    AssociationProperty: ALIYUN::ECD::Bundle::DesktopType
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

ALIYUN::CEN::Instance::CenId

The information about the Cloud Enterprise Network (CEN) instance within your account.

  • ResourceGroupId: the ID of the resource group to which the CEN instance belongs.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ResourceGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
    },
    "CenId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CEN::Instance::CenId",
      "AssociationPropertyMetadata": {
        "ResourceGroupId": "${ResourceGroupId}"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ResourceGroupId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
  CenId:
    Type: String
    AssociationProperty: ALIYUN::CEN::Instance::CenId
    AssociationPropertyMetadata:
      ResourceGroupId: ${ResourceGroupId}

ALIYUN::CEN::TransitRouter::TransitRouterId

The information about the transit router that is connected to the CEN instance.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • CenId: the ID of the CEN instance.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ResourceGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
    },
    "CenId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CEN::Instance::CenId",
      "AssociationPropertyMetadata": {
        "ResourceGroupId": "${ResourceGroupId}"
      }
    },
    "TransitRouterId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CEN::TransitRouter::TransitRouterId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "CenId": "${CenId}"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ResourceGroupId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
  CenId:
    Type: String
    AssociationProperty: ALIYUN::CEN::Instance::CenId
    AssociationPropertyMetadata:
      ResourceGroupId: ${ResourceGroupId}
  TransitRouterId:
    Type: String
    AssociationProperty: ALIYUN::CEN::TransitRouter::TransitRouterId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      CenId: ${CenId}

ALIYUN::User::AccountId

The ID of the Alibaba Cloud account.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "MasterAccountId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::User::AccountId"
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  MasterAccountId:
    Type: String
    AssociationProperty: ALIYUN::User::AccountId

ALIYUN::User::UserId

The ID of the current account. The account belongs to Alibaba Cloud.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CurrentAccountId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::User::UserId"
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CurrentAccountId:
    Type: String
    AssociationProperty: ALIYUN::User::UserId

ALIYUN::Kafka::Instance::InstanceId

The information about the ApsaraMQ for Kafka instance in the specified region.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • OrderId: the order ID.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "InstanceId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::Kafka::Instance::InstanceId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  InstanceId:
    Type: String
    AssociationProperty: ALIYUN::Kafka::Instance::InstanceId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

ALIYUN::Emr::ECSCluster::ClusterId

The E-MapReduce (EMR) clusters.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ClusterTypes: the cluster types. Valid values:

    • DATALAKE: DataLake cluster in the new data lake scenario

    • OLAP: online analytical processing (OLAP) cluster

    • DATAFLOW: Dataflow cluster

    • DATASERVING: DataServing cluster

    • CUSTOM: custom hybrid cluster

    • HADOOP: Hadoop cluster in the old data lake scenario

  • ClusterStates: an array of cluster states. Valid values:

    • STARTING: The cluster is being started.

    • START_FAILED: The cluster fails to be started.

    • BOOTSTRAPPING: The bootstrap action is being performed for the cluster.

    • RUNNING: The cluster is running.

    • TERMINATING: The cluster is being terminated.

    • TERMINATED: The cluster is terminated.

    • TERMINATED_WITH_ERRORS: The cluster is terminated due to an exception.

    • TERMINATE_FAILED: The cluster fails to be terminated.

  • PaymentTypes: the billing methods. Valid values:

    • Subscription: subscription billing method

    • PayAsYouGo: pay-as-you-go billing method

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ClusterId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::Emr::ECSCluster::ClusterId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "PaymentTypes": [
          "PayAsYouGo"
        ]
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ClusterId:
    Type: String
    AssociationProperty: ALIYUN::Emr::ECSCluster::ClusterId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      PaymentTypes:
        - PayAsYouGo

ALIYUN::Lindorm::Instance::InstanceId

The Lindorm instances.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • SupportEngine: the type of the engine that is supported by the instances. Valid values:

    • 1: LindormSearch

    • 2: LindormTSDB

    • 4: LindormTable

    • 8: LindormDFS

  • ServiceType: the category of the instance. Valid values:

    • lindorm: The instance is a single-zone Lindorm instance.

    • lindorm_multizone: The instance is a multi-zone Lindorm instance.

    • serverless_lindorm: The instance is a Lindorm Serverless instance.

    • lindorm_standalone: The instance is a single-node Lindorm instance.

    • lts: The instance is a Lindorm Tunnel Service (LTS) instance.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "LindormInstanceId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::Lindorm::Instance::InstanceId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "SupportEngine": 1,
        "ServiceType": "lindorm"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  LindormInstanceId:
    Type: String
    AssociationProperty: ALIYUN::Lindorm::Instance::InstanceId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      SupportEngine: 1
      ServiceType: lindorm

ALIYUN::BSS::PricingModule::ModuleCode

The information about the module of an Alibaba Cloud service.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • ProductCode: the product code.

  • ProductType: the product type.

  • SubscriptionType: the billing method. Valid values:

    • Subscription: subscription billing method

    • PayAsYouGo: pay-as-you-go billing method

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "PricingModule": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::BSS::PricingModule::ModuleCode",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "ProductCode": "rds",
        "ProductType": "rds",
        "SubscriptionType": "PayAsYouGo"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  PricingModule:
    Type: String
    AssociationProperty: ALIYUN::BSS::PricingModule::ModuleCode
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      ProductCode: rds
      ProductType: rds
      SubscriptionType: PayAsYouGo

ALIYUN::NAS::FileSystem::FileSystemId

The information about the file system.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • FileSystemType: the type of the file system. Valid values:

    • all (default): all types of file systems

    • standard: General-purpose NAS file system

    • extreme: Extreme NAS file system

    • cpfs: Cloud Parallel File Storage (CPFS) file system

  • VpcId: the VPC ID.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "NASFileSystemId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::NAS::FileSystem::FileSystemId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "FileSystemType": "all",
        "VpcId": "PayAsYouGo"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  NASFileSystemId:
    Type: String
    AssociationProperty: ALIYUN::NAS::FileSystem::FileSystemId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      FileSystemType: all
      VpcId: PayAsYouGo

ALIYUN::NAS::FileSystem::MountTargetDomain

The address of the mount target.

  • RegionId: the region ID. By default, the region ID of the stack is used.

  • FileSystemId: the ID of the file system.

Sample code

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "NASFileSystemId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::NAS::FileSystem::FileSystemId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "FileSystemType": "all",
        "VpcId": "PayAsYouGo"
      }
    },
    "NASMountTarget": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::NAS::FileSystem::MountTargetDomain",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "FileSystemId": "${NASFileSystemId}"
      }
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  NASFileSystemId:
    Type: String
    AssociationProperty: ALIYUN::NAS::FileSystem::FileSystemId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      FileSystemType: all
      VpcId: PayAsYouGo
  NASMountTarget:
    Type: String
    AssociationProperty: ALIYUN::NAS::FileSystem::MountTargetDomain
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      FileSystemId: ${NASFileSystemId}

Example 1: AssociationProperty

In this example, AssociationProperty is set to ALIYUN::ECS::Image::ImageId to query the IDs of all images in the specified region.

JSON format:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "UserName": {
      "Label": "Username",
      "Description": "Enter the username",
      "Default": "anonymous",
      "Type": "String",
      "MinLength": "6",
      "MaxLength": "12",
      "AllowedValues": [
        "anonymous",
        "user-one",
        "user-two"
      ]
    },
    "PassWord": {
      "Label": "Password",
      "NoEcho": "True",
      "Description": "Enter the password",
      "Type": "String",
      "MinLength": "1",
      "MaxLength": "41",
      "AllowedPattern": "[a-zA-Z0-9]*"
    },
    "ImageId": {
      "Label": "Image",
      "Type": "String",
      "Description": "Select an image",
      "AssociationProperty": "ALIYUN::ECS::Image::ImageId",
      "Default": "centos_7_7_x64_20G_alibase_2020****.vhd"
    }
  }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  UserName:
    Label: Username
    Description: Enter the username
    Default: anonymous
    Type: String
    MinLength: '6'
    MaxLength: '12'
    AllowedValues:
      - anonymous
      - user-one
      - user-two
  PassWord:
    Label: Password
    NoEcho: 'True'
    Description: Enter the password
    Type: String
    MinLength: '1'
    MaxLength: '41'
    AllowedPattern: '[a-zA-Z0-9]*'
  ImageId:
    Label: Image
    Type: String
    Description: Select an image
    AssociationProperty: ALIYUN::ECS::Image::ImageId
    Default: centos_7_7_x64_20G_alibase_2020****.vhd

The following section describes the parameters:

  • UserName: the username. The value is of the string data type and must be 6 to 12 characters in length. Valid values:

    • anonymous (default)

    • user-one

    • user-two

  • PassWord: the password. The value is of the string data type. No default value is provided. The value must be 1 to 41 characters in length, and can contain letters and digits.

    NoEcho is set to true. A value of true specifies that ROS returns a password masked as asterisks (*) after you query the stack.

  • ImageId: the image ID. The value is of the string data type.

    AssociationProperty is set to ALIYUN::ECS::Image::ImageId. This way, the ROS console checks whether the ID of the specified image is available when you create the stack. The ROS console also displays the IDs of other images that are available in the same region as the specified image in a drop-down list.

Example 2: AssociationPropertyMetadata

In this example, AssociationProperty and AssociationPropertyMetadata are specified to query the vSwitch of the specified VPC and zone. For AssociationPropertyMetadata, RegionId is set to the literal value cn-hangzhou, VpcId is set to the variable ${VpcId}, and ZoneId is set to the variable ${EcsZone}. ${VpcId} varies based on the value of ALIYUN::ECS::VPC::VPCId, and ${EcsZone} varies based on the value of ZoneId. This way, the vSwitch is associated with the specified VPC and zone.

JSON format:

{
 "ROSTemplateFormatVersion": "2015-09-01",
 "Parameters": {
  "VpcId": {
   "Type": "String",
   "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
  },
  "EcsZone": {
   "Type": "String",
   "AssociationProperty": "ZoneId"
  },
  "VSwitchId": {
   "Type": "String",
   "AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
   "AssociationPropertyMetadata": {
           "RegionId": "cn-hangzhou",
           "VpcId": "${VpcId}",
           "ZoneId": "${EcsZone}"
   }
  }
 }
}

YAML format:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  EcsZone:
    Type: String
    AssociationProperty: ZoneId
  VSwitchId:
    Type: String
    AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      RegionId: cn-hangzhou
      VpcId: ${VpcId}
      ZoneId: ${EcsZone}

Example 3: Automatic conversion of Terraform

If you set AssociationProperty to Auto, ROS automatically generates parameters, such as AssociationProperty and AssociationPropertyMetadata, based on the original data structure of Terraform.

  • Complete sample code of the template

    variable "user_information" {
      type = object({
        name    = string
        address = string
      })
      description = <<EOT
      {
        "AssociationProperty": "Auto",
        "AssociationPropertyMetadata": {
          "Overwrite": {
            "name": {
              "Label": {
                 
                "en": "Name"
              }
            }
          }
        }
      }
      EOT
    }
    
    variable "region_ids" {
      type    = list(string)
      description = <<EOT
      {
        "AssociationProperty": "Auto",
        "AssociationPropertyMetadata": {
          "Overwrite": {
            "*": {
              "AssociationProperty": "ALIYUN::ECS::RegionId"
            }
          }
        }
      }
      EOT
    }
    
    variable "docker_ports" {
      type = list(object({
        internal = number
        external = number
        protocol = string
      }))
      description = <<EOT
      {
        "AssociationProperty": "Auto",
        "AssociationPropertyMetadata": {
          "Overwrite": {
            "protocol": {
              "AllowedValues": ["TCP", "UDP", "ICMP"]
            },
            "internal": {
              "Label": {
                 
                "en": "Internal Port"
              }
            }
          }
        }
      }
      EOT
    }
    
    variable "complex_type_demo" {
      type = list(object({
        b = list(string)
        c = list(object({
          d = list(string)
        }))
        e = list(list(string))
        f = list(list(object({
          g = list(string)
        })))
      }))
      description = <<EOT
      {
        "AssociationProperty": "Auto",
        "AssociationPropertyMetadata": {
            "Overwrite": {
                "b": {
                    "MaxLength": 3,
                    "AssociationPropertyMetadata": {
                        "Something": "123"
                    },
                    "Label": {
                        "zh-cn": "B",
                        "en": "B"
                    }
                },
                "b.*": {
                    "AssociationProperty": "ALIYUN::ECS::RegionId"
                },
                "c": {
                    "Label": {
                        "zh-cn": "C",
                        "en": "C"
                    }
                },
                "c.d": {
                    "Label": {
                        "zh-cn": "C/D",
                        "en": "C/D"
                    }
                },
                "c.d.*": {
                    "AssociationProperty": "ALIYUN::ECS::RegionId"
                },
                "e": {
                    "Label": {
                        "zh-cn": "E",
                        "en": "E"
                    }
                },
                "e.*": {
                    "MaxLength": 3
                },
                "e.*.*": {
                    "AssociationProperty": "ALIYUN::ECS::RegionId"
                },
                "f.g": {
                    "Label": {
                        "zh-cn": "F/G",
                        "en": "F/G"
                    }
                },
                "f.g.*": {
                    "AssociationProperty": "ALIYUN::ECS::RegionId"
                }
            }
        }
      }
      EOT
    }
  • Sample code of the template after user_information is converted

    {
      "AssociationPropertyMetadata":{
        "Parameters":{
          "address":{
            "Type":"String"
          },
          "name":{
            "Type":"String",
            "Label":{
              "en":"Name",
               
            }
          }
        }
      }
    }
  • Sample code of the template after region_ids is converted

    {
      "AssociationPropertyMetadata":{
        "Parameter":{
          "AssociationProperty":"ALIYUN::ECS::RegionId",
          "Type":"String"
        }
      },
      "AssociationProperty":"List[Parameter]"
    }
  • Sample code of the template after docker_ports is converted

    {
      "AssociationPropertyMetadata":{
        "Parameters":{
          "internal":{
            "Type":"Number",
            "Label":{
              "en":"Internal Port",
               
            }
          },
          "protocol":{
            "Type":"String",
            "AllowedValues":[
              "TCP",
              "UDP",
              "ICMP"
            ]
          },
          "external":{
            "Type":"Number"
          }
        }
      },
      "AssociationProperty":"List[Parameters]"
    }
  • Sample code of the template after complex_type_demo is converted

    {
      "AssociationPropertyMetadata":{
        "Parameter":{
          "AssociationPropertyMetadata":{
            "Parameters":{
              "b":{
                "AssociationPropertyMetadata":{
                  "Parameter":{
                    "AssociationProperty":"ALIYUN::ECS::RegionId",
                    "Type":"String"
                  },
                  "Something":"123"
                },
                "AssociationProperty":"List[Parameter]",
                "Type":"Json",
                "Label":{
                  "en":"B",
                  "zh-cn":"B"
                },
                "MaxLength":3
              },
              "c":{
                "AssociationPropertyMetadata":{
                  "Parameter":{
                    "AssociationPropertyMetadata":{
                      "Parameters":{
                        "d":{
                          "AssociationPropertyMetadata":{
                            "Parameter":{
                              "AssociationProperty":"ALIYUN::ECS::RegionId",
                              "Type":"String"
                            }
                          },
                          "AssociationProperty":"List[Parameter]",
                          "Type":"Json",
                          "Label":{
                            "en":"C/D",
                            "zh-cn":"C/D"
                          }
                        }
                      }
                    },
                    "Type":"Json"
                  }
                },
                "AssociationProperty":"List[Parameter]",
                "Type":"Json",
                "Label":{
                  "en":"C",
                  "zh-cn":"C"
                }
              },
              "e":{
                "AssociationPropertyMetadata":{
                  "Parameter":{
                    "AssociationPropertyMetadata":{
                      "Parameter":{
                        "AssociationProperty":"ALIYUN::ECS::RegionId",
                        "Type":"String"
                      }
                    },
                    "AssociationProperty":"List[Parameter]",
                    "Type":"Json",
                    "MaxLength":3
                  }
                },
                "AssociationProperty":"List[Parameter]",
                "Type":"Json",
                "Label":{
                  "en":"E",
                  "zh-cn":"E"
                }
              },
              "f":{
                "AssociationPropertyMetadata":{
                  "Parameter":{
                    "AssociationPropertyMetadata":{
                      "Parameter":{
                        "AssociationPropertyMetadata":{
                          "Parameters":{
                            "g":{
                              "AssociationPropertyMetadata":{
                                "Parameter":{
                                  "AssociationProperty":"ALIYUN::ECS::RegionId",
                                  "Type":"String"
                                }
                              },
                              "AssociationProperty":"List[Parameter]",
                              "Type":"Json",
                              "Label":{
                                "en":"F/G",
                                "zh-cn":"F/G"
                              }
                            }
                          }
                        },
                        "Type":"Json"
                      }
                    },
                    "AssociationProperty":"List[Parameter]",
                    "Type":"Json"
                  }
                },
                "AssociationProperty":"List[Parameter]",
                "Type":"Json"
              }
            }
          },
          "Type":"Json"
        }
      },
      "AssociationProperty":"List[Parameter]"
    }

More examples

You can use AssociationProperty and AssociationPropertyMetadata to perform the following operations: