Cria um cluster de gateway do Cloud Storage Gateway (CSG).
Sintaxe
{
"Type": "ALIYUN::CloudStorageGateway::StorageBundle",
"Properties": {
"Description": String,
"StorageBundleName": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
StorageBundleName |
String |
Sim |
Sim |
Nome do cluster de gateway. |
O nome deve ter de 1 a 60 caracteres e pode conter letras, dígitos, pontos (.), sublinhados (_) e hifens (-). Deve começar com uma letra. |
|
Description |
String |
Não |
Sim |
Descrição do cluster de gateway. |
A descrição pode ter até 128 caracteres. |
Valores de retorno
Fn::GetAtt
Description: descrição do cluster de gateway.
CreateTime: data e hora de criação do cluster de gateway.
StorageBundleId: ID do cluster de gateway.
StorageBundleName: nome do cluster de gateway.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
AssociationProperty: TextArea
Description:
en: The description of the gateway cluster. The description must be 0 to 128
characters in length.
Required: false
Type: String
StorageBundleName:
Description:
en: The name of the gateway cluster. The name must be 1 to 60 characters in
length and can contain letters, digits, periods (.), underscores (_), and
hyphens (-). It must start with a letter.
Required: true
Type: String
Resources:
ExtensionResource:
Properties:
Description:
Ref: Description
StorageBundleName:
Ref: StorageBundleName
Type: ALIYUN::CloudStorageGateway::StorageBundle
Outputs:
CreateTime:
Description: Create a gateway cluster timestamp.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description:
Description: Gateway cluster description.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
StorageBundleId:
Description: The ID of the gateway cluster.
Value:
Fn::GetAtt:
- ExtensionResource
- StorageBundleId
StorageBundleName:
Description: Gateway cluster name.
Value:
Fn::GetAtt:
- ExtensionResource
- StorageBundleName
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"AssociationProperty": "TextArea",
"Type": "String",
"Description": {
"en": "The description of the gateway cluster. The description must be 0 to 128 characters in length."
},
"Required": false
},
"StorageBundleName": {
"Type": "String",
"Description": {
"en": "The name of the gateway cluster. The name must be 1 to 60 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CloudStorageGateway::StorageBundle",
"Properties": {
"Description": {
"Ref": "Description"
},
"StorageBundleName": {
"Ref": "StorageBundleName"
}
}
}
},
"Outputs": {
"Description": {
"Description": "Gateway cluster description.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"CreateTime": {
"Description": "Create a gateway cluster timestamp.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"StorageBundleId": {
"Description": "The ID of the gateway cluster.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StorageBundleId"
]
}
},
"StorageBundleName": {
"Description": "Gateway cluster name.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StorageBundleName"
]
}
}
}
}