FGS.CtsEventMap
模型说明
FGS.CtsEventMap元素用来创建函数工作流服务的CTS定时触发器资源。CTS触发器依赖云审计服务CTS,需要预先开通CTS服务,通过CTS事件触发函数执行。
模型属性
属性 |
是否必选 |
描述 |
---|---|---|
operations |
是 |
支持审计的服务操作 参数类型:dict 取值说明:该字段必选。支持审计的服务操作详情请参考:https://support.huaweicloud.com/usermanual-cts/cts_03_0300.html 使用建议:该字段目前需手动配置,建议参考CTS文档填写 |
name |
是 |
CTS触发器的名称 参数类型:string 取值说明:用户自定义 取值约束:支持中文、英文、数字和下划线,长度不能超过64个字符 使用建议:将该字段通过get_input函数传入,在AOS界面创建资源栈填写输入参数时可自动获取 |
funcId |
是 |
函数urn 参数类型:string 使用建议:采用默认配置 |
关联关系
关系说明 |
关联节点 |
---|---|
被包含关系 |
输出
无
blueprint样例
tosca_definitions_version: huaweicloud_tosca_version_1_0 inputs: codeUrl: description: >- The address of the function code package on OBS. You need to upload the function code to OBS barrel in advance. label: Function type: string handler: default: index.handler description: >- The Execution Entry of the function. Default value is index. handler. It can be configured independently by code file name and entry function name. label: Function type: string memorySize: constraints: valid_values: - 128 - 256 - 512 - 768 - 1024 - 1280 - 1536 default: 128 description: The memory size of the function. label: Function type: integer name: constraints: regex: '^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$' default: image_watermark description: The name of the function. label: Function type: string runtime: constraints: valid_values: - Node.js6.10 - Python2.7 - Python3.6 - Java8 - Go1.8 - Node.js8.10 description: The runtime of the function. label: Function type: string timeout: constraints: in_range: - 3 - 300 default: 3 description: The timeout of the function. The effective range is 3~300. label: Function type: integer xrole: description: The agency of the function. It should be created in advance. label: Function type: string cts_trigger_Name: description: CTS trigger name. label: CTS trigger type: string constraints: regex: '^[\u4e00-\u9fa5a-zA-Z0-9_]+([a-zA-Z0-9_]*[a-zA-Z0-9_]*)?$' min_length: 1 max_length: 64 node_templates: fgsf36en: properties: codeUrl: get_input: codeUrl handler: get_input: handler memorySize: get_input: memorySize name: get_input: name role: get_input: xrole runtime: get_input: runtime timeout: get_input: timeout code: '' codeType: obs type: HuaweiCloud.FGS.Function fgsce4yo: type: HuaweiCloud.FGS.CtsEventMap properties: operations: AOS: quota: - updateQuota stack: - deleteStack - createStack name: get_input: cts_trigger_Name funcId: get_reference: fgsf36en requirements: - funcId: node: fgsf36en outputs: function-urn: description: function URN value: get_attribute: - fgsf36en - refID cts_trigger_info: description: CTS trigger info value: get_attribute: - fgsce4yo - ctsEventMap