All Products
Search
Document Center

Resource Orchestration Service:RAM resources

Last Updated:Jun 22, 2026

Lists the AssociationProperty values available for Resource Access Management (RAM) resources in ROS templates, along with their metadata parameters and usage examples.

AssociationProperty values

Description

Corresponding AssociationPropertyMetadata

ALIYUN::RAM::Role

RAM role.

RegionId: The region ID (defaults to the stack's region).

Examples:

  • Example code

    JSON example:

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

    YAML example:

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

    Sets `AssociationProperty` to `ALIYUN::RAM::Role` with `RegionId` metadata to retrieve RAM roles in the current region.

ALIYUN::RAM::User

RAM user.

RegionId: The region ID (defaults to the stack's region).

Examples:

  • Example code

    JSON example:

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

    YAML example:

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

    Sets `AssociationProperty` to `ALIYUN::RAM::User` with `RegionId` metadata to retrieve RAM users in the current region.