ALIYUN::CloudPhone::Image类型用于创建一份云手机自定义镜像。
语法
{
"Type": "ALIYUN::CloudPhone::Image",
"Properties": {
"ImageName": String,
"Description": String,
"InstanceId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
InstanceId | String | 是 | 否 | 云手机实例 ID。 | 无 |
Description | String | 否 | 是 | 镜像的描述信息。 | 长度为2~256个英文或中文字符,不能以 |
ImageName | String | 否 | 是 | 镜像名称。 | 长度为2~128个英文或中文字符。必须以大小字母或中文开头,不能以 |
返回值
Fn::GetAtt
ImageName:镜像名称。
Usage:镜像是否已经运行在云手机实例中。
Progress:镜像的制作进度。
Description:镜像描述。
IsSelfShared:该镜像是否已共享给其他用户。
Platform:操作系统发行版。
OsNameEn:操作系统的英文显示名称。
OsType:操作系统类型。
OsName:操作系统的中文显示名称。
CreateTime:创建镜像的时间。
ImageId:镜像ID。
ImageCategory:镜像来源。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
AssociationProperty: TextArea
Description:
en: The image description. The description must be 2 to 256 characters in length.
It cannot start with http:// or https://.
Required: false
Type: String
ImageName:
Description:
en: The image name. The name must be 2 to 128 characters in length. It can contain
letters, digits, colons (:), underscores (_), and hyphens (-). The name must
start with a letter but cannot start with http:// or https://.
Required: false
Type: String
InstanceId:
Description:
en: The ID of the mobile phone instance.
Required: true
Type: String
Resources:
ExtensionResource:
Properties:
Description:
Ref: Description
ImageName:
Ref: ImageName
InstanceId:
Ref: InstanceId
Type: ALIYUN::CloudPhone::Image
Outputs:
CreateTime:
Description: The time when the image was created. The time follows the ISO 8601
standard.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description:
Description: 'The image description. '
Value:
Fn::GetAtt:
- ExtensionResource
- Description
ImageCategory:
Description: The image type.
Value:
Fn::GetAtt:
- ExtensionResource
- ImageCategory
ImageId:
Description: The image ID.
Value:
Fn::GetAtt:
- ExtensionResource
- ImageId
ImageName:
Description: The image name.
Value:
Fn::GetAtt:
- ExtensionResource
- ImageName
IsSelfShared:
Description: Indicates whether the image is shared with other Alibaba Cloud accounts.
Value:
Fn::GetAtt:
- ExtensionResource
- IsSelfShared
OsName:
Description: The display name of the OS in Chinese.
Value:
Fn::GetAtt:
- ExtensionResource
- OsName
OsNameEn:
Description: The display name of the OS in English.
Value:
Fn::GetAtt:
- ExtensionResource
- OsNameEn
OsType:
Description: The image OS.
Value:
Fn::GetAtt:
- ExtensionResource
- OsType
Platform:
Description: The OS distribution.
Value:
Fn::GetAtt:
- ExtensionResource
- Platform
Progress:
Description: The progress of image creation.
Value:
Fn::GetAtt:
- ExtensionResource
- Progress
Usage:
Description: Whether the image is already running in the cloud phone instance.
Value:
Fn::GetAtt:
- ExtensionResource
- Usage
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ImageName": {
"Type": "String",
"Description": {
"en": "The image name. The name must be 2 to 128 characters in length. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://."
},
"Required": false
},
"Description": {
"AssociationProperty": "TextArea",
"Type": "String",
"Description": {
"en": "The image description. The description must be 2 to 256 characters in length. It cannot start with http:// or https://."
},
"Required": false
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the mobile phone instance."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CloudPhone::Image",
"Properties": {
"ImageName": {
"Ref": "ImageName"
},
"Description": {
"Ref": "Description"
},
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"ImageName": {
"Description": "The image name.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ImageName"
]
}
},
"Usage": {
"Description": "Whether the image is already running in the cloud phone instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Usage"
]
}
},
"Progress": {
"Description": "The progress of image creation.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Progress"
]
}
},
"Description": {
"Description": "The image description. ",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"IsSelfShared": {
"Description": "Indicates whether the image is shared with other Alibaba Cloud accounts.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"IsSelfShared"
]
}
},
"Platform": {
"Description": "The OS distribution.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Platform"
]
}
},
"OsNameEn": {
"Description": "The display name of the OS in English.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"OsNameEn"
]
}
},
"OsType": {
"Description": "The image OS.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"OsType"
]
}
},
"OsName": {
"Description": "The display name of the OS in Chinese.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"OsName"
]
}
},
"CreateTime": {
"Description": "The time when the image was created. The time follows the ISO 8601 standard.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"ImageId": {
"Description": "The image ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ImageId"
]
}
},
"ImageCategory": {
"Description": "The image type.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ImageCategory"
]
}
}
}
}
文档内容是否对您有帮助?