ALIYUN::ARMS::EnvironmentFeature

ALIYUN::ARMS::EnvironmentFeature类型用于安装Feature。

语法

{
  "Type": "ALIYUN::ARMS::EnvironmentFeature",
  "Properties": {
    "EnvironmentId": String,
    "FeatureVersion": String,
    "FeatureName": String,
    "Config": Map
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

EnvironmentId

String

环境 ID。

FeatureVersion

String

Feature 的版本信息。

FeatureName

String

Feature 的名称。

Config

Map

Feature 的元数据信息。

返回值

Fn::GetAtt

  • EnvironmentId:环境 ID。

  • FeatureStatus:Feature 的运行状态。

  • Feature:Feature 安装信息。

  • FeatureName:Feature 的名称。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionResource:
        Type: ALIYUN::ARMS::EnvironmentFeature
        Properties:
          EnvironmentId: env-xxxxx
          FeatureVersion: 1.1.17
          FeatureName: metric-agent
    Outputs:
      EnvironmentId:
        Description: The environment ID.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - EnvironmentId
      FeatureStatus:
        Description: The status of the feature.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - FeatureStatus
      Feature:
        Description: The installation information of the feature.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Feature
      FeatureName:
        Description: The name of the feature.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - FeatureName
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::ARMS::EnvironmentFeature",
          "Properties": {
            "EnvironmentId": "env-xxxxx",
            "FeatureVersion": "1.1.17",
            "FeatureName": "metric-agent"
          }
        }
      },
      "Outputs": {
        "EnvironmentId": {
          "Description": "The environment ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "EnvironmentId"
            ]
          }
        },
        "FeatureStatus": {
          "Description": "The status of the feature.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "FeatureStatus"
            ]
          }
        },
        "Feature": {
          "Description": "The installation information of the feature.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Feature"
            ]
          }
        },
        "FeatureName": {
          "Description": "The name of the feature.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "FeatureName"
            ]
          }
        }
      }
    }