Todos los productos
Search
Centro de documentos

Resource Orchestration Service:ALIYUN::DataWorks::ResourceGroup

Última actualización: Sep 04, 2026

Crea un resource group serverless de DataWorks.

Sintaxis

{
  "Type": "ALIYUN::DataWorks::ResourceGroup",
  "Properties": {
    "Name": String,
    "PaymentType": String,
    "VpcId": String,
    "VSwitchId": String,
    "AutoRenewEnabled": Boolean,
    "PaymentDurationUnit": String,
    "PaymentDuration": Integer,
    "ResourceGroupId": String,
    "Remark": String,
    "Spec": Integer,
    "Tags": List
  }
}

Propiedades

Propiedad

Tipo

Obligatorio

Editable

Descripción

Restricción

Name

String

Sí

Sí

Nombre del resource group serverless.

El nombre puede tener hasta 128 caracteres y contener letras, dígitos y guiones bajos (_). Debe comenzar con una letra.

PaymentType

String

Sí

No

Método de facturación del resource group serverless.

Valores válidos:

  • PrePaid: suscripción.

  • PostPaid: pay-as-you-go.

VpcId

String

Sí

No

ID de la VPC asociada de forma predeterminada al resource group serverless.

Ninguna.

VSwitchId

String

Sí

No

ID del vSwitch asociado de forma predeterminada al resource group serverless.

Ninguna.

AutoRenewEnabled

Boolean

No

No

Indica si se habilita la renovación automática para el resource group serverless.

Ninguna.

PaymentDurationUnit

String

No

No

Unidad del ciclo de facturación.

Valores válidos:

  • Month

  • Year

PaymentDuration

Integer

No

No

Ciclo de facturación.

Valores válidos:

De 1 a 9.

ResourceGroupId

String

No

Sí

ID del resource group de Alibaba Cloud.

Ninguna.

Remark

String

No

Sí

Descripción del resource group serverless.

La descripción puede tener hasta 128 caracteres y contener letras, dígitos y guiones bajos (_).

Spec

Integer

No

No

Especificación del resource group serverless.

Unidad: CU. Esta propiedad es obligatoria cuando PaymentType se establece en PrePaid.

Tags

List

No

No

Etiquetas.

Puede agregar hasta 20 etiquetas. Para obtener más información, consulte Tags properties.

Sintaxis de Tags

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Propiedades de Tags

Propiedad

Tipo

Obligatorio

Editable

Descripción

Restricción

Key

String

Sí

No

Clave de la etiqueta.

Ninguna.

Value

String

No

No

Valor de la etiqueta.

Ninguna.

Valores de retorno

Fn::GetAtt

Id: ID del resource group serverless.

Ejemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Type: String
    Description:
      en: The default bound VPC ID.
    Required: true
  VSwitchId:
    AssociationPropertyMetadata:
      VpcId: ${VpcId}
      ZoneId: ${ZoneId}
    AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
    Type: String
    Description:
      en: The default bound switch ID.
    Required: true
  PaymentType:
    Type: String
    Description:
      en: The type of payment for resource groups, PrePaid represents annual and monthly payments, and PostPaid represents payment by volume.
    AllowedValues:
      - PayAsYouGo
      - Subscription
    Required: true
  Name:
    Type: String
    Description:
      en: The name of a common resource group that creates a common resource group must start with a letter and can contain letters, numbers, underscores (_), up to 128 characters.
    Required: true
Resources:
  ResourceGroup:
    Type: ALIYUN::DataWorks::ResourceGroup
    Properties:
      VpcId:
        Ref: VpcId
      VSwitchId:
        Ref: VSwitchId
      PaymentType:
        Ref: PaymentType
      Name:
        Ref: Name
Outputs:
  Id:
    Description: Creates a unique identifier for a common resource group.
    Value:
      Fn::GetAtt:
        - ResourceGroup
        - Id
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "Type": "String",
      "Description": {
        "en": "The default bound VPC ID."
      },
      "Required": true
    },
    "VSwitchId": {
      "AssociationPropertyMetadata": {
        "VpcId": "${VpcId}",
        "ZoneId": "${ZoneId}"
      },
      "AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
      "Type": "String",
      "Description": {
        "en": "The default bound switch ID."
      },
      "Required": true
    },
    "PaymentType": {
      "Type": "String",
      "Description": {
        "en": "The type of payment for resource groups, PrePaid represents annual and monthly payments, and PostPaid represents payment by volume."
      },
      "AllowedValues": [
        "PayAsYouGo",
        "Subscription"
      ],
      "Required": true
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of a common resource group that creates a common resource group must start with a letter and can contain letters, numbers, underscores (_), up to 128 characters."
      },
      "Required": true
    }
  },
  "Resources": {
    "ResourceGroup": {
      "Type": "ALIYUN::DataWorks::ResourceGroup",
      "Properties": {
        "VpcId": {
          "Ref": "VpcId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "PaymentType": {
          "Ref": "PaymentType"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "Id": {
      "Description": "Creates a unique identifier for a common resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ResourceGroup",
          "Id"
        ]
      }
    }
  }
}