FGS.CtsEventMap
Element Description
The FGS.CtsEventMap element is used to create Cloud Trace Service (CTS) trigger resources for FunctionGraph. CTS triggers depend on the CTS service. To create CTS triggers, you need to enable the CTS service. Based on CTS events, CTS triggers can trigger function execution.
Element Properties
Property |
Required |
Descripiton |
---|---|---|
operations |
Yes |
Tracker custom operations Type: dict Value Description: The field must be selected. For details of tracker operations, see the CTS documentation at https://support.huaweicloud.com/intl/en-us/usermanual-cts/cts_03_0300.html. Suggestion: The field needs to be manually configured. It is recommended to refer to the CTS document and fill it in. |
name |
Yes |
CTS trigger name Type: string Value Description: Supports customization. Value Constraint: You can begin with chinese characters, english letters, numbers and underlines. The length can not exceed 64 characters. Suggestion: Use the get_input function to import this field. The value can be automatically obtained on the AOS page. |
funcId |
Yes |
function urn. Type: string Value Description: The field is automatically retrieved from the refID field of type HuaweiCloud.FGS.Function element by the get_reference function. The field must be selected. Suggestion: Using the default configuration. |
Relationships Between Elements
Description |
Target |
---|---|
ContainedIn |
Return Value
None.
Blueprint Example
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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot