すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::EMR::ClusterServiceConfigs

最終更新日:Jan 16, 2025

ALIYUN::EMR::ClusterServiceConfigs は、クラスター内の指定されたサービスの構成を作成または変更するために使用されます。

構文

{
  "Type": "ALIYUN::EMR::ClusterServiceConfigs",
  "Properties": {
    "ClusterId": String,
    "ServiceConfigs": List
  }
}

プロパティ

プロパティ必須編集可能説明制約
ClusterIdStringはいいいえクラスターの ID です。なし
ServiceConfigsListはいはいサーバーの構成です。詳細については、ServiceConfigs プロパティ をご参照ください。

ServiceConfigs 構文

"ServiceConfigs": [
  {
    "Comment": String,
    "GatewayClusterIdList": List,
    "ServiceName": String,
    "CustomConfigParams": String,
    "RefreshHostConfig": Boolean,
    "HostInstanceId": String,
    "ConfigType": String,
    "ConfigParams": String,
    "GroupId": String
  }
]

ServiceConfigs プロパティ

プロパティ必須編集可能説明制約
CommentStringいいえはいサービスの説明です。なし
GatewayClusterIdListListいいえいいえゲートウェイクラスター ID のリストです。複数のゲートウェイクラスター ID はコンマ (,) で区切ります。
ServiceNameStringはいいいえサービスの名前です。なし
CustomConfigParamsStringいいえはいカスタム構成です。なし
RefreshHostConfigBooleanいいえいいえ構成の作成または変更後すぐに構成コマンドを実行するかどうかを指定します。有効な値:
  • true
  • false
HostInstanceIdStringいいえはいホストインスタンスの ID です。ほとんどの場合、このパラメーターは Elastic Compute Service (ECS) インスタンスの ID に設定されます。なし
ConfigTypeStringいいえいいえ構成のタイプです。なし
ConfigParamsStringはいはい構成の指定されたコンテンツです。パラメーター値は JSON 文字列です。
GroupIdStringいいえはいホストグループの ID です。なし

レスポンスパラメーター

Fn::GetAtt

ClusterId: クラスターの ID です。

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ClusterId": {
      "Type": "String",
      "Description": "The ID of the cluster." // クラスターのID。
    },
    "ServiceConfigs": {
      "Type": "Json",
      "Description": "Server configs" // サーバー構成
    }
  },
  "Resources": {
    "EMRClusterServiceConfigs": {
      "Type": "ALIYUN::EMR::ClusterServiceConfigs",
      "Properties": {
        "ClusterId": {
          "Ref": "ClusterId"
        },
        "ServiceConfigs": {
          "Ref": "ServiceConfigs"
        }
      }
    }
  },
  "Outputs": {
    "ClusterId": {
      "Description": "The ID of the cluster.", // クラスターのID。
      "Value": {
        "Fn::GetAtt": [
          "EMRClusterServiceConfigs",
          "ClusterId"
        ]
      }
    }
  }
}

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ClusterId:
    Description: The ID of the cluster. # クラスターのID。
    Type: String
  ServiceConfigs:
    Description: Server configs # サーバー構成
    Type: Json
Resources:
  EMRClusterServiceConfigs:
    Properties:
      ClusterId:
        Ref: ClusterId
      ServiceConfigs:
        Ref: ServiceConfigs
    Type: ALIYUN::EMR::ClusterServiceConfigs
Outputs:
  ClusterId:
    Description: The ID of the cluster. # クラスターのID。
    Value:
      Fn::GetAtt:
      - EMRClusterServiceConfigs
      - ClusterId