Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::EMR::ClusterServiceConfigs

Última atualização: Jun 27, 2026

Cria ou modifica as configurações de um serviço específico em um cluster.

Sintaxe

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

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ClusterId

String

Sim

Não

ID do cluster.

Nenhuma

ServiceConfigs

List

Sim

Sim

Configurações do serviço.

Para mais informações, consulte Propriedades de ServiceConfigs.

Sintaxe de ServiceConfigs

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

Propriedades de ServiceConfigs

Propriedade Tipo Obrigatória Editável Descrição Restrição
Comment String Não Sim Descrição do serviço. Nenhuma
GatewayClusterIdList List Não Não Lista de IDs de clusters de gateway. Separe vários IDs de clusters de gateway com vírgulas (,).
ServiceName String Sim Não Nome do serviço. Nenhuma
CustomConfigParams String Não Sim Parâmetros de configuração personalizados. Nenhuma
RefreshHostConfig Boolean Não Não Indica se o comando configure deve ser executado imediatamente após a criação ou modificação das configurações. Valores válidos:
  • true
  • false
HostInstanceId String Não Sim ID da instância de host, geralmente um ID de instância do Elastic Compute Service (ECS). Nenhuma
ConfigType String Não Não Tipo das configurações. Nenhuma
ConfigParams String Sim Sim Conteúdo da configuração. O valor é uma string JSON.
GroupId String Não Sim ID do grupo de hosts. Nenhuma

Parâmetros de resposta

Fn::GetAtt

ClusterId: ID do cluster.

Exemplos

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ClusterId": {
      "Type": "String",
      "Description": "The ID of the cluster."
    },
    "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.",
      "Value": {
        "Fn::GetAtt": [
          "EMRClusterServiceConfigs",
          "ClusterId"
        ]
      }
    }
  }
}

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ClusterId:
    Description: The ID of the cluster.
    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.
    Value:
      Fn::GetAtt:
      - EMRClusterServiceConfigs
      - ClusterId