ALIYUN::ECS::ImageComponent is used to create an image component.
Syntax
{
"Type": "ALIYUN::ECS::ImageComponent",
"Properties": {
"ComponentType": String,
"Description": String,
"ResourceGroupId": String,
"Content": String,
"SystemType": String,
"Tags": List,
"Name": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ComponentType | String | No | No | The type of the image component. | Only image build components are supported. Set the value to Build. |
Description | String | No | No | The description. | The description must be 2 to 256 characters in length. It can contain letters and cannot start with |
ResourceGroupId | String | No | No | The ID of the resource group. | None. |
Content | String | Yes | No | The content of the image component. | The content consist of up to 127 commands. For more information about supported commands and command formats, see Commands supported by Image Builder. |
SystemType | String | No | No | The OS that is supported by the image component. | Only Linux is supported. Set the value to Linux. |
Tags | List | No | No | The tags. | You can add up to 20 tags. For more information, see Tags properties. |
Name | String | No | No | The name of the image component. | The name must be 2 to 128 characters in length. It must start with a letter and cannot start with Note If you leave |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Value | String | No | No | The tag value. | The tag value can be an empty string. The tag value can be up to 128 characters in length, and cannot start with |
Key | String | No | No | The tag key. | The tag key cannot be an empty string. The tag key can be up to 128 characters in length, and cannot start with |
Return values
Fn::GetAtt
ImageComponentId: the ID of the image component.