ALIYUN::ResourceManager::Folder は、フォルダーを作成するために使用されます。
構文
{
"Type": "ALIYUN::ResourceManager::Folder",
"Properties": {
"FolderName": String,
"ParentFolderId": String
}
}プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| FolderName | String | はい | はい | フォルダーの名前。 | 名前は 1 ~ 24 文字で、文字、数字、アンダースコア(_)、ピリオド(.)、ハイフン(-)を含めることができます。 |
| ParentFolderId | String | いいえ | いいえ | 親フォルダーの ID。 | なし |
レスポンスパラメーター
Fn::GetAtt
- FolderId: フォルダーの ID。
- FolderName: フォルダーの名前。
- ParentFolderId: 親フォルダーの ID。
例
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FolderName": {
"Type": "String",
"Description": "The name of the folder" // フォルダーの名前
},
"ParentFolderId": {
"Type": "String",
"Description": "The ID of the parent folder. If not set, the system default value will be used" // 親フォルダーの ID。設定されていない場合は、システムのデフォルト値が使用されます
}
},
"Resources": {
"ResourceManagerFolder": {
"Type": "ALIYUN::ResourceManager::Folder",
"Properties": {
"FolderName": {
"Ref": "FolderName"
},
"ParentFolderId": {
"Ref": "ParentFolderId"
}
}
}
},
"Outputs": {
"FolderId": {
"Description": "The ID of the folder", // フォルダーの ID
"Value": {
"Fn::GetAtt": [
"ResourceManagerFolder",
"FolderId"
]
}
},
"FolderName": {
"Description": "The name of the folder", // フォルダーの名前
"Value": {
"Fn::GetAtt": [
"ResourceManagerFolder",
"FolderName"
]
}
},
"ParentFolderId": {
"Description": "The ID of the parent folder. If not set, the system default value will be used", // 親フォルダーの ID。設定されていない場合は、システムのデフォルト値が使用されます
"Value": {
"Fn::GetAtt": [
"ResourceManagerFolder",
"ParentFolderId"
]
}
}
}
}YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FolderName:
Type: String
Description: The name of the folder # フォルダーの名前
ParentFolderId:
Type: String
Description: >-
The ID of the parent folder. If not set, the system default value will be # 親フォルダーの ID。設定されていない場合は、システムのデフォルト値が使用されます
used
Resources:
ResourceManagerFolder:
Type: 'ALIYUN::ResourceManager::Folder'
Properties:
FolderName:
Ref: FolderName
ParentFolderId:
Ref: ParentFolderId
Outputs:
FolderId:
Description: The ID of the folder # フォルダーの ID
Value:
'Fn::GetAtt':
- ResourceManagerFolder
- FolderId
FolderName:
Description: The name of the folder # フォルダーの名前
Value:
'Fn::GetAtt':
- ResourceManagerFolder
- FolderName
ParentFolderId:
Description: >-
The ID of the parent folder. If not set, the system default value will be # 親フォルダーの ID。設定されていない場合は、システムのデフォルト値が使用されます
used
Value:
'Fn::GetAtt':
- ResourceManagerFolder
- ParentFolderId