Crea una instancia de Realtime Compute for Apache Flink con modelo de facturación por suscripción o pay-as-you-go.
Sintaxis
{
"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
}
}
Propiedades
|
Propiedad |
Tipo |
Obligatorio |
Editable |
Descripción |
Restricción |
|
InstanceName |
String |
Sí |
No |
Nombre de la instancia. |
Ninguna. |
|
VpcId |
String |
Sí |
No |
ID de la VPC. |
Ninguna. |
|
ZoneId |
String |
Sí |
No |
ID de zona de la instancia. |
Ninguna. |
|
Bucket |
String |
Sí |
No |
Nombre del bucket de Object Storage Service (OSS). |
Ninguna. |
|
VSwitchIds |
List |
Sí |
No |
ID de los vSwitch. |
Ninguna. |
|
PricingCycle |
String |
No |
No |
Unidad de duración de la suscripción. |
Valores válidos:
|
|
ChargeType |
String |
Sí |
No |
Método de facturación de la instancia. |
Valores válidos:
|
|
AutoRenew |
Boolean |
No |
No |
Especifica si se habilita la renovación automática. |
Valores válidos:
|
|
PromotionCode |
String |
No |
No |
Código de cupón. |
Ninguna. |
|
ResourceSpec |
Map |
No |
Sí |
Especificaciones de recursos. |
Para más información, consulte ResourceSpec properties. |
|
Duration |
Integer |
No |
No |
Duración de la suscripción. |
Nota
Esta propiedad es obligatoria si establece la propiedad ChargeType en PRE. |
|
UsePromotionCode |
Boolean |
No |
No |
Especifica si se usa un cupón. |
Valores válidos:
|
Sintaxis de ResourceSpec
"ResourceSpec": {
"Cpu": Integer,
"MemoryGB": Integer
}
Propiedades de ResourceSpec
|
Propiedad |
Tipo |
Obligatorio |
Editable |
Descripción |
Restricción |
|
Cpu |
Integer |
No |
Sí |
Número de vCPU. |
Ninguna. |
|
MemoryGB |
Integer |
No |
Sí |
Tamaño de memoria en GB. |
Unidad: GB. Nota
El valor de la propiedad MemoryGB debe ser cuatro veces el valor de la propiedad Cpu. |
Valores de retorno
Fn::GetAtt
InstanceId: ID de la instancia.
OrderId: ID del pedido.
WorkspaceId: ID del espacio de trabajo.
Ejemplos
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"
]
}
}
}
}