ALIYUN::Flink::Namespace creates a project within a Flink workspace.
Syntax
{
"Type": "ALIYUN::Flink::Namespace",
"Properties": {
"InstanceId": String,
"ResourceSpec": Map,
"Namespace": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
InstanceId |
String |
Yes |
No |
The ID of the instance. |
None. |
|
ResourceSpec |
Map |
No |
Yes |
The resource specifications of the project. |
For more information, see ResourceSpec properties. |
|
Namespace |
String |
Yes |
No |
The name of the project. |
None. |
ResourceSpec syntax
"ResourceSpec": {
"Cpu": Integer,
"MemoryGB": Integer
}
ResourceSpec properties
| Property | Type | Required | Editable | Description | Constraint |
| Cpu | Integer | No | Yes | The number of vCPUs allocated to the project. | Required if the project uses the subscription billing method. Note
The configured vCPU count must be less than the remaining vCPUs in the workspace. Remaining vCPUs in workspace = Total vCPUs in workspace - vCPUs allocated to projects. |
| MemoryGB | Integer | No | Yes | The memory size allocated to the project, in GB. |
Required if the project uses the subscription billing method. Must be four times the value of Cpu. Note
The configured memory size must be less than the remaining memory in the workspace. Remaining memory in workspace = Total memory in workspace - Memory allocated to projects. |
Return values
Fn::GetAtt
InstanceId: the ID of the instance.
Namespace: the name of the project.
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": "Instance ID."
},
"Namespace": {
"Type": "String",
"Description": "Project space name.",
"AllowedPattern": "^[a-z][a-z0-9-]{1,60}"
}
},
"Resources": {
"FlinkNamespace": {
"Type": "ALIYUN::Flink::Namespace",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"Namespace": {
"Ref": "Namespace"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "Instance ID.",
"Value": {
"Fn::GetAtt": [
"FlinkNamespace",
"InstanceId"
]
}
},
"Namespace": {
"Description": "Project space name.",
"Value": {
"Fn::GetAtt": [
"FlinkNamespace",
"Namespace"
]
}
}
}
}