Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ARMS::EnvCustomJob

Última atualização: Jun 27, 2026

Cria um job personalizado para um ambiente.

Sintaxe

{
  "Type": "ALIYUN::ARMS::EnvCustomJob",
  "Properties": {
    "ConfigYaml": String,
    "EnvironmentId": String,
    "EnvCustomJobName": String,
    "AliyunLang": String
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualize permitida

Descrição

Restrições

ConfigYaml

String

Sim

Sim

String de configuração YAML do job personalizado.

Nenhuma

EnvCustomJobName

String

Sim

Não

Nome do job personalizado.

Nenhuma

EnvironmentId

String

Sim

Não

ID da instância de ambiente.

Nenhuma

AliyunLang

String

Não

Não

Idioma da resposta.

Valores válidos: zh e en.

Valor padrão: zh.

Valores de retorno

Fn::GetAtt

  • EnvironmentId: ID da instância de ambiente.

  • EnvCustomJobName: Nome do job personalizado.

  • ConfigYaml: String de configuração YAML do job personalizado.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  EnvironmentId:
    Type: String
    Description: The ID of the environment instance.
    Required: true
  EnvCustomJobName:
    Type: String
    Description: The name of the custom job.
    Required: true
  ConfigYaml:
    Type: String
    Description: The YAML configuration string of the custom job.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ARMS::EnvCustomJob
    Properties:
      EnvironmentId:
        Ref: EnvironmentId
      EnvCustomJobName:
        Ref: EnvCustomJobName
      ConfigYaml:
        Ref: ConfigYaml
Outputs:
  EnvironmentId:
    Description: The ID of the environment instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EnvironmentId
  EnvCustomJobName:
    Description: The name of the custom job.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EnvCustomJobName
  ConfigYaml:
    Description: The YAML configuration string of the custom job.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ConfigYaml
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "EnvironmentId": {
      "Type": "String",
      "Description": "The ID of the environment instance.",
      "Required": true
    },
    "EnvCustomJobName": {
      "Type": "String",
      "Description": "The name of the custom job.",
      "Required": true
    },
    "ConfigYaml": {
      "Type": "String",
      "Description": "The YAML configuration string of the custom job.",
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ARMS::EnvCustomJob",
      "Properties": {
        "EnvironmentId": {
          "Ref": "EnvironmentId"
        },
        "EnvCustomJobName": {
          "Ref": "EnvCustomJobName"
        },
        "ConfigYaml": {
          "Ref": "ConfigYaml"
        }
      }
    }
  },
  "Outputs": {
    "EnvironmentId": {
      "Description": "The ID of the environment instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EnvironmentId"
        ]
      }
    },
    "EnvCustomJobName": {
      "Description": "The name of the custom job.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EnvCustomJobName"
        ]
      }
    },
    "ConfigYaml": {
      "Description": "The YAML configuration string of the custom job.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ConfigYaml"
        ]
      }
    }
  }
}