全部产品
Search
文档中心

资源编排:ALIYUN::ICE::SearchLib

更新时间:Jun 21, 2024

ALIYUN::ICE::SearchLib类型用于新建搜索媒资库。

语法

{
  "Type": "ALIYUN::ICE::SearchLib",
  "Properties": {
    "SearchLibName": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

SearchLibName

String

搜索库名称。

返回值

Fn::GetAtt

SearchLibName:搜索库名称。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SearchLibName:
    Type: String
    Description:
      en: The name of the Search Lib.
    Required: true
    Default: test1
Resources:
  ExtensionResource:
    Type: ALIYUN::ICE::SearchLib
    Properties:
      SearchLibName:
        Ref: SearchLibName
Outputs:
  SearchLibName:
    Description: The name of the Search Lib.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SearchLibName

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SearchLibName": {
      "Type": "String",
      "Description": {
        "en": "The name of the Search Lib."
      },
      "Required": true,
      "Default": "test1"
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ICE::SearchLib",
      "Properties": {
        "SearchLibName": {
          "Ref": "SearchLibName"
        }
      }
    }
  },
  "Outputs": {
    "SearchLibName": {
      "Description": "The name of the Search Lib.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SearchLibName"
        ]
      }
    }
  }
}