Cria uma instância do Realtime Compute for Apache Flink com cobrança por assinatura ou pagamento conforme o uso.
Sintaxe
{
"Type": "ALIYUN::Flink::Instance",
"Properties": {
"InstanceName": String,
"VpcId": String,
"ZoneId": String,
"Bucket": String,
"VSwitchIds": List,
"PricingCycle": String,
"ChargeType": String,
"AutoRenew": Boolean,
"PromotionCode": String,
"ResourceSpec": Map,
"Duration": Integer,
"UsePromotionCode": Boolean
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
InstanceName |
String |
Sim |
Não |
Nome da instância. |
Nenhuma. |
|
VpcId |
String |
Sim |
Não |
ID da VPC. |
Nenhuma. |
|
ZoneId |
String |
Sim |
Não |
ID da zona da instância. |
Nenhuma. |
|
Bucket |
String |
Sim |
Não |
Nome do bucket do Object Storage Service (OSS). |
Nenhuma. |
|
VSwitchIds |
List |
Sim |
Não |
IDs dos vSwitches. |
Nenhuma. |
|
PricingCycle |
String |
Não |
Não |
Unidade de tempo da duração da assinatura. |
Valores válidos:
|
|
ChargeType |
String |
Sim |
Não |
Método de faturamento da instância. |
Valores válidos:
|
|
AutoRenew |
Boolean |
Não |
Não |
Indica se a renovação automática está ativada. |
Valores válidos:
|
|
PromotionCode |
String |
Não |
Não |
Código do cupom. |
Nenhuma. |
|
ResourceSpec |
Map |
Não |
Sim |
Especificações de recursos. |
Para mais informações, consulte Propriedades de ResourceSpec. |
|
Duration |
Integer |
Não |
Não |
Duração da assinatura. |
Nota
Esta propriedade é obrigatória quando ChargeType é definido como PRE. |
|
UsePromotionCode |
Boolean |
Não |
Não |
Indica se um cupom será utilizado. |
Valores válidos:
|
Sintaxe de ResourceSpec
"ResourceSpec": {
"Cpu": Integer,
"MemoryGB": Integer
}
Propriedades de ResourceSpec
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Cpu |
Integer |
Não |
Sim |
Número de vCPUs. |
Nenhuma. |
|
MemoryGB |
Integer |
Não |
Sim |
Tamanho da memória em GB. |
Unidade: GB. Nota
O valor de MemoryGB deve ser quatro vezes o valor de Cpu. |
Valores de retorno
Fn::GetAtt
InstanceId: ID da instância.
OrderId: ID do pedido.
WorkspaceId: ID do workspace.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceName:
Type: String
Description: The name of instance.
AllowedPattern: ^[a-z][a-z0-9-]{1,60}
VpcId:
Type: String
Description: VPC ID.
ZoneId:
Type: String
Description: The available area ID of the instance.
Bucket:
Type: String
Description: OSS bucket name.
VSwitchIds:
Type: CommaDelimitedList
Description: Virtual switch ID.
ChargeType:
Type: String
Description: |-
The payment type, the value of the value is as follows:
POST: pay as you go.
PRE: subscription.
AllowedValues:
- PayAsYouGo
- PostPaid
- PayOnDemand
- Postpaid
- PostPay
- POST
- Subscription
- PrePaid
- PrePay
- Prepaid
- PRE
Resources:
Instance:
Type: ALIYUN::Flink::Instance
Properties:
InstanceName:
Ref: InstanceName
VpcId:
Ref: VpcId
ZoneId:
Ref: ZoneId
Bucket:
Ref: Bucket
VSwitchIds:
Ref: VSwitchIds
ChargeType:
Ref: ChargeType
Outputs:
InstanceId:
Description: Instance ID.
Value:
Fn::GetAtt:
- Instance
- InstanceId
OrderId:
Description: Order information.
Value:
Fn::GetAtt:
- Instance
- OrderId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceName": {
"Type": "String",
"Description": "The name of instance.",
"AllowedPattern": "^[a-z][a-z0-9-]{1,60}"
},
"VpcId": {
"Type": "String",
"Description": "VPC ID."
},
"ZoneId": {
"Type": "String",
"Description": "The available area ID of the instance."
},
"Bucket": {
"Type": "String",
"Description": "OSS bucket name."
},
"VSwitchIds": {
"Type": "CommaDelimitedList",
"Description": "Virtual switch ID."
},
"ChargeType": {
"Type": "String",
"Description": "The payment type, the value of the value is as follows:\nPOST: pay as you go.\nPRE: subscription.",
"AllowedValues": [
"PayAsYouGo",
"PostPaid",
"PayOnDemand",
"Postpaid",
"PostPay",
"POST",
"Subscription",
"PrePaid",
"PrePay",
"Prepaid",
"PRE"
]
}
},
"Resources": {
"Instance": {
"Type": "ALIYUN::Flink::Instance",
"Properties": {
"InstanceName": {
"Ref": "InstanceName"
},
"VpcId": {
"Ref": "VpcId"
},
"ZoneId": {
"Ref": "ZoneId"
},
"Bucket": {
"Ref": "Bucket"
},
"VSwitchIds": {
"Ref": "VSwitchIds"
},
"ChargeType": {
"Ref": "ChargeType"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "Instance ID.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
},
"OrderId": {
"Description": "Order information.",
"Value": {
"Fn::GetAtt": [
"Instance",
"OrderId"
]
}
}
}
}