Cria um grupo de recursos serverless do DataWorks.
Sintaxe
{
"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
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Name |
String |
Sim |
Sim |
Nome do grupo de recursos serverless. |
O nome pode ter até 128 caracteres e conter letras, dígitos e sublinhados (_). Deve começar com uma letra. |
|
PaymentType |
String |
Sim |
Não |
Método de faturamento do grupo de recursos serverless. |
Valores válidos:
|
|
VpcId |
String |
Sim |
Não |
ID da VPC associada por padrão ao grupo de recursos serverless. |
Nenhuma. |
|
VSwitchId |
String |
Sim |
Não |
ID do vSwitch associado por padrão ao grupo de recursos serverless. |
Nenhuma. |
|
AutoRenewEnabled |
Boolean |
Não |
Não |
Indica se a renovação automática está ativada para o grupo de recursos serverless. |
Nenhuma. |
|
PaymentDurationUnit |
String |
Não |
Não |
Unidade do ciclo de faturamento. |
Valores válidos:
|
|
PaymentDuration |
Integer |
Não |
Não |
Ciclo de faturamento. |
Valores válidos: 1 a 9. |
|
ResourceGroupId |
String |
Não |
Sim |
ID do grupo de recursos da Alibaba Cloud. |
Nenhuma. |
|
Remark |
String |
Não |
Sim |
Descrição do grupo de recursos serverless. |
A descrição pode ter até 128 caracteres e conter letras, dígitos e sublinhados (_). |
|
Spec |
Integer |
Não |
Não |
Especificação do grupo de recursos serverless. |
Unidade: CU. Defina esta propriedade quando PaymentType for PrePaid. |
|
Tags |
List |
Não |
Não |
As tags. |
Adicione até 20 tags. Para mais informações, consulte Propriedades de Tags. |
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag. |
Nenhuma. |
|
Value |
String |
Não |
Não |
Valor da tag. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
Id: o ID do grupo de recursos serverless.
Exemplos
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"
]
}
}
}
}